[nostalgia/core/studio] East const some function args
All checks were successful
Build / build (push) Successful in 2m5s
All checks were successful
Build / build (push) Successful in 2m5s
This commit is contained in:
parent
d5b232f5d5
commit
a0c8146396
@ -147,7 +147,7 @@ void TileSheetEditorModel::deleteTiles(TileSheet::SubSheetIdx const&idx, std::si
|
|||||||
pushCommand(ox::make<DeleteTilesCommand>(m_img, idx, tileIdx, tileCnt));
|
pushCommand(ox::make<DeleteTilesCommand>(m_img, idx, tileIdx, tileCnt));
|
||||||
}
|
}
|
||||||
|
|
||||||
ox::Error TileSheetEditorModel::updateSubsheet(TileSheet::SubSheetIdx const&idx, const ox::StringView &name, int cols, int rows) noexcept {
|
ox::Error TileSheetEditorModel::updateSubsheet(TileSheet::SubSheetIdx const&idx, ox::StringView const&name, int cols, int rows) noexcept {
|
||||||
pushCommand(ox::make<UpdateSubSheetCommand>(m_img, idx, ox::String(name), cols, rows));
|
pushCommand(ox::make<UpdateSubSheetCommand>(m_img, idx, ox::String(name), cols, rows));
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
@ -239,7 +239,7 @@ void TileSheetEditorModel::ackUpdate() noexcept {
|
|||||||
|
|
||||||
ox::Error TileSheetEditorModel::saveFile() noexcept {
|
ox::Error TileSheetEditorModel::saveFile() noexcept {
|
||||||
const auto sctx = applicationData<studio::StudioContext>(m_ctx);
|
const auto sctx = applicationData<studio::StudioContext>(m_ctx);
|
||||||
return sctx->project->writeObj(m_path, m_img);
|
return sctx->project->writeObj(m_path, m_img, ox::ClawFormat::Metal);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TileSheetEditorModel::pixelSelected(std::size_t idx) const noexcept {
|
bool TileSheetEditorModel::pixelSelected(std::size_t idx) const noexcept {
|
||||||
|
@ -61,21 +61,21 @@ class TileSheetEditorModel: public ox::SignalHandler {
|
|||||||
|
|
||||||
ox::Error setPalette(ox::StringView path) noexcept;
|
ox::Error setPalette(ox::StringView path) noexcept;
|
||||||
|
|
||||||
void drawCommand(const ox::Point &pt, std::size_t palIdx) noexcept;
|
void drawCommand(ox::Point const&pt, std::size_t palIdx) noexcept;
|
||||||
|
|
||||||
void endDrawCommand() noexcept;
|
void endDrawCommand() noexcept;
|
||||||
|
|
||||||
void addSubsheet(const TileSheet::SubSheetIdx &parentIdx) noexcept;
|
void addSubsheet(TileSheet::SubSheetIdx const&parentIdx) noexcept;
|
||||||
|
|
||||||
void rmSubsheet(const TileSheet::SubSheetIdx &idx) noexcept;
|
void rmSubsheet(TileSheet::SubSheetIdx const&idx) noexcept;
|
||||||
|
|
||||||
void insertTiles(const TileSheet::SubSheetIdx &idx, std::size_t tileIdx, std::size_t tileCnt) noexcept;
|
void insertTiles(TileSheet::SubSheetIdx const&idx, std::size_t tileIdx, std::size_t tileCnt) noexcept;
|
||||||
|
|
||||||
void deleteTiles(const TileSheet::SubSheetIdx &idx, std::size_t tileIdx, std::size_t tileCnt) noexcept;
|
void deleteTiles(TileSheet::SubSheetIdx const&idx, std::size_t tileIdx, std::size_t tileCnt) noexcept;
|
||||||
|
|
||||||
ox::Error updateSubsheet(const TileSheet::SubSheetIdx &idx, const ox::StringView &name, int cols, int rows) noexcept;
|
ox::Error updateSubsheet(TileSheet::SubSheetIdx const&idx, ox::StringView const&name, int cols, int rows) noexcept;
|
||||||
|
|
||||||
void setActiveSubsheet(const TileSheet::SubSheetIdx&) noexcept;
|
void setActiveSubsheet(TileSheet::SubSheetIdx const&) noexcept;
|
||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
const TileSheet::SubSheet *activeSubSheet() const noexcept {
|
const TileSheet::SubSheet *activeSubSheet() const noexcept {
|
||||||
|
Loading…
Reference in New Issue
Block a user