Almost a ready to use theme script

Discussion in 'Modifications' started by T[h]E Dis[as]teR, Dec 1, 2011.

  1. I guess it's more a guide than a script ;)
    Self Explanatory, if you don't get it try harder
    It's still for buttons but it might get expanded, updated or changed or it might not even change
    Mainly made to change the 1 button to as much as there is buttons

    Preview:

    [​IMG]

    Code:
    //
    // Theme by T[h]E Dis[as]teR
    //
    // Use this to chnge the picture of the buttons
    // ButtonName.setBitmap("path/filename");
    // Example:
    // ---------
    // MainMenuFindGamesButton.setBitmap("mods/autoexec/theme/Button");// Play button
    // ---------
    // Just add it to the function below
    //
    //
    // Use this to change the position of the buttons
    // ButtonName.setPosition(x, y);
    // Example:
    // ---------
    // MainMenuFindGamesButton.setPosition(10, 342);// Play button
    // ---------
    // Just add it to the function below
    //
    //
    // For mod support
    // Example: NightHawk043s' Quit to desktop script
    // ---------
    //  if(isObject(nhQuitButton))
    //  {
    //      nhQuitButton.setBitmap("mods/autoexec/theme/ExampleButton");// Leave game button
    //  }
    // ---------
    // Just add it to the function below
    //
    // Button list: ( Not full list )
    /// --Main menu
    /// MainMenuFindGamesButton -Play button
    /// MainMenuOptionsButton -Options button
    /// MainMenuQuitButton -Quit buton
    ///
    /// --Server browser
    /// ServerBrowserJoinButton -Join button
    /// ServerBrowserRefreshButton -Refresh button
    /// ServerBrowserBackButton -Back button
    /// ----Server browser password dialog
    /// JoinPasswordClose -Close button
    /// JoinPasswordOK -Join button
    ///
    /// --Options menu
    /// closeButton -Top Close button
    /// CustomizeKeybindingsButton -Keybindings button
    /// VideoOptionsButton -Video button
    /// GameOptionsBackButton -Back button
    /// ----Keybindings submenu
    /// KeybindingsCloseButton -Top Close button
    /// RevertKeybindingsButton -Back button
    /// KeybindingsBackButton -Reset to dafault button
    /// ----Video submenu
    /// VideoCloseButton -Top Close button
    /// VideoBackButton -Back button
    /// ApplyVideoOptionsButton -Apply button
    ///
    /// --Loading page
    /// LoadLeaveGameButton -Leave game button
    ///
    /// --In-game Pause menu
    /// JoinTeam0Button -Join alpha button
    /// JoinTeam1Button -Join beta button
    /// RespawnButton -Respawn button
    /// OptionsButton -Options button
    /// ResumeGameButton -Resume game button
    /// LeaveGameButton -Leave game button
    I've changed a few GUI files for the sake of this script so don't forget to use them
    You should also direct the people to download the GUIs.zip file from here and extract it in their live folder

    Have fun :)
     

    Attached Files:

  2. Immanent

    Immanent Member

    Figuring from the code, it looks pretty boss.
    Can't swim? SWIM HARDER!

    Good job!
     
  3. you seem to not even want to try!
     
  4. Immanent

    Immanent Member

    I'm on a Mac that can't handle legions, I'll wait till my PC gets fixed :p