equal
deleted
inserted
replaced
548 HandlePlacePushButton(w, ETTW_PLACE_ROCKS, SPR_CURSOR_ROCKY_AREA, VHM_RECT, PlaceProc_RockyArea); |
548 HandlePlacePushButton(w, ETTW_PLACE_ROCKS, SPR_CURSOR_ROCKY_AREA, VHM_RECT, PlaceProc_RockyArea); |
549 } |
549 } |
550 |
550 |
551 static void EditorTerraformClick_DesertLightHouse(Window *w) |
551 static void EditorTerraformClick_DesertLightHouse(Window *w) |
552 { |
552 { |
553 HandlePlacePushButton(w, ETTW_PLACE_DESERT_LIGHTHOUSE, SPR_CURSOR_LIGHTHOUSE, VHM_RECT, (_opt.landscape == LT_TROPIC) ? PlaceProc_DesertArea : PlaceProc_LightHouse); |
553 HandlePlacePushButton(w, ETTW_PLACE_DESERT_LIGHTHOUSE, SPR_CURSOR_LIGHTHOUSE, VHM_RECT, (_settings.game_creation.landscape == LT_TROPIC) ? PlaceProc_DesertArea : PlaceProc_LightHouse); |
554 } |
554 } |
555 |
555 |
556 static void EditorTerraformClick_Transmitter(Window *w) |
556 static void EditorTerraformClick_Transmitter(Window *w) |
557 { |
557 { |
558 HandlePlacePushButton(w, ETTW_PLACE_TRANSMITTER, SPR_CURSOR_TRANSMITTER, VHM_RECT, PlaceProc_Transmitter); |
558 HandlePlacePushButton(w, ETTW_PLACE_TRANSMITTER, SPR_CURSOR_TRANSMITTER, VHM_RECT, PlaceProc_Transmitter); |
613 } |
613 } |
614 |
614 |
615 struct ScenarioEditorLandscapeGenerationWindow : Window { |
615 struct ScenarioEditorLandscapeGenerationWindow : Window { |
616 ScenarioEditorLandscapeGenerationWindow(const WindowDesc *desc, WindowNumber window_number) : Window(desc, window_number) |
616 ScenarioEditorLandscapeGenerationWindow(const WindowDesc *desc, WindowNumber window_number) : Window(desc, window_number) |
617 { |
617 { |
618 this->widget[ETTW_PLACE_DESERT_LIGHTHOUSE].tooltips = (_opt.landscape == LT_TROPIC) ? STR_028F_DEFINE_DESERT_AREA : STR_028D_PLACE_LIGHTHOUSE; |
618 this->widget[ETTW_PLACE_DESERT_LIGHTHOUSE].tooltips = (_settings.game_creation.landscape == LT_TROPIC) ? STR_028F_DEFINE_DESERT_AREA : STR_028D_PLACE_LIGHTHOUSE; |
619 this->FindWindowPlacementAndResize(desc); |
619 this->FindWindowPlacementAndResize(desc); |
620 } |
620 } |
621 |
621 |
622 virtual void OnPaint() { |
622 virtual void OnPaint() { |
623 this->DrawWidgets(); |
623 this->DrawWidgets(); |