88 lines
1.7 KiB
C++
88 lines
1.7 KiB
C++
#pragma once
|
|
|
|
#include "TipNode.h"
|
|
#include "RadioCtrl.h"
|
|
#include "CMD_LogonServer.h"
|
|
#include "CreateScene.h"
|
|
|
|
#define MAX_UNION_COUNT 10 // 最大节点个数;
|
|
|
|
USING_NS_CC;
|
|
using namespace cocos2d::ui;
|
|
|
|
class GameUnionScene : public TipNode
|
|
{
|
|
public:
|
|
GameUnionScene();
|
|
~GameUnionScene();
|
|
|
|
public:
|
|
CREATE_FUNC(GameUnionScene);
|
|
|
|
virtual bool init();
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onEnterTransitionDidFinish();
|
|
|
|
virtual void onExit();
|
|
|
|
void pushScene();
|
|
|
|
void popScene();
|
|
|
|
// 关闭弹窗;
|
|
void onClickClose(Ref*);
|
|
|
|
void ShowUnionList(tagUnionAndGameList* pUnionAndGameList);
|
|
|
|
void ShowRoomList(tagRoomItemList* pRoomItemList);
|
|
|
|
void ShowAutoRoomList(tagAutoRoomItemList* pRoomItemList);
|
|
|
|
void HideCreateNode();
|
|
|
|
void SaveSelectUnionCode(uint32 dwUnionCode);
|
|
|
|
void startUnionRoomTime();
|
|
|
|
// 请求公会房间;
|
|
void RequsetUnionRoomList(bool isLoading = true);
|
|
|
|
std::string getGameRule(uint16 wKindID, uint32 dwGameRule);
|
|
|
|
// 按键处理;
|
|
void onKeyReleased(EventKeyboard::KeyCode keyCode, Event * pEvent);
|
|
|
|
public:
|
|
ImageView* m_ImageView;
|
|
ImageView* m_ImageTop;
|
|
CreateScene* m_CreateNode;
|
|
ListView* m_UnionList;
|
|
ScrollView* m_RoomList;
|
|
ScrollView* m_DaikaiList;
|
|
|
|
Layout* m_PanelTip;
|
|
Button* m_btnCreate;
|
|
Button* m_btnRefresh;
|
|
Button* m_btnUnionItem0;
|
|
Button* m_btnRoomItem0;
|
|
Button* m_btnRoomItem1;
|
|
//Button* m_btnRoomItem2;
|
|
//Button* m_btnRoomItem2;
|
|
//Button* m_btnRoomItem3;
|
|
//Button* m_btnRoomItem4;
|
|
//Button* m_btnRoomItem5;
|
|
ImageView* m_DaikaiItem;
|
|
|
|
Text* m_txtAutoList; // 代开管理
|
|
Text* m_txtRoomList;
|
|
Text* m_txtAuto;
|
|
|
|
Text* m_txtGameInfo;
|
|
|
|
uint32 m_dwSelectUnionCode;
|
|
uint8 m_cbUnionGoldOpen;
|
|
bool m_isRefreshing;
|
|
int m_nRefreshErr;
|
|
}; |