Results 1 to 10 of 46

Thread: name , client id in menu

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Private
    Join Date
    May 2013
    Posts
    27
    Thanks
    0
    Thanked 19 Times in 11 Posts
    Quote Originally Posted by Tally View Post
    You wont be able to show the result of a dvar if you use the action{} element in an itemDef{}. Also, you aren't defining the font and fontstyle and size. It wont show unless you do that.
    Code:
    		itemDef
    		{
    			name			rcon_button
    			type			ITEM_TYPE_BUTTON
    			dvar			"rcon_rsp_player0"
    			rect			0 0 SLOT_SIZE
    			origin			ORIGIN_SLOT
    			textstyle		OPTIONS_ITEM_TEXT_STYLE
    			textalign		OPTIONS_ITEM_ALIGN
    			textalignx		SLOT_ALIGNX
    			textaligny		SLOT_ALIGNY
    			textscale		SLOT_TXTSCALE
    			style			WINDOW_STYLE_FILLED
    			backcolor		OPTIONS_CONTROL_BACKCOLOR
    			forecolor		OPTIONS_CONTROL_FORECOLOR
    			visible			1
    			dvartest		"rcon_rsp_result"
    			showDvar		{ "1" }
    			action
    			{
    				play "mouse_click";
    				scriptMenuResponse "rcon_cmd_player0";
    			}
    			mouseEnter
    			{
    				play "mouse_over";
    			}
    		}
    Using a dvar as text, checking dvar to show at all, and with an action... shows perfectly fine.

  2. The Following User Says Thank You to PatmanSan For This Useful Post:

    kung foo man (2nd May 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •