Page 1 of 4

Red UI widgets

Posted: 10 Aug 2009, 19:40
by Regret
eat shit

Re: Red UI widgets

Posted: 10 Aug 2009, 19:41
by Regret
.

Re: Red UI widgets

Posted: 10 Aug 2009, 19:43
by Regret
.

Re: Red UI widgets

Posted: 10 Aug 2009, 19:58
by Beherith
Thanks, I plan to use the orders and build menu framework. Is there a perf penalty compared to normal ones?

Re: Red UI widgets

Posted: 10 Aug 2009, 20:08
by Regret
Beherith wrote:Thanks, I plan to use the orders and build menu framework. Is there a perf penalty compared to normal ones?
Tested by making them show exact amount of info:

Default Spring menu: ~103 fps
Red build menu full of icons: ~96 fps

Re: Red UI widgets

Posted: 10 Aug 2009, 20:53
by ZellSF
Is there an easy way to hide buttons you don't want from the orders menu?

Re: Red UI widgets

Posted: 10 Aug 2009, 20:55
by Regret
ZellSF wrote:Is there an easy way to hide buttons you don't want from the orders menu?
In "local function GetCommands()" inside the .lua you have a list of hidden commands.

I'm not sure where to get the whole list of all commands.
You could change line #285 and line #243 in the menu lua file to

Code: Select all

icon.caption = g.ctext..cmd.name.." ID="..cmd.id
to see all displayed ids

Re: Red UI widgets

Posted: 11 Aug 2009, 18:42
by Regret
.

Re: Red UI widgets

Posted: 12 Aug 2009, 21:39
by Caydr
Nice and minimalist, I like it.

Re: Red UI widgets

Posted: 12 Aug 2009, 22:14
by smoth
Neat, minor request:

can you make the build and order pictures scale relative to resolution? They are supposed to be squares.(see gundam rts 1.21 for what I mean by square bps)

Re: Red UI widgets

Posted: 12 Aug 2009, 22:17
by Regret
smoth wrote:Neat, minor request:

can you make the build and order pictures scale relative to resolution? They are supposed to be squares.(see gundam rts 1.21 for what I mean by square bps)
When you open up the.lua file of the menu, you'll see a very easy to read config table. Mess with that to get square icons.

I'm guessing by resolution you meant the texture resolution, since games generally have fixed resolution for all icons, I leave it for the game devs/players to mess with the icon sizes as it would be useless to autoadjust.

Re: Red UI widgets

Posted: 12 Aug 2009, 22:19
by smoth
The icons in the current spring can be adjusted to be square in say the old 1024X768 but will look odd in a more modern 1440X990 screen as they will be squashed to meet that aspect ratio.

Re: Red UI widgets

Posted: 12 Aug 2009, 22:31
by Regret
smoth wrote:The icons in the current spring can be adjusted to be square in say the old 1024X768 but will look odd in a more modern 1440X990 screen as they will be squashed to meet that aspect ratio.
?

You want the build menu to display always square icons correct?
To do that set the isx and isy in buildmenu config to same numbers.

This does not use the spring default menu, so there is no random icon squashing afaik.

Re: Red UI widgets

Posted: 12 Aug 2009, 22:53
by smoth
OH! Kick ass!

Re: Red UI widgets

Posted: 13 Aug 2009, 17:10
by Regret
Update: added autoresizing/repositioning according to resolution changes

Re: Red UI widgets

Posted: 13 Aug 2009, 18:49
by manolo_
edit: could u send me a changelog and the old data, so i could i upload it to springdownloader?

Re: Red UI widgets

Posted: 13 Aug 2009, 19:19
by Regret
manolo_ wrote:edit: could u send me a changelog and the old data, so i could i upload it to springdownloader?
There is no changelog for these widgets. And why the hell would you want older versions?

Re: Red UI widgets

Posted: 13 Aug 2009, 19:38
by manolo_
Regret wrote:
manolo_ wrote:edit: could u send me a changelog and the old data, so i could i upload it to springdownloader?
There is no changelog for these widgets. And why the hell would you want older versions?
so people with the older widget see that they could to update (yellow), if i dont have the older version they will see this blue circle in the spring downloader for unknown version

Re: Red UI widgets

Posted: 13 Aug 2009, 19:40
by Regret
manolo_ wrote:so people with the older widget see that they could to update (yellow), if i dont have the older version they will see this blue circle in the spring downloader for unknown version
Just add random data into a .lua file and say that is the older version.

Re: Red UI widgets

Posted: 13 Aug 2009, 19:44
by manolo_
Regret wrote:
manolo_ wrote:so people with the older widget see that they could to update (yellow), if i dont have the older version they will see this blue circle in the spring downloader for unknown version
Just add random data into a .lua file and say that is the older version.
tbh i dont care, but its some kind of service :D and also the downloader will check the luas (i think the checksum of the data) and compare them to the installed one