Changeset 111 for abuse/trunk/src/automap.cpp
- Timestamp:
- Mar 16, 2008, 2:17:43 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/automap.cpp
r106 r111 151 151 void automap::toggle_window() 152 152 { 153 if (automap_window) 154 { 155 wm->close_window(automap_window); 156 automap_window=NULL; 157 } 158 else 159 { 160 old_dx=-1000; // make sure the map gets drawn the first time 161 old_dy=-1000; 162 163 automap_window=wm->new_window(0,0,w*AUTOTILE_WIDTH,h*AUTOTILE_HEIGHT); 164 automap_window->screen->bar(17,1,17+8*6+3,6,wm->medium_color()); 165 wm->font()->put_string(automap_window->screen,20,2,"AUTOMAP"); 166 draw(); 167 } 153 if (automap_window) 154 { 155 wm->close_window(automap_window); 156 automap_window = NULL; 157 } 158 else 159 { 160 old_dx = -1000; // make sure the map gets drawn the first time 161 old_dy = -1000; 162 163 automap_window = wm->new_window(0, 0, w * AUTOTILE_WIDTH, 164 h * AUTOTILE_HEIGHT, NULL, "Map"); 165 automap_window->screen->bar(17, 1, 17 + 8 * 6 + 3, 6, 166 wm->medium_color()); 167 wm->font()->put_string(automap_window->screen, 20, 2, "Automap", 168 wm->dark_color()); 169 draw(); 170 } 168 171 } 169 172
Note: See TracChangeset
for help on using the changeset viewer.