Page 1 of 1

static UI

Posted: Tue Aug 23, 2005 8:55 pm
by lizardkid
in my ever-increasing curiosity of GUI, i'm trying to make a small UI on my screen, i'm not even sure what i'd want on it, but i'm curious how to make a UI that can be toggled but doesnt take the focus away from the main part of the game. such as the healthbar, it's there, it's toggleable, but it doesnt restrict controls or bring up the mouse when it's in show. how could i make something like that?

Posted: Tue Aug 23, 2005 9:54 pm
by Elgan
do you wish this to be with client side? or server side?

Posted: Wed Aug 24, 2005 1:33 am
by lizardkid
clientside.

Posted: Wed Aug 24, 2005 10:29 am
by Elgan
ok well decide what you want on it, Of couse u cudnt have buttons really because u dont want no focus.

find the dlgeditor and and make a gui and then display it with showmenu instead of pushmenu. This way the focus is still on the game but it becomes visible. It's toggleable also, setup a bind to toggle it on and off swapping the bind to hidemenu. You could also use ui_addhud and remove hud.

Posted: Wed Aug 24, 2005 3:33 pm
by lizardkid
oh, showmenu... i was using togglemenu, obviously it didnt work.

thanks Elg ;)