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

View file

@ -1,12 +1,18 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=7 format=2]
[ext_resource path="res://autoloads/border.gd" type="Script" id=1]
[ext_resource path="res://graphics/borders/gale_sg_border.png" type="Texture" id=2]
[ext_resource path="res://graphics/borders/prideborder.png" type="Texture" id=3]
[ext_resource path="res://graphics/borders/bodhi_sg_border.png" type="Texture" id=4]
[ext_resource path="res://graphics/borders/enby_border.png" type="Texture" id=5]
[ext_resource path="res://graphics/borders/the_gays_border.png" type="Texture" id=6]
[node name="Border" type="TextureRect"]
anchor_right = 1.0
anchor_bottom = 1.0
texture = ExtResource( 2 )
texture = ExtResource( 4 )
expand = true
stretch_mode = 7
script = ExtResource( 1 )
borders = [ ExtResource( 3 ), ExtResource( 4 ), ExtResource( 2 ), ExtResource( 6 ), ExtResource( 5 ) ]
names = [ "Trans Rights", "Got Shards?", "Infiltration", "Here's To The Gays", "Fuck The Binary" ]