This commit is contained in:
@@ -71,7 +71,6 @@ void PaletteEditorImGui::PageRenameDialog::draw() noexcept {
|
|||||||
PaletteEditorImGui::PaletteEditorImGui(studio::Context &sctx, ox::StringParam path):
|
PaletteEditorImGui::PaletteEditorImGui(studio::Context &sctx, ox::StringParam path):
|
||||||
Editor(sctx, std::move(path)),
|
Editor(sctx, std::move(path)),
|
||||||
m_sctx(sctx),
|
m_sctx(sctx),
|
||||||
m_tctx(sctx.tctx),
|
|
||||||
m_pal(m_sctx.project->loadObj<Palette>(itemPath()).unwrapThrow()) {
|
m_pal(m_sctx.project->loadObj<Palette>(itemPath()).unwrapThrow()) {
|
||||||
undoStack()->changeTriggered.connect(this, &PaletteEditorImGui::handleCommand);
|
undoStack()->changeTriggered.connect(this, &PaletteEditorImGui::handleCommand);
|
||||||
m_pageRenameDlg.inputSubmitted.connect(this, &PaletteEditorImGui::renamePage);
|
m_pageRenameDlg.inputSubmitted.connect(this, &PaletteEditorImGui::renamePage);
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ class PaletteEditorImGui: public studio::Editor {
|
|||||||
void draw() noexcept;
|
void draw() noexcept;
|
||||||
} m_pageRenameDlg;
|
} m_pageRenameDlg;
|
||||||
studio::Context &m_sctx;
|
studio::Context &m_sctx;
|
||||||
turbine::Context &m_tctx;
|
|
||||||
Palette m_pal;
|
Palette m_pal;
|
||||||
size_t m_selectedColorRow = 0;
|
size_t m_selectedColorRow = 0;
|
||||||
size_t m_page = 0;
|
size_t m_page = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user