Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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  {
Note: See TracChangeset for help on using the changeset viewer.