The long-threatened new UI has just reached the pull request stage. Its not finished, but is a big step forward. I just wanted to share this screenshot of the main menu from alpha 9, released 18 months ago:
Compare to what the title screen will look like when (if) new-ui is merged:
Easy to forget how far we've come <img src=' http://spacesimcentral.com/forum/public/style_emoticons//icon_e_smile.gi f' class='bbc_emoticon' alt=':)' />
Wow that's a lot of work! <img src="' http://spacesimcentral.com/forum/public/style_emoticons//comando.gi f"' class='bbc_emoticon' alt='' />
Impressive going RobN <img src="' http://spacesimcentral.com/forum/public/style_emoticons//icon_e_smile.gi f"' class='bbc_emoticon' alt=':)' />
So far only found this error:
stderr.txt
Error: [string "libs/Translate.lua"] Translation token not found: Start at Earth
stack traceback:
[C]: in ?
[C]: in function 'error'
[string "libs/Translate.lua"] in function 't'
[string "ui/MainMenu.lua"] in main chunk
pioneer: ./../SmartPtr.h T* SmartPtrBase<Derived, T>::operator->() const [with Derived = RefCountedPtr<Text::TextureFont>, T = Text Assertion `m_ptr' failed.
With this patch starts ok, but the home screen in English. Nothing serious for now.
--- /pioneer/data/ui/MainMenu2.lua
+++ /pioneer/data/ui/MainMenu.lua
@@ -37,12 +37,12 @@
end
local buttonDefs = {
- { t("Start at Earth"), function () Game.StartGame(SystemPath.New(0,0,0,0,9)) setupPlayerEagle() end },
- { t("Start at New Hope"), function () Game.StartGame(SystemPath.New(1,-1,-1,0,4)) setupPlayerEagle() end },
- { t("Start at Lave"), function () Game.StartGame(SystemPath.New(-2,1,90,0,2)) setupPlayerCobra() end },
- { t("Load game"), doLoadDialog },
- { t("Options"), function () Engine.SettingsView() end },
- { t("Quit"), function () Engine.Quit() end },
+ { "Start at Earth", function () Game.StartGame(SystemPath.New(0,0,0,0,9)) setupPlayerEagle() end },
+ { "Start at New Hope", function () Game.StartGame(SystemPath.New(1,-1,-1,0,4)) setupPlayerEagle() end },
+ { "Start at Lave", function () Game.StartGame(SystemPath.New(-2,1,90,0,2)) setupPlayerCobra() end },
+ { "Load game", doLoadDialog },
+ { "Options", function () Engine.SettingsView() end },
+ { "Quit", function () Engine.Quit() end },
}
Another step, another dollar. <img src="' http://spacesimcentral.com/forum/public/style_emoticons//good.gi f"' class='bbc_emoticon' alt='' />
stderr.txt
Error: [string "libs/Translate.lua"] Translation token not found: Start at Earth
stack traceback in ?
[C]: in function 'error'
[string "libs/Translate.lua"] in function 't'
[string "ui/MainMenu.lua"] in main chunk
pioneer: ./../SmartPtr.h T* SmartPtrBase<Derived, T>::operator->() const [with Derived = RefCountedPtr<Text::TextureFont>, T = Text Assertion `m_ptr' failed.
With this patch starts ok, but the home screen in English. Nothing serious for now.
--- /pioneer/data/ui/MainMenu2.lua
+++ /pioneer/data/ui/MainMenu.lua
@@ -37,12 +37,12 @@
end
local buttonDefs = {
- { t("Start at Earth"), function () Game.StartGame(SystemPath.New(0,0,0,0,9)) setupPlayerEagle() end },
- { t("Start at New Hope"), function () Game.StartGame(SystemPath.New(1,-1,-1,0,4)) setupPlayerEagle() end },
- { t("Start at Lave"), function () Game.StartGame(SystemPath.New(-2,1,90,0,2)) setupPlayerCobra() end },
- { t("Load game"), doLoadDialog },
- { t("Options"), function () Engine.SettingsView() end },
- { t("Quit"), function () Engine.Quit() end },
+ { "Start at Earth", function () Game.StartGame(SystemPath.New(0,0,0,0,9)) setupPlayerEagle() end },
+ { "Start at New Hope", function () Game.StartGame(SystemPath.New(1,-1,-1,0,4)) setupPlayerEagle() end },
+ { "Start at Lave", function () Game.StartGame(SystemPath.New(-2,1,90,0,2)) setupPlayerCobra() end },
+ { "Load game", doLoadDialog },
+ { "Options", function () Engine.SettingsView() end },
+ { "Quit", function () Engine.Quit() end },
}
Another step, another dollar. <img src="' http://spacesimcentral.com/forum/public/style_emoticons//good.gi f"' class='bbc_emoticon' alt='' />
--- /pioneer/data/ui/MainMenu2.lua
+++ /pioneer/data/ui/MainMenu.lua
@@ -37,12 +37,12 @@
end
local buttonDefs = {
- { t("Start at Earth"), function () Game.StartGame(SystemPath.New(0,0,0,0,9)) setupPlayerEagle() end },
- { t("Start at New Hope"), function () Game.StartGame(SystemPath.New(1,-1,-1,0,4)) setupPlayerEagle() end },
- { t("Start at Lave"), function () Game.StartGame(SystemPath.New(-2,1,90,0,2)) setupPlayerCobra() end },
- { t("Load game"), doLoadDialog },
- { t("Options"), function () Engine.SettingsView() end },
- { t("Quit"), function () Engine.Quit() end },
+ { "Start at Earth", function () Game.StartGame(SystemPath.New(0,0,0,0,9)) setupPlayerEagle() end },
+ { "Start at New Hope", function () Game.StartGame(SystemPath.New(1,-1,-1,0,4)) setupPlayerEagle() end },
+ { "Start at Lave", function () Game.StartGame(SystemPath.New(-2,1,90,0,2)) setupPlayerCobra() end },
+ { "Load game", doLoadDialog },
+ { "Options", function () Engine.SettingsView() end },
+ { "Quit", function () Engine.Quit() end },
}
Another step, another dollar. <img src="' http://spacesimcentral.com/forum/public/style_emoticons//good.gi f"' class='bbc_emoticon' alt='' />
I forgot to commit the translation file. Done now, so this should work (albeit still in English).
Future specific comments/bugs to the issue tracker, please.
Not yet - they're still running under the old GUI system. It will come soon!
Well done Robn <img src="' http://spacesimcentral.com/forum/public/style_emoticons//icon_e_smile.gi f"' class='bbc_emoticon' alt=':)' />
It's great to see all your hard work come together for this.
What do you call it? Lib Rocket Robn ? <img src="' http://spacesimcentral.com/forum/public/style_emoticons//wink3.gi f"' class='bbc_emoticon' alt=';)' />
It was briefly called "StarSheep" (ui == ewe-eee, ewe -> sheep, spaceship game -> starship, etc). I scrapped that after about ten minutes, going with the far more mundane "UI". If it ever got pulled out into a standalone UI lib, maybe the name can come back <img src="' http://spacesimcentral.com/forum/public/style_emoticons//icon_e_smile.gi f"' class='bbc_emoticon' alt=':)' />
Btw, I should add here that while I wrote most of the code, the actual skin (theme) was put together by the excellent jpab. Having something pretty to aim for really got this thing moving towards the last couple of weeks!