@@ -129,6 +129,7 @@ onready var n : Dictionary = {
129129 # Button modifiers (Inherited scenes)
130130 'button_normal' : $ "VBoxContainer/TabContainer/Choice Buttons/Column/TabContainer/Normal" ,
131131 'button_hover' : $ "VBoxContainer/TabContainer/Choice Buttons/Column/TabContainer/Hover" ,
132+ 'button_focus' : $ "VBoxContainer/TabContainer/Choice Buttons/Column/TabContainer/Focus" ,
132133 'button_pressed' : $ "VBoxContainer/TabContainer/Choice Buttons/Column/TabContainer/Pressed" ,
133134 'button_disabled' : $ "VBoxContainer/TabContainer/Choice Buttons/Column/TabContainer/Disabled" ,
134135
@@ -234,11 +235,13 @@ func _ready() -> void:
234235 # Choice button style modifiers
235236 n ['button_normal' ].connect ('picking_background' , self , '_on_ButtonTextureButton_pressed' )
236237 n ['button_hover' ].connect ('picking_background' , self , '_on_ButtonTextureButton_pressed' )
238+ n ['button_focus' ].connect ('picking_background' , self , '_on_ButtonTextureButton_pressed' )
237239 n ['button_pressed' ].connect ('picking_background' , self , '_on_ButtonTextureButton_pressed' )
238240 n ['button_disabled' ].connect ('picking_background' , self , '_on_ButtonTextureButton_pressed' )
239241
240242 n ['button_normal' ].connect ('style_modified' , self , '_on_choice_style_modified' )
241243 n ['button_hover' ].connect ('style_modified' , self , '_on_choice_style_modified' )
244+ n ['button_focus' ].connect ('style_modified' , self , '_on_choice_style_modified' )
242245 n ['button_pressed' ].connect ('style_modified' , self , '_on_choice_style_modified' )
243246 n ['button_disabled' ].connect ('style_modified' , self , '_on_choice_style_modified' )
244247
@@ -407,6 +410,7 @@ func load_theme(filename):
407410 var hover_style = [true , Color ( 0.698039 , 0.698039 , 0.698039 , 1 ), false , Color .black , true , default_background , false , Color .white ]
408411 n ['button_normal' ].load_style (theme .get_value ('buttons' , 'normal' , default_style ))
409412 n ['button_hover' ].load_style (theme .get_value ('buttons' , 'hover' , hover_style ))
413+ n ['button_focus' ].load_style (theme .get_value ('buttons' , 'focus' , hover_style ))
410414 n ['button_pressed' ].load_style (theme .get_value ('buttons' , 'pressed' , default_style ))
411415 n ['button_disabled' ].load_style (theme .get_value ('buttons' , 'disabled' , default_style ))
412416
0 commit comments