Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6306 in orxonox.OLD for trunk/src/world_entities/space_ships


Ignore:
Timestamp:
Dec 26, 2005, 2:27:13 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: cool bars for the rocket-louncher

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/space_ship.cc

    r6300 r6306  
    3939
    4040
    41 #include "lib/gui/gl_gui/glgui_bar.h"
    42 #include "lib/gui/gl_gui/glgui_pushbutton.h"
     41// #include "lib/gui/gl_gui/glgui_bar.h"
     42// #include "lib/gui/gl_gui/glgui_pushbutton.h"
    4343
    4444
     
    121121  PRINTF(4)("SPACESHIP INIT\n");
    122122
    123   //EventHandler::getInstance()->grabEvents(true);
     123  EventHandler::getInstance()->grabEvents(true);
    124124
    125125  bUp = bDown = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = false;
     
    135135  this->mouseDir = this->getAbsDir();
    136136
    137   GLGuiButton* button = new GLGuiPushButton();
    138    button->show();
    139    button->setLabel("orxonox");
    140    button->setBindNode(this);
    141     GLGuiBar* bar = new GLGuiBar();
    142     bar->show();
    143     bar->setValue(7.0);
    144     bar->setMaximum(10);
    145     bar->setSize2D( 20, 100);
    146     bar->setAbsCoor2D( 10, 200);
     137//   GLGuiButton* button = new GLGuiPushButton();
     138//    button->show();
     139//    button->setLabel("orxonox");
     140//    button->setBindNode(this);
     141//     GLGuiBar* bar = new GLGuiBar();
     142//     bar->show();
     143//     bar->setValue(7.0);
     144//     bar->setMaximum(10);
     145//     bar->setSize2D( 20, 100);
     146//     bar->setAbsCoor2D( 10, 200);
    147147
    148148  //add events to the eventlist
     
    490490  Weapon* turret = NULL;
    491491
    492   if ((float)rand()/RAND_MAX < .1)
     492  if ((float)rand()/RAND_MAX < .9)
    493493  {
    494494    //if (this->getWeaponManager()->hasFreeSlot(2, WTYPE_TURRET))
Note: See TracChangeset for help on using the changeset viewer.