Raffel ([info]raffel) wrote,
@ 2007-05-02 10:20:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Current mood:barely awake
Current music:Garry Moore: Wild Frontiers
Entry tags:graphics, livejournal

UI, LUA and Themes
This is not very much actual stuff, in fact I did this with sick more than a year ago when we transformed the UI code to LUA.

Anyway... the new code will allow to create 'Themes' that the user can select.
This will include localized interfaces - yes, you will be able to run TW in german, italian, russian or even japanese or korean language given someone dioes the translation works - AND define your own specific FE for *your* mod.
Oh... and you can use any custom font you wish... http://wiki.targetware.net/index.php/Font

I did some quick scetches with the new UI code back then... just to illustrate how it works.

TT screen

TW screen

RS screen

Mind ya, this is not a finished artwork Ebola and Blowhard will do much better ;-)... it is just  to show how themes can work.
It will be very much customizable like themes that you can select for your Win Media Player or any other application with selectable themes.
All you gotta do is to create the graphics and change the LUA code... no rocket science involved. :-)

The code documentation for this neat little feature is here...

http://wiki.targetware.net/index.php/GUI_API

Check the widgets section...

-r-




(4 comments) - (Post a new comment)


(Anonymous)
2007-05-02 03:11 pm UTC (link)
A question: would these theme screens change as you selected servers?

For example, would you launch Targetware and see Screen #2? Then, if you select RS from the server menu, you would see Screen #3, or if you chose TT, you'd see Screen #1?

Or, would you simply set your style to your favorite Theme, and no matter what you were doing on the server selector screen, it'd show you your choice of Styles? In other words, if I'm a WWI fan, I select the RS Style, and whenever I boot up Targetware I'm greeted with the Pour le Merite on the server menu?

(Reply to this) (Thread)


(Anonymous)
2007-05-02 04:30 pm UTC (link)
The idea is that Themes can be set as server defaults...

BUT...

*IF* you decide to have another custom theme on our Front End you can override that setting.
Same as with language, you will be able to select french, italian, german, russian (with cyrillic fonts) or whatever language you choose... GIVEN someone wrote the translation files for that!

Your selection will override the server default.

-r-

(Reply to this) (Parent)(Thread)


[info]stiglr
2007-05-03 01:36 pm UTC (link)
I'm not sure I follow you.

In the screens you are showing, it's the main interface screen where you're offline and deciding which server to join. Once you select one and log into it, you get a new set of loading screens altogether, ending with some view of the terrain inside a scenario. In other words, you're then past those screens.

However, it would be a nice touch if, as you perhaps single click on various servers, the interface would change to reflect that server's mod. Or, as you said, just stay a default of the user's favorite if that's what he/she wants.

(Reply to this) (Parent)(Thread)


[info]raffel
2007-05-03 05:08 pm UTC (link)
Don't give too much on this screens Allen, they are just to illustrate how 'Themes' would work.

Basically you will have a dropdown menu where *you* choose the theme and language you want to run TW with.

Your choice will override any server entry (at least thats how I understand it).
Now if you choose the default theme the selected server *might* define the theme for you...
But that's nothing that is carved in stone yet, we will see how this turns out.

-r-

(Reply to this) (Parent)


(4 comments) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…