@@ -197,6 +197,24 @@ Editor::Editor() :
197
197
mode_button->set_help_text (_ (" Toggle between object and tile mode" ));
198
198
199
199
m_widgets.insert (m_widgets.begin () + 5 , std::move (mode_button));
200
+
201
+ auto select_mode_mouse_button = std::make_unique<ButtonWidget>(
202
+ " images/engine/editor/select-mode0.png" , Vector (192 , 0 ), [] {});
203
+ select_mode_mouse_button->set_help_text (_ (" Draw mode (The current tool applies to the tile under the mouse)" ));
204
+ auto select_mode_area_button = std::make_unique<ButtonWidget>(
205
+ " images/engine/editor/select-mode1.png" , Vector (224 , 0 ), [] {});
206
+ select_mode_area_button->set_help_text (_ (" Box draw mode (The current tool applies to an area / box drawn with the mouse)" ));
207
+ auto select_mode_fill_button = std::make_unique<ButtonWidget>(
208
+ " images/engine/editor/select-mode2.png" , Vector (256 , 0 ), [] {});
209
+ select_mode_fill_button->set_help_text (_ (" Fill mode (The current tool applies to the empty area in the enclosed space that was clicked)" ));
210
+ auto select_mode_same_button = std::make_unique<ButtonWidget>(
211
+ " images/engine/editor/select-mode3.png" , Vector (288 , 0 ), [] {});
212
+ select_mode_same_button->set_help_text (_ (" Replace mode (The current tool applies to all tiles that are the same tile as the one under the mouse)" ));
213
+
214
+ m_widgets.insert (m_widgets.begin () + 6 , std::move (select_mode_mouse_button));
215
+ m_widgets.insert (m_widgets.begin () + 7 , std::move (select_mode_area_button));
216
+ m_widgets.insert (m_widgets.begin () + 8 , std::move (select_mode_fill_button));
217
+ m_widgets.insert (m_widgets.begin () + 9 , std::move (select_mode_same_button));
200
218
}
201
219
202
220
Editor::~Editor ()
0 commit comments