2022-08-01 11:18:03 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "BasedButtonSprite.hpp"
|
2022-10-30 14:59:20 -04:00
|
|
|
|
2022-10-13 07:00:41 -04:00
|
|
|
#include <Geode/binding/CCMenuItemToggler.hpp>
|
2022-08-01 11:18:03 -04:00
|
|
|
|
|
|
|
#pragma warning(disable : 4275)
|
|
|
|
|
|
|
|
namespace geode {
|
|
|
|
class GEODE_DLL TabButton : public CCMenuItemToggler {
|
2022-10-30 14:59:20 -04:00
|
|
|
public:
|
2022-08-01 11:18:03 -04:00
|
|
|
static TabButton* create(
|
2022-10-30 14:59:20 -04:00
|
|
|
TabBaseColor unselected, TabBaseColor selected, char const* text,
|
|
|
|
cocos2d::CCObject* target, cocos2d::SEL_MenuHandler callback
|
2022-08-01 11:18:03 -04:00
|
|
|
);
|
2022-10-30 14:59:20 -04:00
|
|
|
|
2022-08-01 11:18:03 -04:00
|
|
|
static TabButton* create(
|
2022-10-30 14:59:20 -04:00
|
|
|
char const* text, cocos2d::CCObject* target, cocos2d::SEL_MenuHandler callback
|
2022-08-01 11:18:03 -04:00
|
|
|
);
|
|
|
|
};
|
2022-09-18 17:07:08 -04:00
|
|
|
}
|