Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6772


Ignore:
Timestamp:
Apr 22, 2010, 4:27:25 PM (15 years ago)
Author:
gionc
Message:

update Skybox Generator

Location:
code/branches/skybox2/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/skybox2/src/libraries/core/Core.cc

    r6417 r6772  
    7878
    7979    SetCommandLineArgument(settingsFile, "orxonox.ini").information("THE configuration file");
     80    SetCommandLineSwitch(noGametypeCaptions).information("Use this if you don't want to use Gametype captions.");
     81
    8082#ifdef ORXONOX_PLATFORM_WINDOWS
    8183    SetCommandLineArgument(limitToCPU, 1).information("Limits the program to one CPU/core (1, 2, 3, etc.). Default is the first core (faster than off)");
     
    148150        this->setConfigValues();
    149151
     152        // no captions in gametype.
     153        if(CommandLineParser::getValue("noGametypeCaptions").getBool())
     154        {
     155            ModifyConfigValue(bGametypeCaptions_, tset, false);
     156        }
     157
    150158        // create persistent io console
    151159        this->ioConsole_.reset(new IOConsole());
     
    193201            .description("If true, all random actions are different each time you start the game")
    194202            .callback(this, &Core::initRandomNumberGenerator);
     203        SetConfigValue(bGametypeCaptions_, true)
     204            .description("Set to false if you don't want to use Gametype captions.");
    195205    }
    196206
  • code/branches/skybox2/src/libraries/core/Core.h

    r6417 r6772  
    6767            void setConfigValues();
    6868
     69            inline bool hasGametypeCaptions(void)
     70                { return this->bGametypeCaptions_; }
     71
    6972            //! Returns the configured language.
    7073            const std::string& getLanguage()
     
    108111            std::string                   language_;                   //!< The language
    109112            bool                          bInitRandomNumberGenerator_; //!< If true, srand(time(0)) is called
     113            bool                          bGametypeCaptions_;
    110114
    111115            static Core*                  singletonPtr_s;
  • code/branches/skybox2/src/modules/overlays/hud/GametypeStatus.cc

    r5781 r6772  
    3030
    3131#include "util/Convert.h"
     32#include "core/Core.h"
    3233#include "core/CoreIncludes.h"
    3334#include "infos/GametypeInfo.h"
     
    6061            ControllableEntity* ce = this->owner_->getControllableEntity();
    6162
     63            if(!Core::getInstance().hasGametypeCaptions()) // No captions are displayed.
     64                return;
     65
    6266            if (!gtinfo->hasStarted() && !gtinfo->isStartCountdownRunning())
    6367            {
Note: See TracChangeset for help on using the changeset viewer.