/* ========================================================================== * ÀÛ ¼º ÀÚ : À̼ø±Ô * ÀÛ ¼º ÀÏ : 2007.07.11 * ³» ¿ë : À̹ÌÁö ÆùÆ® * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once #include "UIImage.h" enum eIMAGEFONT_TYPE { eIAMGEFONT_ITEMCOUNT = 0, // Àκ¥Å丮 ¾ÆÀÌÅÛ °¹¼ö eIAMGEFONT_TAROTSTR, // Ÿ·Î - Á¤¹æÇâ, PVP ¾Æ±º Æ÷ÀÎÆ® eIAMGEFONT_TAROTCALC, // Ÿ·Î - °è»ê½Ä eIAMGEFONT_TAROTINV, // Ÿ·Î - ¿ª¹æÇâ, PVP Àû±º Æ÷ÀÎÆ® eIAMGEFONT_TAROTDEFAULT, // Ÿ·Î - ±âº» eIAMGEFONT_PVPTIME, // PVP - ½Ã°£ eIAMGEFONT_PVPDESTPOINT, // PVP - ¸ñÇ¥ ½Ã°£ eIAMGEFONT_HEROLEVEL, // Äɸ¯ÅÍ Á¤º¸Ã¢ - ·¡¹ë }; /// À̹ÌÁö ÆùÆ® class cUIImageFont : cUIImage { public: cUIImageFont( NiTexture* tex, unsigned int texX, unsigned int texY, unsigned int charWidth, unsigned int charHeight ); virtual ~cUIImageFont(); /// ·»´õ¸µ void DrawText( unsigned int x, unsigned int y, const char* text ); /// ¹®ÀÚ¿­ unsigned int GetTextWidth( unsigned int num ) const; unsigned int GetTextHeight() const; protected: unsigned int mTexX; unsigned int mTexY; unsigned int mCharWidth; unsigned int mCharHeight; }; inline unsigned int cUIImageFont::GetTextHeight() const { return mCharHeight; }