Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6791


Ignore:
Timestamp:
Apr 26, 2010, 4:35:31 PM (15 years ago)
Author:
smerkli
Message:

Chat works lowlevel, shortcut is set to B. needs ui now.

Location:
code/branches/chat
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/chat/data/defaultConfig/keybindings.ini

    r6417 r6791  
    77KeyApostrophe=
    88KeyApps=
    9 KeyB=
     9KeyB =
    1010KeyBack=
    1111KeyBackslash=
  • code/branches/chat/src/orxonox/ChatInputHandler.cc

    r6788 r6791  
    3737  /* singleton */
    3838  ManageScopedSingleton( ChatInputHandler, ScopeID::Graphics, false );
     39  SetConsoleCommandAlias( ChatInputHandler, activate_static, "startchat",
     40    true );
    3941
    4042  /* constructor */
     
    5052
    5153    /* configure the input buffer */
    52                 configureInputBuffer();
     54    configureInputBuffer();
    5355
    5456    this->inputState = InputManager::getInstance().createInputState( "chatinput", false, false, InputStatePriority::Dynamic );
    5557    this->inputState->setKeyHandler(this->inpbuf);
    5658
    57     /* set console shortcut */
    58     this->getIdentifier()->addConsoleCommand(createConsoleCommand(createFunctor(
    59       &ChatInputHandler::activate, this), "startchat"), false);
     59    //[> set console shortcut <]
     60    //this->getIdentifier()->addConsoleCommand(createConsoleCommand(createFunctor(
     61      //&ChatInputHandler::activate, this), "startchat"), false);
    6062  }
    6163
     
    8890
    8991  /* activate, deactivate */
     92  void ChatInputHandler::activate_static()
     93  { ChatInputHandler::getInstance().activate(); }
     94 
    9095  void ChatInputHandler::activate()
    9196  {
  • code/branches/chat/src/orxonox/ChatInputHandler.h

    r6788 r6791  
    3939/* project includes */
    4040#include <OrxonoxPrereqs.h>
     41#include <core/BaseObject.h>
     42#include <core/PathConfig.h>
     43
    4144#include "core/input/InputBuffer.h"
    4245#include "core/input/InputManager.h"
    4346#include "core/input/InputState.h"
     47
    4448#include "../libraries/network/Host.h"
    45 #include <core/BaseObject.h>
    46 #include <PlayerManager.h>
    47 #include <infos/PlayerInfo.h>
    48 #include <network/ChatListener.h>
    49 #include <core/PathConfig.h>
    5049#include <util/Singleton.h>
    5150
     
    7877
    7978      /* start listening, stop listening */
     79      static void activate_static();
    8080      void activate();
    8181      void deactivate();
Note: See TracChangeset for help on using the changeset viewer.