Initial work on locales, more work on netcode

This commit is contained in:
2020-12-01 13:02:22 -06:00
parent b9c30ade80
commit c7590366a6
20 changed files with 131 additions and 47 deletions

View File

@@ -12,7 +12,7 @@ class IMICFPS
push_state(IMICFPS::MapEditorTool::MainMenu)
end
link "Back" do
link I18n.t("menus.back") do
pop_state
end
end

View File

@@ -9,11 +9,11 @@ class IMICFPS
pop_state
end
link "Settings" do
link I18n.t("menus.settings") do
push_state(SettingsMenu)
end
link "Leave" do
link I18n.t("menus.leave") do
push_state(MainMenu)
end
end

View File

@@ -12,7 +12,7 @@ class IMICFPS
end
end
link "Back" do
link I18n.t("menus.back") do
pop_state
end
end

View File

@@ -3,23 +3,23 @@ class IMICFPS
def setup
title IMICFPS::NAME
link "Single Player" do
link I18n.t("menus.singleplayer") do
push_state(LevelSelectMenu)
end
link "Multiplayer" do
link I18n.t("menus.multiplayer") do
push_state(MultiplayerMenu)
end
link "Settings" do
link I18n.t("menus.settings") do
push_state(SettingsMenu)
end
link "Extras" do
link I18n.t("menus.extras") do
push_state(ExtrasMenu)
end
link "Quit" do
link I18n.t("menus.quit") do
window.close
end

View File

@@ -11,7 +11,7 @@ class IMICFPS
link "Profile" do
push_state(MultiplayerProfileMenu)
end
link "Back" do
link I18n.t("menus.back") do
pop_state
end
end

View File

@@ -7,7 +7,7 @@ class IMICFPS
stack(width: 0.25, height: 1.0) do
button "Edit Profile", width: 1.0
button "Log Out", width: 1.0
button "Back", width: 1.0, margin_top: 64 do
button I18n.t("menus.back"), width: 1.0, margin_top: 64 do
pop_state
end
end

View File

@@ -34,7 +34,7 @@ class IMICFPS
button "Host Game", width: 1.0
button "Direct Connect", width: 1.0
button "Back", width: 1.0, margin_top: 64 do
button I18n.t("menus.back"), width: 1.0, margin_top: 64 do
pop_state
end
end

View File

@@ -29,7 +29,7 @@ class IMICFPS
end
end
button "Back", width: 1.0, margin_top: 64 do
button I18n.t("menus.back"), width: 1.0, margin_top: 64 do
pop_state
end
end