Branch master was renamed to main.

test-client-godot/gui_scene/GUI/Settings/font_size.gd

19 lines
No EOL
510 B
GDScript

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( "../../../../../" )
global.font_size = value
menus_node.get_theme().default_font.size = value
emit_signal( "font_changed" )