58 lines
1.1 KiB
C++
58 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "TipNode.h"
|
|
#include "RadioCtrl.h"
|
|
|
|
USING_NS_CC;
|
|
using namespace cocos2d::ui;
|
|
|
|
class DuiHuanScene : public TipNode
|
|
{
|
|
public:
|
|
DuiHuanScene();
|
|
~DuiHuanScene();
|
|
|
|
public:
|
|
CREATE_FUNC(DuiHuanScene);
|
|
|
|
virtual bool init();
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onEnterTransitionDidFinish();
|
|
|
|
virtual void onExit();
|
|
|
|
void pushScene();
|
|
|
|
void popScene();
|
|
|
|
void initRule();
|
|
|
|
// ¹Ø±Õµ¯´°;
|
|
void onClickClose(Ref*);
|
|
|
|
// °´¼ü´¦Àí;
|
|
void onKeyReleased(EventKeyboard::KeyCode keyCode, Event * pEvent);
|
|
|
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_WIN32)
|
|
bool onWebViewShouldStartLoading(experimental::ui::WebView *sender, const std::string &url);
|
|
|
|
void onWebViewDidFinishLoading(experimental::ui::WebView *sender, const std::string &url);
|
|
|
|
void onWebViewDidFailLoading(experimental::ui::WebView *sender, const std::string &url);
|
|
|
|
void hideLoadingLayer();
|
|
#endif
|
|
|
|
public:
|
|
ImageView* m_ImageView;
|
|
ImageView* m_ImageTop;
|
|
|
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_WIN32)
|
|
cocos2d::experimental::ui::WebView *_webView;
|
|
|
|
LayerColor* m_layerLoading;
|
|
Sprite* m_sprLoading;
|
|
#endif
|
|
}; |