IceUI - Page 21

IceUI

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

Moderator: Moderators

User avatar
Chosker
Posts: 37
Joined: 02 Sep 2008, 09:45

Re: IceUI

Post by Chosker »

question, why does my layout never get saved when I change positions/sizes/colors/etc in-game?
and what about profiles? why do I never get one and how can I get one working? I don't want to have to modify each gadget's position manually (on every lua file) because I'd have to do it all over again every time I updated to a new version
User avatar
Hoi
Posts: 2917
Joined: 13 May 2008, 16:51

Re: IceUI

Post by Hoi »

there should be some kinna file which stores your config, just dont overwrite it.
User avatar
Chosker
Posts: 37
Joined: 02 Sep 2008, 09:45

Re: IceUI

Post by Chosker »

there's not. my profiles dir only came with a 1.72kb "en.lua" file which only has definitions like ["100000"] = "d" for every letter and symbol.
besides that, IceUI never generates any config file or anyhthing, and so when I move stuff around, exit the game (shift+esc, menu-exit, alt-f4. happens the same any way I exit) then launch it again all windows go back to default positions, sizes, colors, etc
also it doesn't save when I disable IceUI widgets, while it does remember if I disable non-IceUI widgets
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: IceUI

Post by Satirik »

  • the combo box doesn't work, simple click just doesn't do anything double click makes luaui crash => can't change the colors etc (major bug)
  • i misses the gradiant :D
  • my player info fork doesn't save the pos correctly, it starts at random pos at every starts
  • you already know that but the building window is always enabled by default
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: IceUI

Post by CarRepairer »

Request: Could you please make it have layer=1 on your next release?

I have a modside widget which I want to draw font on top of IceUI windows, but I can't get it to happen until I change the layer in IceUI from 0 to 1. I tried making my widget layer=-1 but it didn't work. I want this to work for anyone using IceUI so I would need you to change it. Thanks.
User avatar
Chosker
Posts: 37
Joined: 02 Sep 2008, 09:45

Re: IceUI

Post by Chosker »

so is there any way to make IceUI remember sizes and positions at all?
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: IceUI

Post by MelTraX »

Chosker: Do you have a problem with your permissions in the filesystem maybe? Are you on Linux? Could you try to create a current.lua in in profiles dir containing "return {}"? Could you try revision 78 (link should be in an IceUI Bot post one or two pages back)? That's about all I can think of atm..

I will have a look at the other issues this weekend..
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: IceUI

Post by very_bad_soldier »

Hi Meltrax, I had this odd problem:
http://spring.clan-sy.com/phpbb/viewtop ... 11&t=16475

I think its related to IceUI because it does not happen anymore since I have IceUI disabled. But I would like to enable again :?
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: IceUI

Post by MelTraX »

It does look like a problem with IceUI but I have no idea why.. I don't use any depth stuff.. Can you reproduce that? If yes, can you zip your lua dir and let me check if I can reproduce it?
User avatar
Chosker
Posts: 37
Joined: 02 Sep 2008, 09:45

Re: IceUI

Post by Chosker »

well just updated IceUI using the updater. same result as before, and the changelog says it's a release from the same date (had updated like a week ago)
tried creating a blank current.lua on /profiles then just typed "return {}" (without quotes). no luck either
maybe it is a problem with the filesystem. I'm on Vista 64bit and the profiles folder stays as read-only and I can't change that (common problem on Vista, already tried all the workarounds and no luck). however the file current.lua is not read-only
also tried making current.lua have the following:

Code: Select all

return {
	minimap = {
		position = {
			[1] = -500,
			[2] = -500,
		},
		size = {
			[1] = 0.15,
			[2] = 0.15,
		},
	}
}
this I saw from other file. anyway I get no changes from the default position/size. it's like it's not even trying to read current.lua as its profile
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: IceUI

Post by very_bad_soldier »

MelTraX wrote:It does look like a problem with IceUI but I have no idea why.. I don't use any depth stuff.. Can you reproduce that? If yes, can you zip your lua dir and let me check if I can reproduce it?
I am not able to reproduce at the moment too, I reinstalled spring in the meantime, maybe it fixed something already. Maybe it has something to do with the AdvancedPlayerList-Widget since I saw another bug related to AdvPlayerList with IceUI. It has something to do with fonts. This is how the player list looks right after start without IceUI:
ImageImage

As soon as I start IceUI via F11-menu, the player list looks like this:
ImageImage
It somehow changes to font and the font gets bigger.

And I have another bug:
After starting spring.exe with Commander-script (the script doesnt matter I think), spring freezes completely if I enable and disable IceUI exactly three times in the F11 menu (on/off, on/off, on -> Freeze). I can reproduce this to 100%.
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: IceUI

Post by MelTraX »

That profile actually shouldn't change anything since r79. Test the following to see if the profile is read correctly:

Code: Select all

return {
	["Active Windows"] = {
		Camera = false,
	},
}
That should hide the little camera window.
Posts
Posts: 63
Joined: 02 Oct 2007, 04:00

Re: IceUI

Post by Posts »

re: first post
Current version available at spring.jobjol.nl.
(there is a link in there ^, colors are different in bbcode quote)
fails to work
gfind/gmatch errors
r73
If the updater doesn't work for you or you don't want to use it, you can always get the latest version from http://tinyurl.com/yqtpuk (7z) or http://tinyurl.com/36smzm (tar.gz).
tar.gz worked
User avatar
Chosker
Posts: 37
Joined: 02 Sep 2008, 09:45

Re: IceUI

Post by Chosker »

MelTraX wrote:That profile actually shouldn't change anything since r79. Test the following to see if the profile is read correctly:

Code: Select all

return {
	["Active Windows"] = {
		Camera = false,
	},
}
That should hide the little camera window.
tried creating a new Profiles/current.lua with only that. it doesn't hide it :(
IceUI Bot
Posts: 8
Joined: 29 Jan 2008, 13:38

IceUI Update (Revision 80)

Post by IceUI Bot »

Changelog:

Code: Select all

  + Added a full featured wrapper window for the Spring control
    panel with pretty much all options from ctrlpanel.txt.
  + Added an option for the console to hide messages about start
    locations.
  + Added right-click on the teamicon in the player list to ally/unally
    (untested).
  + Added number of selected units to the tooltip because I hid
    the little GUI element that showed it before.
  * Pressing F5 hides IceUI again.
  * Changed IceUI layer to 5 so other widgets can draw above it.
  * Fixed that other widgets inherit the font selected by IceUI.
  * Fixed a crash when toggling IceUI a few times.
  * Fixed size of the scrollbar and added the missing images.
  * Fixed go to unit commands in the player info and unitcollections
    windows.
  * Fixed dropdown boxes.
  * Fixed that you could inherit a color from itself (caused a crash).
  * Windows no longer disappear when moved to the screen edge.
  / Added windowManager:CallInXFrames(frames, func) to execute stuff
    a little later.
  / Windows can now have an options table just like widgets (adds
    support for option types other than bool).
  / Fixed dropdown options for detailed list options.
  Replaced components should be properly deleted now.
  
Use your updater or this direct link: http://tinyurl.com/6sajsz (revision80.7z)
IceUI Bot
Posts: 8
Joined: 29 Jan 2008, 13:38

IceUI Update (Revision 81)

Post by IceUI Bot »

Changelog:

Code: Select all

  Changed the default position of the control panel to something
    that actually makes sense.
Use your updater or this direct link: http://tinyurl.com/66rkxz (revision81.7z)
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: IceUI

Post by MelTraX »

In case you downloaded r80 and wonder where your control panel is: I forgot to change the default location and for you it's probably the exact same position and size as the little camera window. Just move it to the right spot after pressing CTRL+F11.
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Re: IceUI

Post by Acidd_UK »

I get a 403 (forbidden) error from that link, also, you're not a valid certificate producer :P
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: IceUI

Post by MelTraX »

Wanna pay me a certificate? :D

The 403 is fixed now though that's the wrong link. Use revision 81 if you want to have less trouble.
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: IceUI

Post by MelTraX »

Here's the new version with Satiriks changes. Took a bit longer because I also fixed the bug when saving the player list position from the bottom.

I also attach my current profile with a screenshots in case anyone wants to use it or whatever. I may not attach a second screenshot but it would have been the same anyway except for buildpics on the left.
Attachments
screen007.png
screenshot of my profile without buildpics
(1.18 MiB) Downloaded 86 times
current.lua
my current profile
(6.59 KiB) Downloaded 49 times
IceUI r81+Satiriks changes.7z
latest version of Satiriks fork
(600.39 KiB) Downloaded 49 times
Post Reply

Return to “Lua Scripts”