Files
wnmj/Classes/Scenes/SelectShareScene.h

61 lines
968 B
C
Raw Permalink Normal View History

2026-02-13 14:34:15 +08:00
#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<SelectShareScene>
{
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; //<2F><><EFBFBD><EFBFBD>
Button* m_btnWinxin;
Button* m_btnXL;
bool m_isShareImage;
tagShareItem m_ShareItem;
std::string m_strShareType;
};