Right click popups working
This commit is contained in:
parent
d89aabff81
commit
2eb2672329
29 changed files with 198 additions and 177 deletions
|
|
@ -26,6 +26,7 @@ class DrawingProgram {
|
|||
DrawingProgram(World& initWorld);
|
||||
void server_init_no_file();
|
||||
void toolbar_gui();
|
||||
void right_click_popup_gui();
|
||||
void tool_options_gui();
|
||||
void right_click_popup_gui(Vector2f popupPos);
|
||||
void update();
|
||||
|
|
@ -69,6 +70,7 @@ class DrawingProgram {
|
|||
void input_pen_touch_callback(const InputManager::PenTouchCallbackArgs& touch);
|
||||
void input_pen_motion_callback(const InputManager::PenMotionCallbackArgs& motion);
|
||||
void input_pen_axis_callback(const InputManager::PenAxisCallbackArgs& axis);
|
||||
bool rightClickPopupHoverOnClick = false;
|
||||
private:
|
||||
void process_transform_message(const std::vector<std::pair<NetworkingObjects::NetObjID, CoordSpaceHelper>>& transforms);
|
||||
|
||||
|
|
@ -125,6 +127,11 @@ class DrawingProgram {
|
|||
|
||||
std::unique_ptr<DrawingProgramToolBase> drawTool;
|
||||
|
||||
std::optional<Vector2f> rightClickPopupLocation;
|
||||
|
||||
void set_right_click_popup_location(const Vector2f& newLoc);
|
||||
void clear_right_click_popup();
|
||||
|
||||
uint32_t nextID = 0;
|
||||
|
||||
friend class EyeDropperTool;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue