- Timestamp:
- Jan 30, 2006, 3:51:42 AM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/simple_game_menu.cc
r6853 r6854 109 109 EventHandler::getInstance()->subscribe(this, ES_MENU, SDLK_RETURN); 110 110 EventHandler::getInstance()->subscribe(this, ES_MENU, SDLK_SPACE); 111 EventHandler::getInstance()->subscribe(this, ES_MENU, SDLK_ESCAPE); 111 112 112 113 this->dataTank->localCamera->setRelCoor(this->cameraVector); … … 196 197 PRINTF(0)("setting texture to: |%s|\n", se->getMenuItemImage()); 197 198 ie->setTexture(se->getMenuItemImage()); 198 ie->setRelCoor(0.0f, - (this->menuLayer[1]->menuList.size() * 10.0f), 0.0f);199 ie->setRelCoor(0.0f,20.0f - (this->menuLayer[1]->menuList.size() * 10.0f), 0.0f); 199 200 ie->setVisibility(false); 200 201 this->menuLayer[1]->menuList.push_back(ie); … … 280 281 if( this->menuSelected == this->menuStartGame) 281 282 { 282 //this->stop();283 283 // switch to first submenu 284 284 if( this->menuLayer[1]->menuList.size() == 0) … … 291 291 } 292 292 } 293 if( event.type == SDLK_ESCAPE && event.bPressed == true) 294 { 295 this->setNextStoryID(WORLD_ID_GAMEEND); 296 this->stop(); 297 } 293 298 } /* ----------------- LAYER 2 ---------------*/ 294 299 else if( this->layerIndex == 1) … … 298 303 this->setNextStoryID( this->menuLayer[1]->storyList[this->menuSelectedIndex]->getStoryID()); 299 304 this->stop(); 305 } 306 if( event.type == SDLK_ESCAPE && event.bPressed == true) 307 { 308 this->switchMenuLayer(this->layerIndex, 0); 300 309 } 301 310 } … … 352 361 353 362 this->layerIndex = layer2; 363 this->menuSelected = this->menuLayer[layer2]->menuList[0]; 364 this->menuSelector->setAbsCoor(this->menuSelected->getAbsCoor()); 354 365 } 355 366 -
trunk/src/util/loading/game_loader.cc
r6424 r6854 73 73 this->eventHandler->subscribe(this, ES_GAME, KeyMapper::PEV_PAUSE); 74 74 this->eventHandler->subscribe(this, ES_ALL, EV_MAIN_QUIT); //< External Quit Event 75 this->eventHandler->subscribe(this, ES_ ALL, KeyMapper::PEV_QUIT);75 this->eventHandler->subscribe(this, ES_GAME, KeyMapper::PEV_QUIT); 76 76 this->eventHandler->subscribe(this, ES_GAME, KeyMapper::PEV_NEXT_WORLD); 77 77 this->eventHandler->subscribe(this, ES_GAME, KeyMapper::PEV_PREVIOUS_WORLD);
Note: See TracChangeset
for help on using the changeset viewer.