-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve main menu's look'n'feel, #65
- Loading branch information
Showing
9 changed files
with
63 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
keys,en,pl | ||
PLAY,Play,Gra | ||
OPTIONS,Options,Opcje | ||
CREDITS,Credits,Twórcy | ||
QUIT,Quit,Wyjście | ||
BACK,Back,Wstecz | ||
CORE_CONTRIBUTORS,Core contributors,Kluczowi współtwórcy | ||
ASSETS,Assets,Treści multimedialne | ||
START,Start,Rozpocznij |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[remap] | ||
|
||
importer="csv_translation" | ||
type="Translation" | ||
uid="uid://dysxs8mlbjhl8" | ||
|
||
[deps] | ||
|
||
files=["res://assets/translations/main_menu.en.translation", "res://assets/translations/main_menu.pl.translation"] | ||
|
||
source_file="res://assets/translations/main_menu.csv" | ||
dest_files=["res://assets/translations/main_menu.en.translation", "res://assets/translations/main_menu.pl.translation"] | ||
|
||
[params] | ||
|
||
compress=true | ||
delimiter=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
extends Control | ||
|
||
@onready var _rich_text_label = find_child("RichTextLabel") | ||
|
||
|
||
func _ready(): | ||
_rich_text_label.text = ( | ||
_rich_text_label | ||
. text | ||
. replace("CORE_CONTRIBUTORS", tr("CORE_CONTRIBUTORS")) | ||
. replace("ASSETS", tr("ASSETS")) | ||
) | ||
|
||
|
||
func _on_back_button_pressed(): | ||
get_tree().change_scene_to_file("res://source/main-menu/Main.tscn") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.