[nostalgia/studio] Add export option to tilesheet editor
This commit is contained in:
@@ -73,16 +73,19 @@ class TileSheetEditorModel: public ox::SignalHandler {
|
||||
|
||||
void setActiveSubsheet(const TileSheet::SubSheetIdx&) noexcept;
|
||||
|
||||
[[nodiscard]]
|
||||
constexpr const TileSheet::SubSheet *activeSubSheet() const noexcept {
|
||||
auto &activeSubSheet = m_img.getSubSheet(m_activeSubsSheetIdx);
|
||||
return &activeSubSheet;
|
||||
}
|
||||
|
||||
[[nodiscard]]
|
||||
constexpr TileSheet::SubSheet *activeSubSheet() noexcept {
|
||||
auto &activeSubSheet = m_img.getSubSheet(m_activeSubsSheetIdx);
|
||||
return &activeSubSheet;
|
||||
}
|
||||
|
||||
[[nodiscard]]
|
||||
constexpr const TileSheet::SubSheetIdx &activeSubSheetIdx() const noexcept {
|
||||
return m_activeSubsSheetIdx;
|
||||
}
|
||||
@@ -106,6 +109,7 @@ class TileSheetEditorModel: public ox::SignalHandler {
|
||||
|
||||
ox::Error saveFile() noexcept;
|
||||
|
||||
[[nodiscard]]
|
||||
constexpr studio::UndoStack *undoStack() noexcept;
|
||||
|
||||
bool pixelSelected(std::size_t idx) const noexcept;
|
||||
|
||||
Reference in New Issue
Block a user