Disabling UI
Moderator: Moderators
Disabling UI
Why does disabling UI using F5 disable LuaUI drawscreen?
Re: Disabling UI
do i infer correctly this breaks Lua effects?
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Disabling UI
Which ones?
Commander nametags -> work
Display DPS -> works
LUPS -> works
Commander nametags -> work
Display DPS -> works
LUPS -> works
Re: Disabling UI
Auswaschbar wrote:Which ones?
Commander nametags -> work
Display DPS -> works
LUPS -> works
All those use drawworld etc afaik.Regret wrote:drawscreen
Re: Disabling UI
isn't drawworld the place you should be drawing effects, anyway?
edit: i've got a feeling that you actually want a different callin with a working name of DrawScreenUIHidden.
edit: i've got a feeling that you actually want a different callin with a working name of DrawScreenUIHidden.
Re: Disabling UI
No, there already is a check to see whether UI is disabled, I don't see the point to force drawscreen disabled.imbaczek wrote:isn't drawworld the place you should be drawing effects, anyway?
edit: i've got a feeling that you actually want a different callin with a working name of DrawScreenUIHidden.
Spring.IsGUIHidden
Last edited by Regret on 19 Aug 2009, 18:04, edited 1 time in total.
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Disabling UI
WHy would someone call DrawScreen if screen drawing is disabled anyway?Regret wrote:No, there already is a check to see whether UI is disabled, I don't see the point to force drawscreen disabled.imbaczek wrote:isn't drawworld the place you should be drawing effects, anyway?
edit: i've got a feeling that you actually want a different callin with a working name of DrawScreenUIHidden.
Btw, you also fail to give any example widget...
Re: Disabling UI
To change cursor size.Auswaschbar wrote:WHy would someone call DrawScreen if screen drawing is disabled anyway?
Btw, you also fail to give any example widget...
http://springrts.com/phpbb/viewtopic.php?f=23&t=19934
Re: Disabling UI
1) clean separation of responsibilityRegret wrote:No, there already is a check to see whether UI is disabled, I don't see the point to force drawscreen disabled.
2) backwards compatibility
Re: Disabling UI
Drawscreen was always enabled. The disabling when UI is hidden was introduced only in recent spring versions. So what backwards compatibility are you talking about?imbaczek wrote:1) clean separation of responsibility
2) backwards compatibility
Also widget makers are responsible for checking whether UI is hidden with Spring.IsGUIHidden().
Re: Disabling UI
no idea, i didn't design the api nor do i follow changes in it; it's how i'd do it. if it was working differently than it is now, there should be a rationale somewhere.
Re: Disabling UI
What on earth is the Spring.IsGUIHidden for then? It was always used in drawscreen. There is no rational explanation for forcing drawscreen to be disabled other than catering to lazy widget makers that do not make the said check.imbaczek wrote:no idea, i didn't design the api nor do i follow changes in it; it's how i'd do it. if it was working differently than it is now, there should be a rationale somewhere.
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Disabling UI
Spring.SetMouseCursor should be called from widget:Update anyway (see trepans SmoothScroll-widget).
Re: Disabling UI
It does not work in Update.Auswaschbar wrote:Spring.SetMouseCursor should be called from widget:Update anyway (see trepans SmoothScroll-widget).
EDIT: seems there is widget:DrawScreenEffects() which makes this topic nil.