[nostalgia/core/studio] Add PaletteEditorImGui::itemDisplayName()

This commit is contained in:
Gary Talent 2022-04-03 00:30:53 -05:00
parent 3fd25782c0
commit 83ad1623d3
2 changed files with 6 additions and 0 deletions

View File

@ -170,6 +170,10 @@ ox::Result<PaletteEditorImGui*> PaletteEditorImGui::make(Context *ctx, const ox:
} }
const ox::String &PaletteEditorImGui::itemName() const { const ox::String &PaletteEditorImGui::itemName() const {
return m_itemPath;
}
const ox::String &PaletteEditorImGui::itemDisplayName() const noexcept {
return m_itemName; return m_itemName;
} }

View File

@ -36,6 +36,8 @@ class PaletteEditorImGui: public studio::Editor {
*/ */
const ox::String &itemName() const override; const ox::String &itemName() const override;
const ox::String &itemDisplayName() const noexcept override;
void draw(core::Context*) noexcept override; void draw(core::Context*) noexcept override;
studio::UndoStack *undoStack() noexcept final; studio::UndoStack *undoStack() noexcept final;