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

📄 guibuttonctrl.h

📁 五行MMORPG引擎系统V1.0
💻 H
字号:
//-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------

#ifndef _GUIBUTTONCTRL_H_
#define _GUIBUTTONCTRL_H_

#ifndef _GUIBUTTONBASECTRL_H_
#include "gui/controls/guiButtonBaseCtrl.h"
#endif

class GuiButtonCtrl : public GuiButtonBaseCtrl
{
   typedef GuiButtonBaseCtrl Parent;

protected:

	//由guiBitmapButtonCtrl转移过来
   enum 
	{
      NORMAL,
      HILIGHT,
      DEPRESSED,
      INACTIVE
   };


#ifdef TGE_RPG_UI /// TGE_RPG_UI
   //StringTableEntry	m_pBitmapName;
   TextureHandle		mTextureHandle;

		enum
		{
			BtnLeftTop,
			BtnTop,
			BtnRightTop,
			BtnLeft,
			BtnMiddle,
			BtnRight,
			BtnLeftBottom,
			BtnBottom,
			BtnRightBottom,
			BtnIndexMax
		};
      enum BtnIndices
      {
         BtnNormal,
         BtnOver,
         BtnPress,
         BtnDisabled,
         BtnFocus,

         BtnCount,
			BtnBmpNum = BtnCount*BtnIndexMax
      };

		RectI *mBitmapBounds;  //bmp is [3*n], bmpHL is [3*n + 1], bmpNA is [3*n + 2]

#endif

  public:
   DECLARE_CONOBJECT(GuiButtonCtrl);
   GuiButtonCtrl();


#ifdef TGE_RPG_UI /// TGE_RPG_UI

   bool onWake();
   void inspectPostApply();


#endif


   void onRender(Point2I offset, const RectI &updateRect);
};




#endif //_GUI_BUTTON_CTRL_H

⌨️ 快捷键说明

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