Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 31, 2010, 3:37:40 AM (14 years ago)
Author:
landauf
Message:

merged consolecommands3 branch back to trunk.

note: the console command interface has changed completely, but the documentation is not yet up to date. just copy an existing command and change it to your needs, it's pretty self-explanatory. also the include files related to console commands are now located in core/command/. in the game it should work exactly like before, except for some changes in the auto-completion.

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/modules/designtools/SkyboxGenerator.cc

    r7163 r7284  
    3434#include <OgreCamera.h>
    3535
    36 #include "core/ConsoleCommand.h"
     36#include "util/ScopedSingletonManager.h"
    3737#include "core/CoreIncludes.h"
    3838#include "core/ConfigValueIncludes.h"
    39 #include "core/ScopedSingletonManager.h"
     39#include "core/GraphicsManager.h"
     40#include "core/command/ConsoleCommand.h"
     41#include "core/command/CommandExecutor.h"
    4042#include "controllers/HumanController.h"
    4143#include "worldentities/CameraPosition.h"
    4244#include "worldentities/ControllableEntity.h"
    43 #include "core/GraphicsManager.h"
    44 #include "core/CommandExecutor.h"
    4545#include "graphics/Camera.h"
    4646
     
    5050{
    5151
    52     SetConsoleCommand(SkyboxGenerator, createSkybox, true);
     52    SetConsoleCommand("SkyboxGenerator", "createSkybox", &SkyboxGenerator::createSkybox).addShortcut();
    5353
    5454    ManageScopedSingleton(SkyboxGenerator, ScopeID::Graphics, false);
     
    7979            if(!this->captionsRemoved_)
    8080            {
    81                 CommandExecutor::execute("setGametypeStatus false");
     81                CommandExecutor::execute("GametypeStatus displayCaption false");
    8282                this->captionsRemoved_ = true;
    8383                return;
     
    145145                takeScreenshot_ = false;
    146146                CommandExecutor::execute("pause");
    147                 CommandExecutor::execute("setGametypeStatus true");
     147                CommandExecutor::execute("GametypeStatus displayCaption true");
    148148                this->captionsRemoved_ = false;
    149149            }
Note: See TracChangeset for help on using the changeset viewer.