Page 2 of 3
Re: Post screenshots of your ui
Posted: 19 Jan 2008, 21:46
by lurker
I'll make you that widget later today, now that I finally figured out how to do it with evolution. But are you sure it would work as is with BA? Anything I tried, the user ctrlpanel.txt overrode the one in the mod.
Re: Post screenshots of your ui
Posted: 19 Jan 2008, 23:02
by LordMatt
lurker wrote:
I'll make you that widget later today, now that I finally figured out how to do it with evolution. But are you sure it would work as is with BA? Anything I tried, the user ctrlpanel.txt overrode the one in the mod.
As it should.
Re: Post screenshots of your ui
Posted: 19 Jan 2008, 23:36
by Gnomre
Maelstrom and I made a widget that generates and loads a custom ctrlpanel file (and reloads the user's luaui/ctrlpanel.txt file when it's disabled). We made it to do some magical math that forces buildpics to be displayed square regardless of resolution or aspect ratio.
It's included in S44 at the moment, but Nemo sucks at following my instructions for making S44-specific modifications to it, so it doesn't work right; it should be fairly obvious to anyone what needs fixed, though (I think he pasted in the wrong place which meant he was trying to perform a comparison on a variable that hadn't been set yet).
We licensed it as one of the CC licenses (see its header, I forget which

) so go nuts. I don't know how to do the modifications to the data in layout.lua though, but it would be nice to know since you can get rid of the "Commands"/"Build Orders" text by modifying that file as well.
Re: Post screenshots of your ui
Posted: 20 Jan 2008, 01:04
by lurker
LordMatt wrote:lurker wrote:
I'll make you that widget later today, now that I finally figured out how to do it with evolution. But are you sure it would work as is with BA? Anything I tried, the user ctrlpanel.txt overrode the one in the mod.
As it should.
Well... Yes, the user one should always take precedence, but on the other hand when that is the case there shouldn't be a user one installed by default. You should have to actually put one there yourself for it to take over.
Gnome wrote:Maelstrom and I made a widget that generates and loads a custom ctrlpanel file (and reloads the user's luaui/ctrlpanel.txt file when it's disabled). We made it to do some magical math that forces buildpics to be displayed square regardless of resolution or aspect ratio.
It's included in S44 at the moment, but Nemo sucks at following my instructions for making S44-specific modifications to it, so it doesn't work right; it should be fairly obvious to anyone what needs fixed, though (I think he pasted in the wrong place which meant he was trying to perform a comparison on a variable that hadn't been set yet).
We licensed it as one of the CC licenses (see its header, I forget which

) so go nuts. I don't know how to do the modifications to the data in layout.lua though, but it would be nice to know since you can get rid of the "Commands"/"Build Orders" text by modifying that file as well.
Oh goody. Whenever I tried to set or send individual pieces of the layout it tended to ignore me, though there is a chance I was editing the wrong file. In the end I just gave evolution two ctrlpanel versions with automatic switching, to get the ratio roughly right.
Edit: so you had to resort to literally writing out a file to load as the ctrlpanel? That works.
Re: Post screenshots of your ui
Posted: 20 Jan 2008, 02:24
by Gnomre
lurker wrote:Edit: so you had to resort to literally writing out a file to load as the ctrlpanel? That works.
Yeah, it's the only method we could come up with short of entirely writing our own GUI. It's on the to-do list, but it'll be a large undertaking so we wrote the widget as a stop-gap.
I'd love to hear/see if you manage to integrate Noize's layout.lua changes somehow. I much prefer the buildpics without dead space between them like he has it (especially with our new buildpics I've made in SWS), but afaik that can only be changed the way he did it. And as I said, I have my eyes set on removing that stupid menu header text as well :)
Re: Post screenshots of your ui
Posted: 20 Jan 2008, 03:11
by lurker
I'll have a nice widget form of Noize's gui that's squared today or tomorrow. It was far easier to figure what is needed to do the buildpics unshrunken from looking at the diff of his layout.lua than trying to find something in the mess of changes that is the tweaked layout widget.
Re: Post screenshots of your ui
Posted: 20 Jan 2008, 22:38
by NOiZE
Thanks lurker for investing time to make the widget :)
Re: Post screenshots of your ui
Posted: 21 Jan 2008, 15:44
by TradeMark
yes do it, i also used that, but LUA destroyed it somehow

, thats why i hate lua...
Re: Post screenshots of your ui
Posted: 23 Jan 2008, 03:08
by jK
not very special but this is mine:
screenshot &
ctrlpanel.txt+layout.lua
things I did:
*changed positions
*removed "Commands" text
*removed unneeded buttons (Move,Attack,SelectAI,etc.)
Re: Post screenshots of your ui
Posted: 23 Jan 2008, 03:08
by jK
:x
Re: Post screenshots of your ui
Posted: 23 Jan 2008, 03:23
by kiki
so to change my layout I need ctrlpanel.txt? Do I need to use teh luas? I just want 4 collumns and more rows for my command/build menu
Re: Post screenshots of your ui
Posted: 23 Jan 2008, 03:29
by jK
there are 2 ctrlpanel.txt. One if you use LuaUI (in ./Spring/LuaUI/*) and one if you don't use LuaUI (in ./Spring/*).
You can open those with any text editor and adjust the settings (change # of rows etc.).
The layout.lua is only available if LuaUI is enabled and you find it in ./Spring/LuaUI/*. You can change a lot with it, but you need some lua and programming experience to change it.
Re: Post screenshots of your ui
Posted: 10 Mar 2008, 18:24
by kiki
This is not my own ui that i am working on, but i think its a good job on making an existing ui look good. Its also a good screenie of nook. Btw the control panel is also completely clear. I like that :)
Re: Post screenshots of your ui
Posted: 10 Mar 2008, 21:15
by ginekolog
thx JJ i use your lua file now. Got rid of useless icons

Re: Post screenshots of your ui
Posted: 10 Mar 2008, 21:57
by TradeMark
kiki wrote:
This is not my own ui that i am working on, but i think its a good job on making an existing ui look good. Its also a good screenie of nook. Btw the control panel is also completely clear. I like that :)
Oh yeah! i like that how those messages are in different colors, and spectator quit isnt "player has quit", i want that. where to download?
Re: Post screenshots of your ui
Posted: 10 Mar 2008, 23:09
by CarRepairer
IceUI. See lua forum section.
Re: Post screenshots of your ui
Posted: 11 Mar 2008, 22:36
by ZellSF
TradeMark wrote:kiki wrote:
This is not my own ui that i am working on, but i think its a good job on making an existing ui look good. Its also a good screenie of nook. Btw the control panel is also completely clear. I like that :)
Oh yeah! i like that how those messages are in different colors, and spectator quit isnt "player has quit", i want that. where to download?
"spectator has quit" has nothing to do with LuaUI or anything, it's what the default UI displays.
Re: Post screenshots of your ui
Posted: 12 Mar 2008, 14:37
by TradeMark
Oh? last time i saw spec quitting, it showed me "player X has quited" or something similar, i just hate those confusing messages as they were actually players. so is it fixed now?
Re: Post screenshots of your ui
Posted: 12 Mar 2008, 16:31
by ZellSF
Uh, it was fixed two months ago. Don't you actually play Spring?
Re: Post screenshots of your ui
Posted: 12 Mar 2008, 17:28
by TradeMark
yeah, i played 2 days ago, and it said player quited o_O