mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-30 16:33:01 +00:00
i'll finish this in a bit
This commit is contained in:
parent
8428f7da32
commit
8d587f72f2
1 changed files with 11 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "imgui_impl_sdl.h"
|
||||
#include "imgui_impl_sdlrenderer.h"
|
||||
#include <SDL.h>
|
||||
#include <deque>
|
||||
#include <map>
|
||||
|
||||
enum FurnaceGUIColors {
|
||||
|
@ -77,7 +78,13 @@ struct SelectionPoint {
|
|||
};
|
||||
|
||||
enum ActionType {
|
||||
GUI_ACTION_PATTERN
|
||||
GUI_ACTION_CHANGE_SYSTEM,
|
||||
GUI_ACTION_PATTERN_EDIT,
|
||||
GUI_ACTION_PATTERN_DELETE,
|
||||
GUI_ACTION_PATTERN_PULL,
|
||||
GUI_ACTION_PATTERN_PUSH,
|
||||
GUI_ACTION_PATTERN_CUT,
|
||||
GUI_ACTION_PATTERN_PASTE
|
||||
};
|
||||
|
||||
struct UndoData {
|
||||
|
@ -155,6 +162,9 @@ class FurnaceGUI {
|
|||
|
||||
ImVec2 patWindowPos, patWindowSize;
|
||||
|
||||
std::deque<UndoStep> undoHist;
|
||||
std::deque<UndoStep> redoHist;
|
||||
|
||||
void updateWindowTitle();
|
||||
void prepareLayout();
|
||||
|
||||
|
|
Loading…
Reference in a new issue