Results 1 to 10 of 17

Thread: .menu as hud-elem replacement bug

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Did you write your menu-items in the global menu.hud? They are drawn *always*. Then you replace your quickchat-menu, to just "toggle" the global menu-items with a custom-cvar in onOpen/onClose.
    timescale 0.01

  2. #2
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Quote Originally Posted by kung foo man View Post
    Did you write your menu-items in the global menu.hud? They are drawn *always*. Then you replace your quickchat-menu, to just "toggle" the global menu-items with a custom-cvar in onOpen/onClose.
    I haven't done that because I'm trying to make a map vote so I need to be able to track keys pressed and do menu responses.

    Code:
    execKey "1" { scriptMenuResponse "testballs" }
    I'm unaware if its possible to do this with hud.menu.

  3. #3
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by filthy_freak_ View Post
    I haven't done that because I'm trying to make a map vote so I need to be able to track keys pressed and do menu responses.

    Code:
    execKey "1" { scriptMenuResponse "testballs" }
    I'm unaware if its possible to do this with hud.menu.
    It isn't possible with that menu - hud.menu does not do scriptmenuresponse because it is not a script menu.

Posting Permissions

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