More GUI code changes (broken build)

This commit is contained in:
Yousef Khadadeh 2026-03-30 12:32:41 +03:00
parent 644bb85d99
commit 3566b7e563
28 changed files with 178 additions and 120 deletions

View file

@ -5,6 +5,8 @@
#include "DrawingProgramToolBase.hpp"
#include <Helpers/Logger.hpp>
#include "../../GUIStuff/ElementHelpers/TextLabelHelpers.hpp"
PanCanvasTool::PanCanvasTool(DrawingProgram& initDrawP):
DrawingProgramToolBase(initDrawP)
{
@ -17,12 +19,12 @@ DrawingProgramToolType PanCanvasTool::get_type() {
void PanCanvasTool::gui_toolbox() {
Toolbar& t = drawP.world.main.toolbar;
t.gui.push_id("Pan canvas tool");
t.gui.text_label_centered("Pan tool");
GUIStuff::ElementHelpers::text_label_centered(t.gui, "Pan tool");
t.gui.pop_id();
}
bool PanCanvasTool::right_click_popup_gui(Vector2f popupPos) {
return drawP.selection_action_menu(popupPos);
void PanCanvasTool::right_click_popup_gui(Vector2f popupPos) {
drawP.selection_action_menu(popupPos);
}
void PanCanvasTool::erase_component(CanvasComponentContainer::ObjInfo* erasedComp) {