Skip to content

Instantly share code, notes, and snippets.

View TheOrioli's full-sized avatar
🎮

Adriano Orioli TheOrioli

🎮
View GitHub Profile
@TheOrioli
TheOrioli / diagonal_vbox_container.gd
Last active October 17, 2024 22:04
GDScript that offsets children of a VBoxContainer
@tool
extends VBoxContainer
@export var offset: Vector2 = Vector2.ZERO
func _notification(what: int) -> void:
match what:
NOTIFICATION_SORT_CHILDREN:
for i in get_child_count():
var c := get_child(i)
@TheOrioli
TheOrioli / update_windows_icon.ps1
Last active September 8, 2021 12:37
PowerShell script that can be used in a GitHub Action to change the icon of an executable, useful in Godot Engine CI scripts
$exePath = $args[0]
$iconPath = $args[1]
Invoke-WebRequest -Uri "https://github.com/electron/rcedit/releases/download/v1.1.1/rcedit-x64.exe" -OutFile ".\rcedit-x64.exe"
.\rcedit-x64.exe $exePath --set-icon $iconPath
Remove-Item .\rcedit-x64.exe