| 31 | {} |
| 32 | |
| 33 | void MeshEditTool::edit_gui(Toolbar& t) { |
| 34 | using namespace GUIStuff; |
| 35 | using namespace ElementHelpers; |
| 36 | |
| 37 | auto& a = static_cast<MeshCanvasComponent&>(comp->obj->get_comp()); |
| 38 | auto& gui = drawP.world.main.g.gui; |
| 39 | auto commit_update_func = [&] { commitUpdate = true; }; |
| 40 | |
| 41 | gui.new_id("edit tool mesh", [&] { |
| 42 | text_label_centered(gui, "Edit Mesh"); |
| 43 | left_to_right_line_layout(gui, [&]() { |
| 44 | t.color_button_right("Mesh Color", &a.d.color, { .onChange = commit_update_func }); |
| 45 | text_label(gui, "Mesh Color"); |
| 46 | }); |
| 47 | }); |
| 48 | } |
| 49 | |
| 50 | void MeshEditTool::gui_phone_toolbox(PhoneDrawingProgramScreen& t) { |
| 51 | using namespace GUIStuff; |
no test coverage detected