Disabling UI
Posted: 19 Aug 2009, 17:40
Why does disabling UI using F5 disable LuaUI drawscreen?
Open Source Realtime Strategy Game Engine
https://springrts.com/phpbb/
Auswaschbar wrote:Which ones?
Commander nametags -> work
Display DPS -> works
LUPS -> works
All those use drawworld etc afaik.Regret wrote:drawscreen
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.
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.
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...
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.
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
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.
It does not work in Update.Auswaschbar wrote:Spring.SetMouseCursor should be called from widget:Update anyway (see trepans SmoothScroll-widget).