mirror of
https://github.com/edubart/otclient.git
synced 2026-01-11 16:41:30 +01:00
render do main menu
This commit is contained in:
@@ -36,10 +36,10 @@ typedef std::shared_ptr<UIContainer> UIContainerPtr;
|
||||
class UIElement;
|
||||
typedef std::shared_ptr<UIElement> UIElementPtr;
|
||||
|
||||
class UIElement
|
||||
class UIElement : public std::enable_shared_from_this<UIElement>
|
||||
{
|
||||
public:
|
||||
UIElement(UIContainerPtr parent);
|
||||
UIElement() { }
|
||||
virtual ~UIElement() { }
|
||||
|
||||
virtual void render() { }
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
|
||||
virtual UI::ControlType getControlType() const { return UI::Element; }
|
||||
|
||||
UIElementPtr asUIElement() { return UIElementPtr(this); }
|
||||
UIElementPtr asUIElement() { return shared_from_this(); }
|
||||
|
||||
protected:
|
||||
UI::ControlType m_type;
|
||||
|
||||
Reference in New Issue
Block a user