#pragma once #include "TipNode.h" USING_NS_CC; using namespace cocos2d::ui; enum enShareType { en_share_weixin = 0, en_share_qq = 0, en_share_zfb = 0, }; struct tagShareItem { std::string strkUrl; std::string strkTitle; std::string strkDesc; int nShareType; tagShareItem() { strkUrl = ""; strkTitle = ""; strkDesc = ""; nShareType = 0; } }; class SelectShareScene : public TipNode, public Singleton { public: SelectShareScene(); ~SelectShareScene(); public: CREATE_FUNC(SelectShareScene); virtual bool init(); virtual void onEnter(); virtual void onEnterTransitionDidFinish(); virtual void onExit(); void HideDlg(); void shareRoomInfo(std::string kUrl, std::string kTitle, std::string kDesc, int nShareType); void shareImage(); public: Layout* m_pRootNode; //½çÃæ Button* m_btnWinxin; Button* m_btnXL; bool m_isShareImage; tagShareItem m_ShareItem; std::string m_strShareType; };