Changeset 9019 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jul 2, 2006, 4:41:32 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/elements/glgui_radar.cc
r9014 r9019 42 42 this->setBackgroundTexture("gui_radar.png"); 43 43 44 this->_updateInterval = 1.0f;44 this->_updateInterval = .01f; 45 45 this->_timePassed = 0.0f; 46 46 this->_range = 100.0f; … … 94 94 _timePassed+=dt; 95 95 96 //if (_timePassed > _updateInterval)96 if (_timePassed > _updateInterval) 97 97 { 98 98 _timePassed = 0 ; //-=_updateInterval; -
trunk/src/world_entities/environments/mapped_water.cc
r9006 r9019 351 351 OrxGui::GLGuiBox* waterColorBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 352 352 { 353 OrxGui::GLGui InputLine* waterColorText = new OrxGui::GLGuiInputLine();353 OrxGui::GLGuiText* waterColorText = new OrxGui::GLGuiText(); 354 354 waterColorText->setText("WaterColor"); 355 355 waterColorBox->pack(waterColorText); … … 380 380 OrxGui::GLGuiBox* waterUVBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 381 381 { 382 OrxGui::GLGui InputLine* waterUVText = new OrxGui::GLGuiInputLine();382 OrxGui::GLGuiText* waterUVText = new OrxGui::GLGuiText(); 383 383 waterUVText->setText("WaterUV"); 384 384 waterUVBox->pack(waterUVText); … … 395 395 OrxGui::GLGuiBox* waterFlowBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 396 396 { 397 OrxGui::GLGui InputLine* waterFlowText = new OrxGui::GLGuiInputLine();397 OrxGui::GLGuiText* waterFlowText = new OrxGui::GLGuiText(); 398 398 waterFlowText->setText("WaterFlow"); 399 399 waterFlowBox->pack(waterFlowText); … … 410 410 OrxGui::GLGuiBox* shineSizeBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 411 411 { 412 OrxGui::GLGui InputLine* shineSizeText = new OrxGui::GLGuiInputLine();412 OrxGui::GLGuiText* shineSizeText = new OrxGui::GLGuiText(); 413 413 shineSizeText->setText("ShineSize"); 414 414 shineSizeBox->pack(shineSizeText); … … 425 425 OrxGui::GLGuiBox* shineStrengthBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 426 426 { 427 OrxGui::GLGui InputLine* shineStrengthText = new OrxGui::GLGuiInputLine();427 OrxGui::GLGuiText* shineStrengthText = new OrxGui::GLGuiText(); 428 428 shineStrengthText->setText("ShineStrength"); 429 429 shineStrengthBox->pack(shineStrengthText); … … 440 440 OrxGui::GLGuiBox* reflStrengthBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 441 441 { 442 OrxGui::GLGui InputLine* reflStrengthText = new OrxGui::GLGuiInputLine();442 OrxGui::GLGuiText* reflStrengthText = new OrxGui::GLGuiText(); 443 443 reflStrengthText->setText("ReflStrength"); 444 444 reflStrengthBox->pack(reflStrengthText); … … 455 455 OrxGui::GLGuiBox* refractionBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 456 456 { 457 OrxGui::GLGui InputLine* refractionText = new OrxGui::GLGuiInputLine();457 OrxGui::GLGuiText* refractionText = new OrxGui::GLGuiText(); 458 458 refractionText->setText("Refraction"); 459 459 refractionBox->pack(refractionText); … … 470 470 OrxGui::GLGuiBox* lightPosBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 471 471 { 472 OrxGui::GLGui InputLine* lightPosText = new OrxGui::GLGuiInputLine();472 OrxGui::GLGuiText* lightPosText = new OrxGui::GLGuiText(); 473 473 lightPosText->setText("LightPos"); 474 474 lightPosBox->pack(lightPosText); … … 499 499 OrxGui::GLGuiBox* waterHeightBox = new OrxGui::GLGuiBox(OrxGui::Horizontal); 500 500 { 501 OrxGui::GLGui InputLine* waterHeightText = new OrxGui::GLGuiInputLine();501 OrxGui::GLGuiText* waterHeightText = new OrxGui::GLGuiText(); 502 502 waterHeightText->setText("WaterHeight"); 503 503 waterHeightBox->pack(waterHeightText); -
trunk/src/world_entities/player.cc
r8362 r9019 38 38 39 39 this->playable = NULL; 40 this-> hud.setVisibility(true);40 this->_hud.setVisibility(true); 41 41 42 42 this->subscribeEvent(ES_GAME, KeyMapper::PEV_CHANGE_SHIP); … … 62 62 { 63 63 PRINTF(4)("Player gets ejected from Playable\n"); 64 this-> hud.setEnergyWidget(NULL);65 this-> hud.setWeaponManager(NULL);64 this->_hud.setEnergyWidget(NULL); 65 this->_hud.setWeaponManager(NULL); 66 66 67 67 Playable* ejectedPlayable = this->playable; … … 75 75 PRINTF(4)("Enter new Playable\n"); 76 76 this->playable = playable; 77 this-> hud.setEnergyWidget(this->playable->getHealthWidget());78 this-> hud.setWeaponManager(&this->playable->getWeaponManager());77 this->_hud.setEnergyWidget(this->playable->getHealthWidget()); 78 this->_hud.setWeaponManager(&this->playable->getWeaponManager()); 79 79 80 80 this->playable->setPlayer(this); … … 96 96 void Player::weaponConfigChanged() 97 97 { 98 this-> hud.updateWeaponManager();98 this->_hud.updateWeaponManager(); 99 99 } 100 100 -
trunk/src/world_entities/player.h
r9002 r9019 32 32 inline Playable* getPlayable() const { return this->playable; }; 33 33 34 //inline Hud& hud() { return this->_hud; };35 //inline const Hud& hud() const { return this->_hud; };34 inline Hud& hud() { return this->_hud; }; 35 inline const Hud& hud() const { return this->_hud; }; 36 36 37 37 … … 43 43 private: 44 44 Playable* playable; //!< The one we controll or NULL if none 45 Hud hud; //!< The HUD to be displayed for this Player.45 Hud _hud; //!< The HUD to be displayed for this Player. 46 46 }; 47 47
Note: See TracChangeset
for help on using the changeset viewer.