diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-25 13:43:56 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-25 13:43:56 (GMT) |
| commit | a03e92830a429e89d2c516e9b63eb44ab49e8417 (patch) | |
| tree | 4b3243dcc3fac53f519556c6d6f2195f4f13fd03 /src/render/RenderView.cpp | |
| parent | 86659f2238f7e69322d0edd58191ae5ec332c948 (diff) | |
| download | powder-a03e92830a429e89d2c516e9b63eb44ab49e8417.zip powder-a03e92830a429e89d2c516e9b63eb44ab49e8417.tar.gz | |
Make only one airmode selectable at a time
Diffstat (limited to 'src/render/RenderView.cpp')
| -rw-r--r-- | src/render/RenderView.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/render/RenderView.cpp b/src/render/RenderView.cpp index 4f79d4c..ed8e51f 100644 --- a/src/render/RenderView.cpp +++ b/src/render/RenderView.cpp @@ -123,10 +123,10 @@ RenderView::RenderView(): tCheckbox->SetActionCallback(new DisplayModeAction(this, DISPLAY_AIRH)); AddComponent(tCheckbox); - tCheckbox = new ui::Checkbox(ui::Point(336, YRES+4), ui::Point(70, 16), "Air"); + /*tCheckbox = new ui::Checkbox(ui::Point(336, YRES+4), ui::Point(70, 16), "Air"); displayModes.push_back(tCheckbox); tCheckbox->SetActionCallback(new DisplayModeAction(this, DISPLAY_AIR)); - AddComponent(tCheckbox); + AddComponent(tCheckbox);*/ tCheckbox = new ui::Checkbox(ui::Point(336, YRES+4+18), ui::Point(70, 16), "Warp"); displayModes.push_back(tCheckbox); @@ -138,7 +138,7 @@ RenderView::RenderView(): tCheckbox->SetActionCallback(new DisplayModeAction(this, DISPLAY_PERS)); AddComponent(tCheckbox); - tCheckbox = new ui::Checkbox(ui::Point(411, YRES+4+18), ui::Point(70, 16), "Effect"); + tCheckbox = new ui::Checkbox(ui::Point(336, YRES+4), ui::Point(70, 16), "Effect"); displayModes.push_back(tCheckbox); tCheckbox->SetActionCallback(new DisplayModeAction(this, DISPLAY_EFFE)); AddComponent(tCheckbox); @@ -245,6 +245,7 @@ void RenderView::OnDraw() } g->draw_line(0, YRES, XRES-1, YRES, 255, 255, 255, XRES+BARSIZE); g->draw_line(180, YRES, 180, YRES+MENUSIZE, 200, 200, 200, XRES+BARSIZE); + g->draw_line(330, YRES, 330, YRES+MENUSIZE, 200, 200, 200, XRES+BARSIZE); g->draw_line(480, YRES, 480, YRES+MENUSIZE, 200, 200, 200, XRES+BARSIZE); g->draw_line(XRES-1, 0, XRES-1, YRES+MENUSIZE, 255, 255, 255, XRES+BARSIZE); } |
