mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-06 12:55:30 +02:00
Update gdtoolkit to version 4.2.2
This commit is contained in:
parent
11ed797005
commit
893c768f75
12 changed files with 62 additions and 84 deletions
|
@ -63,22 +63,14 @@ func _ready():
|
|||
_ctrls.output_button.icon = get_theme_icon("Font", "EditorIcons")
|
||||
|
||||
_ctrls.run_results.set_output_control(_ctrls.output_ctrl)
|
||||
(
|
||||
_ctrls
|
||||
. run_results
|
||||
. set_font(
|
||||
_gut_config.options.panel_options.font_name, _gut_config.options.panel_options.font_size
|
||||
)
|
||||
_ctrls.run_results.set_font(
|
||||
_gut_config.options.panel_options.font_name, _gut_config.options.panel_options.font_size
|
||||
)
|
||||
|
||||
var check_import = load("res://addons/gut/images/red.png")
|
||||
if check_import == null:
|
||||
(
|
||||
_ctrls
|
||||
. run_results
|
||||
. add_centered_text(
|
||||
"GUT got some new images that are not imported yet. Please restart Godot."
|
||||
)
|
||||
_ctrls.run_results.add_centered_text(
|
||||
"GUT got some new images that are not imported yet. Please restart Godot."
|
||||
)
|
||||
print("GUT got some new images that are not imported yet. Please restart Godot.")
|
||||
else:
|
||||
|
@ -94,12 +86,8 @@ func _apply_options_to_controls():
|
|||
_ctrls.output_ctrl.set_all_fonts(_gut_config.options.panel_options.font_name)
|
||||
_ctrls.output_ctrl.set_font_size(_gut_config.options.panel_options.font_size)
|
||||
|
||||
(
|
||||
_ctrls
|
||||
. run_results
|
||||
. set_font(
|
||||
_gut_config.options.panel_options.font_name, _gut_config.options.panel_options.font_size
|
||||
)
|
||||
_ctrls.run_results.set_font(
|
||||
_gut_config.options.panel_options.font_name, _gut_config.options.panel_options.font_size
|
||||
)
|
||||
_ctrls.run_results.set_show_orphans(!_gut_config.options.hide_orphans)
|
||||
|
||||
|
@ -178,10 +166,10 @@ func _apply_shortcuts():
|
|||
_ctrls.run_button.shortcut = _ctrls.shortcut_dialog.get_run_all()
|
||||
|
||||
_ctrls.run_at_cursor.get_script_button().shortcut = (
|
||||
_ctrls . shortcut_dialog . get_run_current_script()
|
||||
_ctrls.shortcut_dialog.get_run_current_script()
|
||||
)
|
||||
_ctrls.run_at_cursor.get_inner_button().shortcut = (
|
||||
_ctrls . shortcut_dialog . get_run_current_inner()
|
||||
_ctrls.shortcut_dialog.get_run_current_inner()
|
||||
)
|
||||
_ctrls.run_at_cursor.get_test_button().shortcut = _ctrls.shortcut_dialog.get_run_current_test()
|
||||
|
||||
|
@ -337,10 +325,8 @@ func set_current_script(script):
|
|||
|
||||
func set_interface(value):
|
||||
_interface = value
|
||||
(
|
||||
_interface
|
||||
. get_script_editor()
|
||||
. connect("editor_script_changed", Callable(self, "_on_editor_script_changed"))
|
||||
_interface.get_script_editor().connect(
|
||||
"editor_script_changed", Callable(self, "_on_editor_script_changed")
|
||||
)
|
||||
|
||||
var ste = ScriptTextEditors.new(_interface.get_script_editor())
|
||||
|
|
|
@ -47,13 +47,9 @@ func run_tests(show_gui = true):
|
|||
add_child(_gut)
|
||||
|
||||
if !_cmdln_mode:
|
||||
(
|
||||
_gut
|
||||
. end_run
|
||||
. connect(
|
||||
_on_tests_finished.bind(
|
||||
_gut_config.options.should_exit, _gut_config.options.should_exit_on_success
|
||||
)
|
||||
_gut.end_run.connect(
|
||||
_on_tests_finished.bind(
|
||||
_gut_config.options.should_exit, _gut_config.options.should_exit_on_success
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
@ -81,17 +81,11 @@ func _ready():
|
|||
_set_toolbutton_icon(_ctrls.toolbar.show_script, "Script", "ss")
|
||||
_set_toolbutton_icon(_ctrls.toolbar.scroll_output, "Font", "so")
|
||||
|
||||
(
|
||||
_ctrls
|
||||
. toolbar
|
||||
. hide_passing
|
||||
. set("custom_icons/checked", get_theme_icon("GuiVisibilityHidden", "EditorIcons"))
|
||||
_ctrls.toolbar.hide_passing.set(
|
||||
"custom_icons/checked", get_theme_icon("GuiVisibilityHidden", "EditorIcons")
|
||||
)
|
||||
(
|
||||
_ctrls
|
||||
. toolbar
|
||||
. hide_passing
|
||||
. set("custom_icons/unchecked", get_theme_icon("GuiVisibilityVisible", "EditorIcons"))
|
||||
_ctrls.toolbar.hide_passing.set(
|
||||
"custom_icons/unchecked", get_theme_icon("GuiVisibilityVisible", "EditorIcons")
|
||||
)
|
||||
|
||||
if get_parent() == get_tree().root:
|
||||
|
|
|
@ -480,9 +480,9 @@ func get_options(base_opts):
|
|||
to_return.should_exit_on_success = _cfg_ctrls.should_exit_on_success.button_pressed
|
||||
|
||||
#Output
|
||||
to_return.panel_options.font_name = (
|
||||
_cfg_ctrls . output_font_name . get_item_text(_cfg_ctrls.output_font_name.selected)
|
||||
)
|
||||
to_return.panel_options.font_name = (_cfg_ctrls.output_font_name.get_item_text(
|
||||
_cfg_ctrls.output_font_name.selected
|
||||
))
|
||||
to_return.panel_options.font_size = _cfg_ctrls.output_font_size.value
|
||||
|
||||
# Runner Appearance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue