Compare commits
1 Commits
28088d1ed1
...
1622e6a89b
| Author | SHA1 | Date | |
|---|---|---|---|
| 1622e6a89b |
@@ -5,17 +5,18 @@
|
|||||||
* Fix file deletion to close file even if not active
|
* Fix file deletion to close file even if not active
|
||||||
* Fix file copy to work when creating a copy with the name of a previously
|
* Fix file copy to work when creating a copy with the name of a previously
|
||||||
deleted file
|
deleted file
|
||||||
|
* Fix copy/cut/paste enablement when there is no selection
|
||||||
* Make file picker popup accept on double click of a file
|
* Make file picker popup accept on double click of a file
|
||||||
* TileSheetEditor: Fix copy/cut/paste enablement when there is no selection
|
|
||||||
* TileSheetEditor: Fix manual redo of draw actions, fix drawing to pixel 0, 0
|
|
||||||
as first action
|
|
||||||
* TileSheetEditor: Fix draw command to work on same pixel after switching
|
|
||||||
subsheets
|
|
||||||
* PaletteEditor: Add RGB key shortcuts for focusing color channels
|
* PaletteEditor: Add RGB key shortcuts for focusing color channels
|
||||||
* PaletteEditor: Add color preview to color editor
|
* PaletteEditor: Add color preview to color editor
|
||||||
* PaletteEditor: Make RGB key shortcuts work when color channel inputs are
|
* PaletteEditor: Make RGB key shortcuts work when color channel inputs are
|
||||||
focused
|
focused
|
||||||
|
|
||||||
|
# d2025.05.2
|
||||||
|
|
||||||
|
* TileSheetEditor: Fix manual redo of draw actions, fix drawing to pixel 0, 0 as first action (cce5f52f96511694afd98f0b9b6b1f19c06ecd20)
|
||||||
|
* TileSheetEditor: Fix draw command to work on same pixel after switching subsheets (514cb978351ee4b0a5335c22a506a6d9f608f0a7)
|
||||||
|
|
||||||
# d2025.05.1
|
# d2025.05.1
|
||||||
|
|
||||||
* TileSheetEditor: Fix overrun errors when switching subsheets, clear selection
|
* TileSheetEditor: Fix overrun errors when switching subsheets, clear selection
|
||||||
|
|||||||
@@ -80,9 +80,9 @@ void NewMenu::addItemMaker(ox::UPtr<ItemMaker> &&im) noexcept {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void NewMenu::installItemTemplate(ox::UPtr<ItemTemplate> &&tmplt) noexcept {
|
void NewMenu::installItemTemplate(ox::UPtr<ItemTemplate> &tmplt) noexcept {
|
||||||
for (auto const&im : m_types) {
|
for (auto const&im : m_types) {
|
||||||
if (im->installTemplate(std::move(tmplt))) {
|
if (im->installTemplate(tmplt)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ class NewMenu final: public Popup {
|
|||||||
|
|
||||||
void addItemMaker(ox::UPtr<ItemMaker> &&im) noexcept;
|
void addItemMaker(ox::UPtr<ItemMaker> &&im) noexcept;
|
||||||
|
|
||||||
void installItemTemplate(ox::UPtr<ItemTemplate> &&tmplt) noexcept;
|
void installItemTemplate(ox::UPtr<ItemTemplate> &tmplt) noexcept;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void drawNewItemType(Context const&sctx) noexcept;
|
void drawNewItemType(Context const&sctx) noexcept;
|
||||||
|
|||||||
@@ -438,7 +438,7 @@ void StudioUI::loadModule(Module const &mod) noexcept {
|
|||||||
}
|
}
|
||||||
auto tmplts = mod.itemTemplates(m_sctx);
|
auto tmplts = mod.itemTemplates(m_sctx);
|
||||||
for (auto &t : tmplts) {
|
for (auto &t : tmplts) {
|
||||||
m_newMenu.installItemTemplate(std::move(t));
|
m_newMenu.installItemTemplate(t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ class ItemMaker {
|
|||||||
return m_typeDisplayName;
|
return m_typeDisplayName;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool installTemplate(ox::UPtr<ItemTemplate> &&tmpl) {
|
bool installTemplate(ox::UPtr<ItemTemplate> &tmpl) {
|
||||||
if (typeName() == tmpl->typeName() &&
|
if (typeName() == tmpl->typeName() &&
|
||||||
typeVersion() <= tmpl->typeVersion()) {
|
typeVersion() <= tmpl->typeVersion()) {
|
||||||
m_templates.emplace_back(std::move(tmpl));
|
m_templates.emplace_back(std::move(tmpl));
|
||||||
@@ -120,6 +120,10 @@ class ItemMaker {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool installTemplate(ox::UPtr<ItemTemplate> &&tmpl) {
|
||||||
|
return installTemplate(tmpl);
|
||||||
|
}
|
||||||
|
|
||||||
constexpr ox::Vector<ox::UPtr<ItemTemplate>> const&itemTemplates() const noexcept {
|
constexpr ox::Vector<ox::UPtr<ItemTemplate>> const&itemTemplates() const noexcept {
|
||||||
return m_templates;
|
return m_templates;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user