Red UI widgets - Page 4

Red UI widgets

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

Moderator: Moderators

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Red UI widgets

Post by Forboding Angel »

The positions gravitate towards the top left of the screen. There isn't anything in the infolog. redui isn't crapping out, just it's positions for elements shift. It's really frustrating, because then I have to open up my widget settings and delete the redui stuff to reset it.
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Red UI widgets

Post by Regret »

Updated first post, sorry forb didnt fix your bug yet I think.
SkyStar
Engines Of War Developer
Posts: 23
Joined: 08 Jul 2009, 15:05

Re: Red UI widgets

Post by SkyStar »

In your resource bars, can you explain whats the difference between pull and expense? I don't quite understand how expense can sometimes not be the same as pull.
Last edited by SkyStar on 11 Oct 2009, 01:33, edited 1 time in total.
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Red UI widgets

Post by Regret »

SkyStar wrote:Can you explain whats the difference between pull and expense? I don't quite understand how expense can sometimes not be the same as pull.
When you stall then one represents your demand and one how much you are actually spending due to lesser income than demand.
SkyStar
Engines Of War Developer
Posts: 23
Joined: 08 Jul 2009, 15:05

Re: Red UI widgets

Post by SkyStar »

Ah now I understand, thank you for your time to answer ^^.
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Red UI widgets

Post by Regret »

.
Last edited by Regret on 19 Dec 2009, 19:39, edited 1 time in total.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Red UI widgets

Post by Forboding Angel »

Can you please implement a "reset positions" function? Anytime spring crashes I have to go take all the redui crap out of widgets so that it gets repositioned correctly. It's a really really really annoying bug.
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Red UI widgets

Post by Regret »

Forboding Angel wrote:Can you please implement a "reset positions" function? Anytime spring crashes I have to go take all the redui crap out of widgets so that it gets repositioned correctly. It's a really really really annoying bug.
I can't replicate that bug so I have no idea what's wrong.

Did you modify the framework/widgets? If so upload all.
Are the widgets included in a game archive? Post link to game.
Got any replays that crash while watching?
What resolution are you playing in?
Windowed mode?
Post infolog of a normal game where spring doesn't crash (for list of all widgets you use).

A reset button would have to be made for every single widget as the framework itself has nothing to do with configuration saving.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Red UI widgets

Post by Forboding Angel »

Regret wrote:
Forboding Angel wrote:Can you please implement a "reset positions" function? Anytime spring crashes I have to go take all the redui crap out of widgets so that it gets repositioned correctly. It's a really really really annoying bug.
I can't replicate that bug so I have no idea what's wrong.

Did you modify the framework/widgets? If so upload all.
Are the widgets included in a game archive? Post link to game.
Got any replays that crash while watching?
What resolution are you playing in?
Windowed mode?
Post infolog of a normal game where spring doesn't crash (for list of all widgets you use).

A reset button would have to be made for every single widget as the framework itself has nothing to do with configuration saving.
No.
Yes: http://download.evolutionrts.info/
Probably
1920x1200
Fullscreen

I only use the widgets that are included with Evo.

They only go all out of wack when spring crashes.
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Red UI widgets

Post by Regret »

Forboding Angel wrote:No.
Yes: http://download.evolutionrts.info/
Probably
1920x1200
Fullscreen

I only use the widgets that are included with Evo.

They only go all out of wack when spring crashes.
I could use those crashing replays, so upload if you find any.

Next time it crashes upload the config file (before running game again) that you purge after crashes to reset it. Also a screenshot of how it looks after you run it again (with the shifted positions) would be nice.

Try updating to newest framework / widget versions.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Red UI widgets

Post by Forboding Angel »

I've been using the newest framework since forever. Every time you updated, I updated. Same for the widgets (haven't added minimap yet due to lack of time to test it).

I don't have a crashing replay (but any crashing replay will cause it to happen), but I do have a screenshot:

Image
screen053.jpg
(1.5 MiB) Downloaded 2 times
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Red UI widgets

Post by Regret »

Forboding Angel wrote:I've been using the newest framework since forever. Every time you updated, I updated. Same for the widgets (haven't added minimap yet due to lack of time to test it).
Thanks to TheFatController this bug is now fixed, I'll release fixed widgets close to the release of new BA because there are still few bugs to fix etc.

To fix your bug just add this line:

Code: Select all

AutoResizeObjects()
to end of every Initialize() callin in every RedUI widget (not the framework).

f.e. tooltip widget:

Code: Select all

function widget:Initialize()
	PassedStartupCheck = RedUIchecks()
	if (not PassedStartupCheck) then return end
	
	tooltip = createtooltip(Config.tooltip)
	
	Spring.SetDrawSelectionInfo(false) --disables springs default display of selected units count
	Spring.SendCommands("tooltip 0")

	AutoResizeObjects() -- <-----
end
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Red UI widgets

Post by Regret »

New versions released.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Red UI widgets

Post by Forboding Angel »

Did this new version include Z's fix for greyed out (disabled) buildpics?
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Red UI widgets

Post by Regret »

Forboding Angel wrote:Did this new version include Z's fix for greyed out (disabled) buildpics?
Don't remember, maybe.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Red UI widgets

Post by Forboding Angel »

Regret wrote:
Forboding Angel wrote:Did this new version include Z's fix for greyed out (disabled) buildpics?
Don't remember, maybe.
Kind of a dealbreaker tbh, if at all possible, I would really really like to know.
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Red UI widgets

Post by Regret »

Forboding Angel wrote:Kind of a dealbreaker tbh, if at all possible, I would really really like to know.
You could just try it out, or give me a link to the topic where the fix was discussed.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Red UI widgets

Post by Forboding Angel »

Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: Red UI widgets

Post by Regret »

That fix is in this release. :regret:
Post Reply

Return to “Lua Scripts”