New UI

Pioneer is an open-ended space adventure game. Explore the galaxy, make your fortune trading between systems, or work for the various factions fighting for power, freedom or self-determination.
Homepage: http://pioneerspacesim.net/
IRC: http://pioneerspacesim.net/irc
Downloads: https://pioneerspacesim.net/page/download/
Post Reply
robn
Private
Posts: 1035
Joined: Mon Jan 31, 2011 10:29 pm

New UI

Post by robn »

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='[url]http://spacesimcentral.com/forum/public/style_emoticons//icon_e_smile.gif'[/url] class='bbc_emoticon' alt=':)' />
fluffyfreak
Private
Posts: 1292
Joined: Sun Nov 27, 2016 12:55 pm

RE: New UI

Post by fluffyfreak »

Wow that's a lot of work! <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//comando.gif[/url] class='bbc_emoticon' alt=':comando:' />Impressive going RobN <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//icon_e_smile.gif[/url] class='bbc_emoticon' alt=':)' />
walterar
Private
Posts: 978
Joined: Fri Nov 25, 2016 8:22 pm

RE: New UI

Post by walterar »

So far only found this error:stderr.txtError: [string "libs/Translate.lua"]:46: Translation token not found: Start at Earthstack traceback:[C]: in ?[C]: in function 'error'[string "libs/Translate.lua"]:46: in function 't'[string "ui/MainMenu.lua"]:40: in main chunkpioneer: ./../SmartPtr.h:28: T* SmartPtrBase<Derived, T>::operator->() const [with Derived = RefCountedPtr<Text::TextureFont>, T = Text::TextureFont]: 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 @@endlocal 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="'[url]http://spacesimcentral.com/forum/public/style_emoticons//good.gif[/url] class='bbc_emoticon' alt=':good:' />stderr.txtError: [string "libs/Translate.lua"]:46: Translation token not found: Start at Earthstack traceback:[C]: in ?[C]: in function 'error'[string "libs/Translate.lua"]:46: in function 't'[string "ui/MainMenu.lua"]:40: in main chunkpioneer: ./../SmartPtr.h:28: T* SmartPtrBase<Derived, T>::operator->() const [with Derived = RefCountedPtr<Text::TextureFont>, T = Text::TextureFont]: 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 @@endlocal 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="'[url]http://spacesimcentral.com/forum/public/style_emoticons//good.gif[/url] class='bbc_emoticon' alt=':good:' />--- /pioneer/data/ui/MainMenu2.lua+++ /pioneer/data/ui/MainMenu.lua@@ -37,12 +37,12 @@endlocal 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="'[url]http://spacesimcentral.com/forum/public/style_emoticons//good.gif[/url] class='bbc_emoticon' alt=':good:' />
robn
Private
Posts: 1035
Joined: Mon Jan 31, 2011 10:29 pm

RE: New UI

Post by robn »


'walterar' wrote:
So far only found this error:
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.
'Adie123' wrote:
Do any of the other screens have changes to them yet? (commodity, ships, equipment, etc)
Not yet - they're still running under the old GUI system. It will come soon!
s2odan
Private
Posts: 1212
Joined: Sun Mar 22, 2009 9:50 pm

RE: New UI

Post by s2odan »

Well done Robn <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//icon_e_smile.gif[/url] 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="'[url]http://spacesimcentral.com/forum/public/style_emoticons//wink3.gif[/url] class='bbc_emoticon' alt=';)' />
robn
Private
Posts: 1035
Joined: Mon Jan 31, 2011 10:29 pm

RE: New UI

Post by robn »

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="'[url]http://spacesimcentral.com/forum/public/style_emoticons//icon_e_smile.gif[/url] class='bbc_emoticon' alt=':)' />
robn
Private
Posts: 1035
Joined: Mon Jan 31, 2011 10:29 pm

RE: New UI

Post by robn »

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!
Post Reply

Return to “Pioneer”