Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1139


Ignore:
Timestamp:
Apr 22, 2008, 9:57:36 PM (17 years ago)
Author:
FelixSchulthess
Message:

adjustments

Location:
code/branches/console/src/orxonox/console
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/orxonox/console/InGameConsole.cc

    r1137 r1139  
    3636    const float REL_WIDTH = 0.8;
    3737    const float REL_HEIGHT = 0.4;
     38    const float BLINK = 0.25;
    3839
    3940    InGameConsole::InGameConsole(InputBuffer* ib){
     
    168169        }
    169170
    170         cursor = (cursor+1)%20;
    171         if(cursor%10==0) print(this->ib_->get());
     171        cursor += dt;
     172        if(cursor >= 2*BLINK) cursor = 0;
     173        print(this->ib_->get());
    172174
    173175// this creates a flickering effect
     
    218220    */
    219221    void InGameConsole::print(std::string s){
    220         if(cursor>=10) consoleOverlayTextAreas[0]->setCaption(">" + s);
     222        if(cursor>BLINK) consoleOverlayTextAreas[0]->setCaption(">" + s);
    221223        else consoleOverlayTextAreas[0]->setCaption(">" + s + "_");
    222224    }
  • code/branches/console/src/orxonox/console/InGameConsole.h

    r1137 r1139  
    7474            int windowH;
    7575            int scroll;
    76             int cursor;
     76            float cursor;
    7777            bool active;
    7878            InputBuffer* ib_;
Note: See TracChangeset for help on using the changeset viewer.