mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-25 07:11:51 -05:00

* Converted all GuiWindows to the new separate Begin/End format in current LUS except InputViewer, CheckTracker, ItemTracker and Modals. * Setup Check, Entrance, Item trackers and Input Viewer to override `Draw()` to bypass the ImGui Begin and End, as they're not intended to go in the modern menu. * Cleanup.
16 lines
566 B
C++
16 lines
566 B
C++
#pragma once
|
|
|
|
#include <libultraship/libultraship.h>
|
|
#include "window/gui/GuiMenuBar.h"
|
|
#include "window/gui/GuiElement.h"
|
|
|
|
class SohModalWindow : public Ship::GuiWindow {
|
|
public:
|
|
using GuiWindow::GuiWindow;
|
|
void Draw() override;
|
|
|
|
void InitElement() override {};
|
|
void DrawElement() override;
|
|
void UpdateElement() override {};
|
|
void RegisterPopup(std::string title, std::string message, std::string button1 = "OK", std::string button2 = "", std::function<void()> button1callback = nullptr, std::function<void()> button2callback = nullptr);
|
|
}; |