Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove auto translation #785

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/HandlerGUI.gd
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ var popup_overlay_stack: Array[Control]


func _enter_tree() -> void:
process_mode = Node.PROCESS_MODE_ALWAYS

func _ready() -> void:
get_tree().root.auto_translate_mode = Node.AUTO_TRANSLATE_MODE_DISABLED
get_window().files_dropped.connect(_on_files_dropped)
get_window().dpi_changed.connect(update_ui_scale)
get_window().size_changed.connect(remove_all_popup_overlays)
if OS.has_feature("web"):
_define_web_js()

func _ready() -> void:
await get_tree().process_frame
update_ui_scale()

Expand Down
1 change: 0 additions & 1 deletion src/ui_elements/context_popup.gd
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ icon: Texture2D = null, shortcut := "") -> Button:
label_margin.add_theme_constant_override("margin_right",
int(ret_button.get_theme_stylebox("normal").content_margin_right))
var label := Label.new()
label.auto_translate = false
label.text = events[0].as_text_keycode()
label.horizontal_alignment = HORIZONTAL_ALIGNMENT_RIGHT
label.add_theme_color_override("font_color",
Expand Down
1 change: 0 additions & 1 deletion src/ui_elements/presented_shortcut.gd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ func setup(new_action: String) -> void:
# Create new ones.
for i in events.size():
var new_btn := Button.new()
new_btn.auto_translate = false
shortcut_container.add_child.call_deferred(new_btn)
new_btn.custom_minimum_size.x = 144.0
new_btn.size_flags_horizontal = Control.SIZE_FILL
Expand Down
1 change: 0 additions & 1 deletion src/ui_elements/setting_shortcut.gd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func sync() -> void:
# Create new ones.
for i in 3:
var new_btn := Button.new()
new_btn.auto_translate = false
shortcut_container.add_child.call_deferred(new_btn)
shortcut_buttons.append(new_btn)
new_btn.button_mask = MOUSE_BUTTON_MASK_LEFT | MOUSE_BUTTON_MASK_RIGHT
Expand Down