Changeset 8701 in orxonox.OLD for branches/gui/src
- Timestamp:
- Jun 22, 2006, 11:06:48 AM (18 years ago)
- Location:
- branches/gui/src
- Files:
-
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/glgui_handler.cc
r8673 r8701 131 131 { 132 132 it = objects->begin(); 133 cycledOnce = true; 134 } 135 136 if (dynamic_cast<GLGuiWidget*>(*it)->selectable()) 137 { 138 dynamic_cast<GLGuiWidget*>(*it)->select(); 139 return; 140 } 141 } 142 143 } 144 else 145 { 146 PRINTF(0)("NO GUI-ELEMENTS EXISTING\n"); 147 } 148 } 149 150 void GLGuiHandler::selectPrevious() 151 { 152 // retrieve Objects. 153 const std::list<BaseObject*>* objects = ClassList::getList(CL_GLGUI_WIDGET); 154 155 if (objects) 156 { 157 std::list<BaseObject*>::const_iterator it ; 158 std::list<BaseObject*>::const_iterator currentIt = objects->begin(); 159 160 if (GLGuiWidget::selected() != NULL) 161 { 162 it = std::find(objects->begin(), objects->end(), GLGuiWidget::selected()); 163 if (it != objects->end()) 164 { 165 currentIt = it; 166 it--; 167 } 168 } 169 else 170 { 171 it = objects->end(); 172 } 173 174 bool cycledOnce = false; 175 176 for (; it != currentIt; --it) 177 { 178 if (it == objects->end() && !cycledOnce) 179 { 180 --it ; 133 181 cycledOnce = true; 134 182 } -
branches/gui/src/lib/gui/gl/glgui_handler.h
r8671 r8701 35 35 36 36 void selectNext(); 37 void selectPrevious(); 37 38 38 39 void activate(); -
branches/gui/src/story_entities/Makefile.am
r8691 r8701 13 13 story_entities/multi_player_world_data.cc \ 14 14 story_entities/movie_loader.cc \ 15 story_entities/game_menu.cc \16 15 story_entities/simple_game_menu.cc \ 17 16 \ 17 story_entities/menu/game_menu.cc \ 18 18 story_entities/menu/glgui_imagebutton.cc 19 19 … … 30 30 story_entities/multi_player_world_data.h \ 31 31 story_entities/movie_loader.h \ 32 story_entities/game_menu.h \33 32 story_entities/simple_game_menu.h \ 34 33 \ 34 story_entities/menu/game_menu.h \ 35 35 story_entities/menu/glgui_imagebutton.h 36 36
Note: See TracChangeset
for help on using the changeset viewer.