mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
some UI changes
This commit is contained in:
@@ -36,7 +36,7 @@ public:
|
||||
|
||||
CreaturePtr getCreature() { return m_creature; }
|
||||
|
||||
private:
|
||||
protected:
|
||||
CreaturePtr m_creature;
|
||||
};
|
||||
|
||||
|
@@ -25,11 +25,6 @@
|
||||
#include <framework/graphics/graphics.h>
|
||||
#include <framework/graphics/fontmanager.h>
|
||||
|
||||
UIItem::UIItem()
|
||||
{
|
||||
m_font = g_fonts.getFont("verdana-11px-rounded");
|
||||
}
|
||||
|
||||
void UIItem::draw()
|
||||
{
|
||||
drawSelf();
|
||||
|
@@ -30,15 +30,14 @@
|
||||
class UIItem : public UIWidget
|
||||
{
|
||||
public:
|
||||
UIItem();
|
||||
void draw();
|
||||
|
||||
void setItem(const ItemPtr& item) { m_item = item; }
|
||||
|
||||
ItemPtr getItem() { return m_item; }
|
||||
|
||||
private:
|
||||
protected:
|
||||
ItemPtr m_item;
|
||||
FontPtr m_font;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user