⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 itemshopsystem.h

📁 国外网游源码....除工具源码缺少之外,其余程序都全...至于,什么游戏,因为国内还没有,所以找不到测试
💻 H
字号:
// LobbyScene.h: interface for the CMCLobbyScene class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ITEMSHOPSCENE_H__29665D93_452E_42E8_B407_9C94B4ACBE5D__INCLUDED_)
#define AFX_ITEMSHOPSCENE_H__29665D93_452E_42E8_B407_9C94B4ACBE5D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "DrawEx.h"
#include "MCFonts.h"
#include "ButtonCtrl.h"
#include "ListBoxCtrl.h"
#include "UserInfo.h"
#include "GraphicListCtrl.h"
#include "PopupMenu.h"
#include "Animate.h"
#include "DrawBoxRect.h"
#include "MCSound.h"

#define ID_ITEMSHOP_BTN_EQUIP		1
#define ID_ITEMSHOP_BTN_REPAIR		2
#define ID_ITEMSHOP_BTN_SELL		3
#define ID_ITEMSHOP_BTN_DESCRIPT	4
#define ID_ITEMSHOP_BTN_PRESENT		5
#define ID_ITEMSHOP_BTN_BUY			6
#define ID_ITEMSHOP_BTN_BACK		7
#define ID_ITEMSHOP_BTN_MYITEM		8 // 8 - 12鳖瘤 荤侩
#define ID_ITEMSHOP_BTN_MYITEMFRONT	13
#define ID_ITEMSHOP_BTN_MYITEMBACK	14
#define ID_ITEMSHOP_BTN_MAKECHAR	15
#define ID_ITEMSHOP_BTN_DELETECHAR	16
#define ID_ITEMSHOP_BTN_CHARNEXT	17
#define ID_ITEMSHOP_BTN_CHARBACK	18
#define ID_ITEMSHOP_BTN_BATTLE		19
#define ID_ITEMSHOP_BTN_MEDIC		20
#define ID_ITEMSHOP_BTN_OPERATOR	21
#define ID_ITEMSHOP_BTN_ENGINEER	22
#define ID_ITEMSHOP_BTN_ARTILLERY	23
#define ID_ITEMSHOP_BTN_COMMON		24

#define ID_ITEMLIST_BUTTON					100
#define ID_ITEMLIST_COMMON_BUTTON			110
#define ID_ITEMLIST_BATTLE_BUTTON			120
#define ID_ITEMLIST_MEDIC_BUTTON			130
#define ID_ITEMLIST_OPERATOR_BUTTON			140
#define ID_ITEMLIST_ENGINEER_BUTTON			150
#define ID_ITEMLIST_ARTILLERY_BUTTON		160

class CMCItemShopScene : public CScene  
{
public:
	CMCItemShopScene(CDrawEx *pDraw);
	virtual ~CMCItemShopScene();

	void	OnLButtonUp( int x, int y, UINT nFlags );
	void	OnLButtonDown( BOOL fDoubleClick, int x, int y, UINT nFlags );
	void	OnRButtonUp( int x, int y, UINT nFlags );
	void	OnRButtonDown( BOOL fDoubleClick, int x, int y, UINT nFlags );
	void	OnLButtonDClick( BOOL fDoubleClick, int x, int y, UINT nkeyFlags );

	void	OnMouseMove( int x, int y, UINT nFlags );
	void	OnMouseWheel( int x, int y, UINT nFlags );
	void	OnKeyDown( BYTE bVk, BYTE bScan, DWORD dwFlags, ULONG_PTR dwExtraInfo );
	void	OnKeyUp( BYTE bVk, BYTE bScan, DWORD dwFlags, ULONG_PTR dwExtraInfo );
	void	OnChar( UINT nChar, WPARAM wParam, LPARAM lParam);

	void	InitScene();
	bool	LoadScene();
	void	CleanupScene();
	void	ProcessEvent(UINT nCtrlID, UINT nEvent, DWORD nParam);
	bool	render();
	
	
	LRESULT SceneProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
	
	HRESULT	InvalidateDeviceObjects();
	HRESULT	RestoreDeviceObjects();


	void	Draw_SystemMenu();

	void	Draw_SellItemList();
	void	Draw_SellItemButton();

	void	Draw_MyItemList();
	void	Draw_MyItemButton();
	
	void	Draw_ItemDesc();


	bool	Set_Item_List();
	bool	Set_Item_List(int nCategory);
	
public:

	CDrawEx		*m_pDraw;

	//咆胶媚
	SPRITE_TEXTURE	*m_pBackGround;
//	BACK_TEXTURE	m_pBackGround;
	
	//Fonts
	CMcFonts			*m_pFonts;


//	CButtonCtrl *m_pDermy01;
//	CButtonCtrl *m_pDermy02;
	
	// 硅撇冯 措扁角 蜡历滚瓢
	CButtonCtrl	*m_pButton_Back;

	CButtonCtrl	*m_pButton_ItemBuy;
	CButtonCtrl	*m_pButton_ItemPresent;
	CButtonCtrl	*m_pButton_ItemSell;
	CButtonCtrl	*m_pButton_ItemDestroy;

	//徘滚瓢
	CButtonCtrl	*m_pButton_AllItem;
	CButtonCtrl	*m_pButton_AutoRifle;
	CButtonCtrl	*m_pButton_Rifle;
	CButtonCtrl	*m_pButton_Pistol;
	CButtonCtrl	*m_pButton_Canon;
	CButtonCtrl	*m_pButton_Support;
	CButtonCtrl	*m_pButton_Etc;

	CButtonCtrl	*m_pButton_MyAllItem;
	CButtonCtrl	*m_pButton_MyAutoRifle;
	CButtonCtrl	*m_pButton_MyRifle;
	CButtonCtrl	*m_pButton_MyPistol;
	CButtonCtrl	*m_pButton_MyCanon;
	CButtonCtrl	*m_pButton_MySupport;
	CButtonCtrl	*m_pButton_MyEtc;	

	CGraphicListCtrl	*m_pGItemList;			// 傈眉 蜡历 府胶飘
/*	CGraphicListCtrl	*m_pGItemRifle;
	CGraphicListCtrl	*m_pGItemPistole;
	CGraphicListCtrl	*m_pGItemMachineGun;
	CGraphicListCtrl	*m_pGItemCanon;
	CGraphicListCtrl	*m_pGItemSupport;
	CGraphicListCtrl	*m_pGItemEtc;
*/
	CGraphicListCtrl	*m_pGMyItemList;			// 傈眉 蜡历 府胶飘
/*	CGraphicListCtrl	*m_pGMyItemRifle;
	CGraphicListCtrl	*m_pGMyItemPistole;
	CGraphicListCtrl	*m_pGMyItemMachineGun;
	CGraphicListCtrl	*m_pGMyItemCanon;
	CGraphicListCtrl	*m_pGMyItemSupport;
	CGraphicListCtrl	*m_pGMyItemEtc;
*/	
};

#endif // !defined(AFX_ITEMSHOPSCENE_H__29665D93_452E_42E8_B407_9C94B4ACBE5D__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -