Skip to content

Commit

Permalink
add new icon (by Nerhy)
Browse files Browse the repository at this point in the history
  • Loading branch information
anatom3000 committed Oct 22, 2024
1 parent 785958e commit f226cf7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@
"editor",
"utility",
"offline"
]
],
"resources": {
"spritesheets": {
"FuncToolButton": ["resources/FuncToolButton.png"]
}
}
}
Binary file added resources/FuncToolButton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ class FunctionToolPopup : public geode::Popup<> {
}
};

class $modify(MyEditorUI, EditorUI) {
class $modify(FuncToolEditorUI, EditorUI) {
void on_function_tool(CCObject*) {
if (this->getSelectedObjects()->count()) {
FunctionToolPopup::create()->show();
Expand All @@ -521,7 +521,7 @@ class $modify(MyEditorUI, EditorUI) {

void createMoveMenu() {
EditorUI::createMoveMenu();
auto* btn = this->getSpriteButton("gj22_anim_64_color_004.png", menu_selector(MyEditorUI::on_function_tool), nullptr, 0.9f);
auto* btn = this->getSpriteButton("FuncToolButton.png"_spr, menu_selector(FuncToolEditorUI::on_function_tool), nullptr, 1.f, 0, ccp(0, -2));
m_editButtonBar->m_buttonArray->addObject(btn);
auto rows = GameManager::sharedState()->getIntGameVariable("0049");
auto cols = GameManager::sharedState()->getIntGameVariable("0050");
Expand Down

0 comments on commit f226cf7

Please sign in to comment.