here come the gays

This commit is contained in:
Haze Weathers 2023-10-28 17:51:30 -04:00
parent 4a34248d73
commit 3f2c9e1cc3
7 changed files with 90 additions and 2 deletions

View file

@ -1,10 +1,22 @@
extends TextureRect
export (Array, Texture) var borders: Array = []
export (Array, String) var names: Array = []
var current_border: int = 0 setget _set_current_border
func _ready() -> void:
texture = borders[current_border]
get_tree().connect("screen_resized", self, "_on_screen_resized")
_on_screen_resized()
func _set_current_border(value: int) -> void:
current_border = posmod(value, borders.size())
texture = borders[current_border]
func _on_screen_resized() -> void:
rect_size = OS.window_size