Чистка.
This commit is contained in:
@@ -92,12 +92,11 @@ func _enter_tree() -> void:
|
||||
$back.scale = size
|
||||
$back.material.set('shader_parameter/scale', size / Vector2(20.0, 20.0))
|
||||
$button.connect('toggled', _on_button_toggled)
|
||||
ProjectSettings.connect("settings_changed", _on_settings_changed)
|
||||
pressed = _pressed
|
||||
|
||||
|
||||
func _on_settings_changed():
|
||||
apply_colors(ProjectSettings.get_setting('application/config/%s' % 'Цвет темы программы', false ))
|
||||
pass
|
||||
|
||||
|
||||
func _exit_tree() -> void:
|
||||
@@ -111,19 +110,3 @@ func set_toggle_mode(val: bool):
|
||||
func _on_button_toggled(val: bool):
|
||||
if val: $state.set_texture(texture_state1)
|
||||
else: $state.set_texture(texture_state0)
|
||||
|
||||
|
||||
func apply_colors(is_light: bool):
|
||||
pass
|
||||
#if is_light:
|
||||
#$button.add_theme_color_override("font_color", Color.WHITE)
|
||||
#$button.add_theme_color_override("font_hover_color", Color.WHITE)
|
||||
#$button.add_theme_color_override("font_pressed_color", Color.WHITE)
|
||||
#$button.add_theme_color_override("font_focus_color", Color.BLACK)
|
||||
#$button.add_theme_color_override("font_disabled_color", Color.WHITE)
|
||||
#$button.add_theme_color_override("font_shadow_color", Color.LIGHT_GOLDENROD)
|
||||
#else:
|
||||
#$button.remove_theme_color_override("font_color")
|
||||
#$button.remove_theme_color_override("font_hover_color")
|
||||
#$button.remove_theme_color_override("font_pressed_color")
|
||||
#$button.remove_theme_color_override("font_disabled_color")
|
||||
|
||||
@@ -7,9 +7,9 @@ func _ready() -> void:
|
||||
signaller.connect('sector_klaster', Callable(self, 'on_sector_klaster').bind(unit_trassa))
|
||||
|
||||
|
||||
func on_trassa_line_changed(unit_trassa):
|
||||
func on_trassa_line_changed(_unit_trassa):
|
||||
pass
|
||||
|
||||
|
||||
func on_sector_klaster(_data, unit_trassa):
|
||||
func on_sector_klaster(_data, _unit_trassa):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user