Red UI widgets
Moderator: Moderators
Re: Red UI widgets
Thanks, I plan to use the orders and build menu framework. Is there a perf penalty compared to normal ones?
Re: Red UI widgets
Tested by making them show exact amount of info:Beherith wrote:Thanks, I plan to use the orders and build menu framework. Is there a perf penalty compared to normal ones?
Default Spring menu: ~103 fps
Red build menu full of icons: ~96 fps
Re: Red UI widgets
Is there an easy way to hide buttons you don't want from the orders menu?
Re: Red UI widgets
In "local function GetCommands()" inside the .lua you have a list of hidden commands.ZellSF wrote:Is there an easy way to hide buttons you don't want from the orders menu?
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
Re: Red UI widgets
Nice and minimalist, I like it.
Re: Red UI widgets
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)
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
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.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)
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
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
?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
Update: added autoresizing/repositioning according to resolution changes
Re: Red UI widgets
edit: could u send me a changelog and the old data, so i could i upload it to springdownloader?
Re: Red UI widgets
There is no changelog for these widgets. And why the hell would you want older versions?manolo_ wrote:edit: could u send me a changelog and the old data, so i could i upload it to springdownloader?
Re: Red UI widgets
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 versionRegret wrote:There is no changelog for these widgets. And why the hell would you want older versions?manolo_ wrote:edit: could u send me a changelog and the old data, so i could i upload it to springdownloader?
Re: Red UI widgets
Just add random data into a .lua file and say that is the older version.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
Re: Red UI widgets
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 oneRegret wrote:Just add random data into a .lua file and say that is the older version.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