mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
fix order of buttons in CCMenuItemExt::createToggler
This commit is contained in:
parent
fe730ed78b
commit
d729a12bf3
1 changed files with 1 additions and 1 deletions
|
@ -1301,7 +1301,7 @@ namespace geode::cocos {
|
|||
cocos2d::CCNode* offSprite,
|
||||
utils::MiniFunction<void(CCMenuItemToggler*)>&& callback
|
||||
) {
|
||||
auto item = CCMenuItemToggler::create(onSprite, offSprite, nullptr, nullptr);
|
||||
auto item = CCMenuItemToggler::create(offSprite, onSprite, nullptr, nullptr);
|
||||
assignCallback(item, std::forward<std::remove_reference_t<decltype(callback)>>(callback));
|
||||
return item;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue