Notifications
Clear all

To all SSC Station occupants

Thank you for the donations over the past year (2024), it is much appreciated. I am still trying to figure out how to migrate the forums to another community software (probably phpbb) but in the meantime I have updated the forum software to the latest version. SSC has been around a while so their is some very long time members here still using the site, thanks for making SSC home and sorry I haven't been as vocal as I should be in the forums I will try to improve my posting frequency.

Thank you again to all of the members that do take the time to donate a little, it helps keep this station functioning on the outer reaches of space.

-D1-

New UI

 robn
(@robn)
Noble Member

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:

B18yc.png

Compare to what the title screen will look like when (if) new-ui is merged:

dkyWl.png

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=':)' />

Quote
Topic starter Posted : October 9, 2012 04:20
(@fluffyfreak)
Noble Member

Wow that's a lot of work! <img src="' http://spacesimcentral.com/forum/public/style_emoticons//comando.gi f"' class='bbc_emoticon' alt=':comando:' />

Impressive going RobN <img src="' http://spacesimcentral.com/forum/public/style_emoticons//icon_e_smile.gi f"' class='bbc_emoticon' alt=':)' />

ReplyQuote
Posted : October 9, 2012 04:30
(@walterar)
Prominent Member

So far only found this error:

stderr.txt
Error: [string "libs/Translate.lua"]:46: Translation token not found: Start at Earth
stack traceback:
[C]: in ?
[C]: in function 'error'
[string "libs/Translate.lua"]:46: in function 't'
[string "ui/MainMenu.lua"]:40: in main chunk
pioneer: ./../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 @@
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=':good:' />



stderr.txt

Error: [string "libs/Translate.lua"]:46: Translation token not found: Start at Earth

stack traceback:

[C]: in ?

[C]: in function 'error'

[string "libs/Translate.lua"]:46: in function 't'

[string "ui/MainMenu.lua"]:40: in main chunk

pioneer: ./../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 @@
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=':good:' />



--- /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=':good:' />

ReplyQuote
Posted : October 9, 2012 05:38
 robn
(@robn)
Noble Member
'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!

ReplyQuote
Topic starter Posted : October 9, 2012 12:21
(@s2odan)
Noble Member

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=';)' />

ReplyQuote
Posted : October 10, 2012 04:14
 robn
(@robn)
Noble Member

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=':)' />

ReplyQuote
Topic starter Posted : October 10, 2012 16:07
 robn
(@robn)
Noble Member

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!

ReplyQuote
Topic starter Posted : October 10, 2012 16:08