lighting is really good

This commit is contained in:
Persephone Bubblegum-Holiday 2025-04-15 10:29:36 -07:00
parent 9f1777f0a8
commit 4df0781a5b
41 changed files with 905 additions and 179 deletions

View file

@ -1,5 +1,5 @@
extends GL_Animatable
var light:SpotLight3D
var light:Light3D
func _ready():
light = self.get_parent()

View file

@ -1,29 +0,0 @@
extends GL_Node
func _ready():
super._ready()
_set_title("Keystrokes")
_create_row("Shift",null,false,false,0.0,1)
_create_row("Control",null,false,false,0.0,1)
_create_row("Alt",null,false,false,0.0,1)
_create_row("Space",null,false,false,0.0,1)
_create_row("Enter",null,false,false,0.0,1)
_create_row("Backspace",null,false,false,0.0,1)
_update_visuals()
func _process(delta):
super._process(delta)
var key_map = {
"Shift": KEY_SHIFT,
"Control": KEY_CTRL,
"Alt": KEY_ALT,
"Space": KEY_SPACE,
"Enter": KEY_ENTER,
"Backspace": KEY_BACKSPACE,
}
for key_name in key_map.keys():
var is_pressed = Input.is_key_pressed(key_map[key_name]) or Input.is_key_pressed(key_map[key_name] + (KEY_KP_0 - KEY_0))
rows[key_name]["output"] = is_pressed
_send_input(key_name)

View file

@ -1 +0,0 @@
uid://bj0lla8757tnh

View file

@ -0,0 +1,4 @@
extends GL_Animatable
func _sent_signals(signal_ID:String,the_signal):
self.get_node(signal_ID).visible = the_signal;

View file

@ -0,0 +1 @@
uid://dytpgt3c33k62

View file

@ -1,34 +1,38 @@
extends Control
var rows : Dictionary = {
"CyberChuck":1,
"CyberHelen":1,
"CyberMunch":1,
"ChuckSpot":1,
"HelenSpot":1,
"MunchSpot":1,
"Add":1,
"Audio":1,
"Bool":1,
"Color":1,
"Direct Output":1,
"Float":1,
"Invert":1,
"NumberKeys":1,
"MiscKeys":1,
"Keystroke Ramp":1,
"Lerp":1,
"Mix Colors":1,
"Mix Floats":1,
"Mouse Wheel":1,
"Multiply":1,
"Random":1,
"Record":1,
"Sine":1,
"Subtract":1,
"Switch Audio":1,
"Timeline":1,
}
var rows : Array = [
"Animatronics/CyberChuck",
"Animatronics/CyberHelen",
"Animatronics/CyberMunch",
"",
"Lighting/Spotlights",
"Lighting/Floodlights",
"Lighting/Backdrop Lights",
"Lighting/Misc Lights",
"Lighting/Organ Lights",
"",
"Add",
"Audio",
"Bool",
"Color",
"Direct Output",
"Float",
"Invert",
"Keystrokes",
"Keystroke Ramp",
"Lerp",
"Mix Colors",
"Mix Floats",
"Mouse Wheel",
"Multiply",
"Random",
"Record",
"Sine",
"Subtract",
"Switch Audio",
"Timeline",
]
var searching : bool
var lastMousePos : Vector2
@ -54,6 +58,9 @@ func _set_rows():
for child in container.get_children():
child.queue_free()
for key in rows:
if str(key) == "":
container.call_deferred("add_child",load("res://Scenes/UI/Search Row.tscn").instantiate())
continue
var row = load("res://Scenes/UI/Search Row.tscn").instantiate()
var button = (row.get_node("Button") as Button)
var visualName = load("res://Scenes/Node Types/" + str(key) + ".tscn").instantiate().get_node("Node").visual_name