fix order of buttons in CCMenuItemExt::createToggler

This commit is contained in:
dankmeme01 2024-08-01 14:05:33 +02:00
parent fe730ed78b
commit d729a12bf3

View file

@ -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;
}