-
Image Dvar
Hello Everyone,
I don't know how to dvar and image in menu. Can someone help me?
Thanks!
-
-
Assadministrator
use showdvar instead of storing the image in the dvar.
-
-
So, i must write every image in menu, what i want to dvar, but i must turn it off and on? like:
itemDef
{
name "image"
visible 0
rect 0 6 20 20
origin ORIGIN_IMAGE
style WINDOW_STYLE_SHADER
background "IMAGE"
dvartest "ui_allow_image"
showDvar { "0" }
decoration
}
And activate with:
self setClientCvar("ui_allow_image","0"); ??
-
-
Assadministrator
Yep, and to make the final .menu-files short und nice you can use macros: http://killtube.org/showthread.php?1...ighlight=macro
-
-
Sergeant
style WINDOWS_STYLE_DVAR_SHADER
dvar ui_shadername
dvartest ui_shadername
hideDvar { "" }
use these 4 rows draws the image given to the menu by the daver and hides empty images
and in your gsc do: player setClientCvar( "ui_shadername" , "headicon_american" );
Last edited by serthy; 27th June 2013 at 09:36.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules