Results 1 to 2 of 2

Thread: Adding buttons in mainmenu.

  1. Just getting started
    Join Date
    02-03-09
    Posts
    3
    Post Thanks / Like
    #1

    Adding buttons in mainmenu.

    Hey everyone.

    there are many articles how to add a "openserverbrowser"-button to your main menu.

    I want to add multiple buttons for toggle console, load scripts, etc.

    Code:
    / Server Browser
        "BtnOpenServer"
        {
            "ControlName"             "L4D360HybridButton"
            "fieldName"             "BtnOpenServer"
            "xpos"                 "125"
            "ypos"                 "100" [$X360]
            "ypos"                 "165" [$WIN32]
            "wide"                 "180" [$X360]
            "wide"                 "180" [$WIN32]
            "tall"                 "20" [$X360]
            "tall"                 "15" [$WIN32]
            "autoResize"             "1"
            "pinCorner"             "0"
            "visible"             "1"
            "enabled"             "1"
            "tabPosition"             "0"
            "navUp"             "BtnPlaySolo"
            "navDown"             "BtnStatsAndAchievements"
            "labelText"             "OPEN SERVER BROWSER"
            "tooltiptext"             "Look for a server using the server list."
            "style"             "MainMenuButton"
            "command"             "OpenServerBrowser"
            "ActivationType"         "1"
            "FocusDisabledBorderSize"     "1"
        }
    when i simply replace "openserverbrowser" with "toggleconsole" it wont work.
    things i've tried :
    "toggleconsole"
    "engine toggleconsole" (worked on Counterstrike Source)
    "+toggleconsole"
    "exec loadconsole.cfg" (cfg file contains toggleconsole)
    "exec loadconsole.res" (" " " " " " " " " " " " " " " " " " " " )
    ..

    i just cant get it to work.

    __________________________________________________

    when i put "toggleconsole" at the bottem of my config.cfg.
    it will open the console, but when i click on a button of the mainmenu.
    it vanishes.

    __________________________________________________

    what is my goal?
    i want to add buttons, so that force the lobby to join a specific server.
    so i can click the button of the server i want to join, and then go to the lobby, when i press search servers, it would go to my server.

    i have multiple servers, so id like to make multiple button, one for each server.

  2. Just getting started
    Join Date
    02-03-09
    Posts
    3
    Post Thanks / Like
    #2
    still no one with a sollution?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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