Mercurial > LightClone
diff LightClone/Source/GuiButton.h @ 23:a785b0aaf004
More work on the Gui system
author | koryspansel |
---|---|
date | Thu, 15 Sep 2011 21:45:00 -0700 |
parents | b4dc5d674e22 |
children | 3a63df04f3c0 |
line wrap: on
line diff
--- a/LightClone/Source/GuiButton.h Thu Sep 15 20:31:15 2011 -0700 +++ b/LightClone/Source/GuiButton.h Thu Sep 15 21:45:00 2011 -0700 @@ -59,6 +59,16 @@ */ IDirect3DTexture9* pTexture[GuiButtonState_Count]; + /* + * pFont + */ + ID3DXFont* pFont; + + /* + * kText + */ + FixedString<> kText; + public: /* @@ -92,6 +102,16 @@ ErrorCode SetTexture(uint32 nState, const char* pName, bool bResize = false); /* + * SetFont + */ + ErrorCode SetFont(const char* pName, uint32 nSize, uint32 nHeight = FW_NORMAL); + + /* + * SetText + */ + void SetText(const char* pText); + + /* * OnMouseDown */ virtual void OnMouseDown(uint32 nButton, float fX, float fY);