18 lines
481 B
GDScript3
18 lines
481 B
GDScript3
|
extends HBoxContainer
|
||
|
|
||
|
signal font_changed
|
||
|
|
||
|
func _ready():
|
||
|
$font_size_value.text = str( get_node ( "../font_size_bar" ).value )
|
||
|
|
||
|
#func _process(delta):
|
||
|
# # Called every frame. Delta is time since last frame.
|
||
|
# # Update game logic here.
|
||
|
# pass
|
||
|
|
||
|
|
||
|
func _on_font_size_bar_value_changed(value):
|
||
|
$font_size_value.text = str( value )
|
||
|
var menus_node = get_node( "../../../../../" )
|
||
|
menus_node.get_theme().default_font.size = value
|
||
|
emit_signal( "font_changed" )
|