Changeset 9021 in orxonox.OLD for trunk/src/world_entities/environments
- Timestamp:
- Jul 2, 2006, 10:25:41 PM (18 years ago)
- Location:
- trunk/src/world_entities/environments
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/environments/mapped_water.cc
r9019 r9021 27 27 CREATE_FACTORY(MappedWater, CL_MAPPED_WATER); 28 28 29 SHELL_COMMAND(gui, MappedWater, openGui);29 SHELL_COMMAND(gui, MappedWater, toggleGui); 30 30 SHELL_COMMAND(output, MappedWater, saveParams); 31 31 … … 343 343 * @brief starts the slider gui that lets you edit all water parameters 344 344 */ 345 void MappedWater:: openGui()345 void MappedWater::toggleGui() 346 346 { 347 347 if (this->box == NULL) … … 518 518 OrxGui::GLGuiHandler::getInstance()->activateCursor(); 519 519 } 520 } 521 522 /** 523 * @brief closes the water gui 524 */ 525 void MappedWater::closeGui() 526 { 527 delete this->box; 528 this->box = NULL; 520 else 521 { 522 OrxGui::GLGuiHandler::getInstance()->deactivate(); 523 OrxGui::GLGuiHandler::getInstance()->deactivateCursor(); 524 delete this->box; 525 this->box = NULL; 526 } 529 527 } 530 528 -
trunk/src/world_entities/environments/mapped_water.h
r9006 r9021 52 52 53 53 // slider gui to edit water params during gameplay 54 void openGui(); 55 void closeGui(); 54 void toggleGui(); 56 55 57 56 // functions to set parameters for the water, usually they're called through loadparam
Note: See TracChangeset
for help on using the changeset viewer.