36 lines
695 B
C
36 lines
695 B
C
|
|
#pragma once
|
|||
|
|
#include "cocos2d.h"
|
|||
|
|
#include "cocostudio/CocoStudio.h"
|
|||
|
|
#include "UI/CocosGUI.h"
|
|||
|
|
#include "UI/UISlider.h"
|
|||
|
|
|
|||
|
|
USING_NS_CC;
|
|||
|
|
using namespace cocos2d::ui;
|
|||
|
|
|
|||
|
|
class RadioGroup
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
RadioGroup();
|
|||
|
|
~RadioGroup();
|
|||
|
|
|
|||
|
|
void setRadioMode(bool isMust); // <20>Ƿ<EFBFBD><C7B7><EFBFBD>ѡ
|
|||
|
|
|
|||
|
|
void AddCheckBox(CheckBox*);
|
|||
|
|
|
|||
|
|
void onClickCheckBox(cocos2d::Ref* widget, CheckBox::EventType type);
|
|||
|
|
|
|||
|
|
void setDelauftSelect(cocos2d::Ref* widget);
|
|||
|
|
|
|||
|
|
void setDelauftSelect(int index);
|
|||
|
|
|
|||
|
|
void setDelauftSelect(int index, bool isMust);
|
|||
|
|
|
|||
|
|
cocos2d::Ref* getCurrentSelect();
|
|||
|
|
|
|||
|
|
// <20>ؼ<EFBFBD>
|
|||
|
|
private:
|
|||
|
|
cocos2d::Vector<CheckBox*> m_list; // <20><>ť<EFBFBD>б<EFBFBD>
|
|||
|
|
|
|||
|
|
bool m_isRadioMode; // <20>Ƿ<EFBFBD><C7B7><EFBFBD>ѡ
|
|||
|
|
bool m_isAudio; // <20>Ƿ<C7B7><F1B2A5B7><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
};
|