22 #include "precompiled.h"
34 AddSetting(GUIST_CGUISpriteInstance,
"sprite_background");
35 AddSetting(GUIST_CGUISpriteInstance,
"sprite_bar");
55 if (Message.
value == CStr(
"caption"))
void DrawSprite(const CGUISpriteInstance &Sprite, int CellID, const float &Z, const CRect &Rect, const CRect &Clipping=CRect())
Draw GUI Sprite.
float left
Returning CPos representing each corner.
static PSRETURN GetSetting(const IGUIObject *pObject, const CStr &Setting, T &Value)
Retrieves a setting by name from object pointer.
void HandleMessage(SGUIMessage &Message)
virtual float GetBufferedZ() const
Returns not the Z value, but the actual buffered Z value, i.e.
virtual void Draw()
Draws the progress bar.
void AddSetting(const EGUISettingType &Type, const CStr &Name)
Add a setting to m_Settings.
CRect m_CachedActualSize
Cached size, real size m_Size is actually dependent on resolution and can have different real outcome...
static PSRETURN SetSetting(IGUIObject *pObject, const CStr &Setting, const T &Value, const bool &SkipMessage=false)
Sets a value by name using a real datatype as input.
Message send to IGUIObject::HandleMessage() in order to give life to Objects manually with a derived ...
EGUIMessageType type
Describes what the message regards.
virtual void HandleMessage(SGUIMessage &Message)
This function is called with different messages for instance when the mouse enters the object...
static PSRETURN GetSettingPointer(const IGUIObject *pObject, const CStr &Setting, T *&Value)
Rectangle class used for screen rectangles.