add most of the props and also some lights
This commit is contained in:
parent
514125005b
commit
694a55f8e1
43 changed files with 758 additions and 26 deletions
|
@ -4,6 +4,9 @@ var rows : Dictionary = {
|
|||
"CyberChuck":1,
|
||||
"CyberHelen":1,
|
||||
"CyberMunch":1,
|
||||
"ChuckSpot":1,
|
||||
"HelenSpot":1,
|
||||
"MunchSpot":1,
|
||||
"Bool":1,
|
||||
"Color":1,
|
||||
"Float":1,
|
||||
|
|
|
@ -1,20 +1,11 @@
|
|||
extends GL_Animatable
|
||||
var light:SpotLight3D
|
||||
@export var canChangeColor:bool = false
|
||||
@export var canChangeSize:bool = false
|
||||
@export var energyMultiplier:float = 500
|
||||
|
||||
func _ready():
|
||||
light = self.get_parent()
|
||||
|
||||
func _sent_signals(signal_ID:String,the_signal):
|
||||
match(signal_ID):
|
||||
"intensity":
|
||||
light.light_energy = max(the_signal,0) * energyMultiplier
|
||||
"color":
|
||||
if canChangeColor:
|
||||
light.light_color = the_signal
|
||||
"size":
|
||||
if canChangeSize:
|
||||
light.spot_angle = the_signal * 90
|
||||
"enabled":
|
||||
light.visible = the_signal;
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue