23 lines
628 B
GDScript
23 lines
628 B
GDScript
extends Control
|
|
|
|
var character
|
|
|
|
signal valid_button_pressed
|
|
|
|
func _ready():
|
|
character = $v_box_container/h_box_container/center_container/character_creation_scene/mesh_instance
|
|
|
|
#func _process(delta):
|
|
# # Called every frame. Delta is time since last frame.
|
|
# # Update game logic here.
|
|
# pass
|
|
|
|
|
|
func _on_h_scroll_bar_value_changed(value):
|
|
if value == 1:
|
|
character.get_surface_material(0).albedo_color = Color( 1.0, 0.25, 0.25, 1.0 )
|
|
else:
|
|
character.get_surface_material(0).albedo_color = Color( 0.0, 0.0, 1.0, 1.0 )
|
|
|
|
func _on_valid_button_pressed():
|
|
emit_signal( "valid_button_pressed" )
|