IceUI - Page 20

IceUI

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Re: IceUI

Post by Acidd_UK »

Using that latest fork - I have a few comments:

The default colour scheme seems too light, I preferred a darker default scheme.

The minimap background/container box is always there, no matter what the aspect ratio of the map. This usually results in an (imho) ugly border either at the top and bottom of the minimap, or at the sides. This looks a bit ugly. If the minimap box could remember its largest size for the tweak mode, but dynamically resize and centre for any given map, that would be cool.

The players list widget seems to have changed. It used to sit in the bottom right corner for me and would resize vertically upwards to cope with however many players there were. Now it's resizing downwards, so cutting off players from the bottom off the list on the bottom edge of my screen...

Other than these minor niggles, it loots totally sweet though :-)
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: IceUI

Post by BrainDamage »

both are already being possible, enter the luaui tweak mode

minimap:

right click on it then set all the transparency sliders to be o ( fulll transparent background and border)

player list:

right click then enable the option "grow from bottom"
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: IceUI

Post by MelTraX »

Yeah, the thing missing from the fork is Satirik's default profile.. Forgot to put it into the archive, sorry.. You should just be able to use the one in his original archive..
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Re: IceUI

Post by Acidd_UK »

Thanks for the quick replies!
User avatar
Chosker
Posts: 37
Joined: 02 Sep 2008, 09:45

Re: IceUI

Post by Chosker »

question: how can I get a window to be centered on the screen? and I mean have its own center in the middle of the screen.

using x as 0.5 means the window will start on the middle and go to the right from that point
ideally I would need to have the middle of the screen (0.5) minus half my window width (if my window's width is 400, then use 200), but of course doing so results in a non-relative number (-199.5)
I tried creating a function to use the windowmanager's width but it's fixed at 800 so I can't really use it
I also tried using the function MoveBy but it doesn't work because it thinks my window's absolute.x is 0. same thing if I use MoveTo((window:GetX() -200), 0)

any ideas? having a window on the middle of the screen sounds like an important feature :?
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: IceUI

Post by MelTraX »

So someone is actually making stuff with IceUI? The windows I centered (Tweak-Mode, widget selector) all have a relative size (0.5 width and 0.25 left => centered).. You can, however, use a function as width/height/left/top.. That function will be called with the dimensions (a table { absolute={width=13,height=4,x,y},relative={} }) from the parent (in case of a window that should be the windowManager so the size should be the screen size) and should return the absolute value for the width/height/left/top.. I just checked that this feature is implemented but I'm not really sure if I ever used it..

If you still have trouble, you can also PM me in the lobby (though I'm usually not in #main, so look in $local or #news)..
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: IceUI

Post by ginekolog »

I use IceUI now too, its great if u have decent CPU. Only thing that bothers me is how to make sure minimap is allways aligned top right of screen? Atm if map is not pure square there is some room on top and left and i missclick sometimes. Is this fixable?

Orig minimap is movable so i move it to topleft allways.
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: IceUI

Post by MelTraX »

Yeah, I'll introduce some options for minimap placement so more people are happy.. As a first thing I would make an option that doesn't center the minimap in its window but puts it to the top-left, bottom-right, whatever..

But I'll first finish the new tweak-mode.. And after the release (today or tomorrow), I gotta advertise the widget options a bit since the thread about them only got one answer.. :(
Tilgor
Posts: 11
Joined: 27 Jun 2008, 13:29

Re: IceUI

Post by Tilgor »

Could u do version with satirik colour style? i really like this: http://spring.jobjol.nl/jpg_uploads/1208218410.jpg but this old version doesnt work now:/ For me new gray/silver style is ugly :(
IceUI Bot
Posts: 8
Joined: 29 Jan 2008, 13:38

IceUI Update (Revision 79)

Post by IceUI Bot »

Changelog:

Code: Select all

  . Moved the settings window to an own file.
  + Tweak-Mode now has three tabs. One with all the IceUI options.
    One with a more fine-grained control of colors. And one with options
    to control other widgets. The last one is empty right now but
    will fill if other widget developers use this feature.
  * Changed some components to use display lists (should speed-up
    the drawing a bit).
  * Teamicons should now be updated whenever you change the team
    as a spectator.
  * Renamed Tweak-Mode to Options in the game menu.
  * The unit collections window doesn't leave any content behind
    anymore when switching teams and has the correct width in horizontal
    mode.
  / Added components scrollable, dropdown, numberSlider and textfield
    and added a lot of functions to existing input components to change
    their state.
  / Added callins TeamChanged and ParentChanged.
  / Added windowManager:ModalDialog, windowManager:GetWindowList,
    windowManager:GetWindow and windowManager:GetUserInput.
  / Added support for function values in position and size that
    get the dimensions of the parent and should return the absolute
    width/height/x/y.
  / Reworked the profileManager and added color management.
  / You can call color:New with a color management table now aswell.
  / If you call margin:New with a number instead of a table it uses
    it on all four sides now.
Use your updater or this direct link: http://tinyurl.com/3l5ecz (revision79.7z)
IceUI Bot
Posts: 8
Joined: 29 Jan 2008, 13:38

IceUI Update (Revision 79)

Post by IceUI Bot »

Changelog:

Code: Select all

  . Moved the settings window to an own file.
  + Tweak-Mode now has three tabs. One with all the IceUI options.
    One with a more fine-grained control of colors. And one with options
    to control other widgets. The last one is empty right now but
    will fill if other widget developers use this feature.
  * Changed some components to use display lists (should speed-up
    the drawing a bit).
  * Teamicons should now be updated whenever you change the team
    as a spectator.
  * Renamed Tweak-Mode to Options in the game menu.
  * The unit collections window doesn't leave any content behind
    anymore when switching teams and has the correct width in horizontal
    mode.
  / Added components scrollable, dropdown, numberSlider and textfield
    and added a lot of functions to existing input components to change
    their state.
  / Added callins TeamChanged and ParentChanged.
  / Added windowManager:ModalDialog, windowManager:GetWindowList,
    windowManager:GetWindow and windowManager:GetUserInput.
  / Added support for function values in position and size that
    get the dimensions of the parent and should return the absolute
    width/height/x/y.
  / Reworked the profileManager and added color management.
  / You can call color:New with a color management table now aswell.
  / If you call margin:New with a number instead of a table it uses
    it on all four sides now.
Use your updater or this direct link: http://tinyurl.com/3l5ecz (revision79.7z)
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: IceUI

Post by MelTraX »

That new version contains quite a few big changes.. The only visible change however is the new tweak-mode..

Some of the bigger changes unfortunately break all existing profiles.. I'm very sorry about that but since there are not too many options to fiddle around with, I guess it's ok if you guys have to make a new one..

The greatest new feature, if you ask me, is the ability for other widgets to specify options in such a way that they can be changed using IceUIs tweak-mode.. For further information, please check this thread.. I really hope a lot of widgets will use this..
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: IceUI

Post by MelTraX »

And here is Satiriks fork.. Because of the major changes to profile handling and color stuff, you have to live without gradient backgrounds for a week or two..

I also didn't include a profile..
Attachments
IceUI r79+Satiriks changes.7z
(609.81 KiB) Downloaded 42 times
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Re: IceUI

Post by Acidd_UK »

Leg end
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: IceUI

Post by CarRepairer »

Can you add a "reset" button to the menu that puts all windows in their default positions? Sometimes windows disappear when you move them to the edge and accidentally let go of the mouse. The only fix is to go to the profile folder and enter some numbers like 0.5,0.5 to stick it back in the middle of the screen. This is tedious and not possible if you're in mid-game, but a reset button would make it quick and easy. I tried putting the minimap in the bottom left corner, it insta-wrapped over to the bottom right where it was visible but no longer a movable IceUI window anymore.
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: IceUI

Post by MelTraX »

Ah yeah, I keep forgetting about that bug.. I won't add a reset button but rather the feature to import certain settings (including window positions) from other profiles (including the default profile).. That won't happen in the next days but I will fix the bug of windows disappearing (actually clipping to the other side of the screen) in the next release.. I promise ;)..
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: IceUI

Post by Satirik »

you can add a minimum height and width per windows too, sometimes when you resize a window to something really small you can't resize it anymore
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Re: IceUI

Post by Acidd_UK »

ICEUI r0.79 (or the version with the forked stuff) does not work with 0.77b2 of Spring - it gets to the loading screen message 'Loading LUAUI' and then jsut sits there, maxing out one of my cores.... ICEUI r0.78 works to some degree, in that it gets into the game, but all the window widgets show up in the list twice, don't seem to remember their position correctly and there are other weird effects too :-(
ZellSF
Posts: 1187
Joined: 08 Jul 2006, 19:07

Re: IceUI

Post by ZellSF »

I used the updater and now I can't choose colours for windows anymore? :/
el_matarife
Posts: 933
Joined: 27 Feb 2006, 02:04

Re: IceUI

Post by el_matarife »

Acidd_UK wrote:ICEUI r0.79 (or the version with the forked stuff) does not work with 0.77b2 of Spring - it gets to the loading screen message 'Loading LUAUI' and then jsut sits there, maxing out one of my cores.... ICEUI r0.78 works to some degree, in that it gets into the game, but all the window widgets show up in the list twice, don't seem to remember their position correctly and there are other weird effects too :-(
I have a few people who have it working, but I can't get it working myself. I tried deleting my profile which actually made it worse. I've got a whole range of issue you would have to see screenshots to believe.
Post Reply

Return to “Lua Scripts”