|
@@ -71,24 +71,12 @@ namespace BansheeEngine
|
|
|
return instance;
|
|
return instance;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- GUIDropDownBox::GUIDropDownBox(const HSceneObject& parent)
|
|
|
|
|
- :GUIWidget(parent), mScrollUpStyle(nullptr),
|
|
|
|
|
|
|
+ GUIDropDownBox::GUIDropDownBox(const HSceneObject& parent, CM::Viewport* target, CM::RenderWindow* window, const GUIDropDownAreaPlacement& placement,
|
|
|
|
|
+ const CM::Vector<GUIDropDownData>::type& elements, const GUISkin& skin, GUIDropDownType type)
|
|
|
|
|
+ :GUIWidget(parent, target, window), mScrollUpStyle(nullptr),
|
|
|
mScrollDownStyle(nullptr), mEntryBtnStyle(nullptr), mEntryExpBtnStyle(nullptr),
|
|
mScrollDownStyle(nullptr), mEntryBtnStyle(nullptr), mEntryExpBtnStyle(nullptr),
|
|
|
mSeparatorStyle(nullptr), mBackgroundStyle(nullptr)
|
|
mSeparatorStyle(nullptr), mBackgroundStyle(nullptr)
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- GUIDropDownBox::~GUIDropDownBox()
|
|
|
|
|
- {
|
|
|
|
|
- cm_delete(mRootMenu);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- void GUIDropDownBox::initialize(Viewport* target, RenderWindow* window, const GUIDropDownAreaPlacement& placement,
|
|
|
|
|
- const CM::Vector<GUIDropDownData>::type& elements, const GUISkin& skin, GUIDropDownType type)
|
|
|
|
|
- {
|
|
|
|
|
- GUIWidget::initialize(target, window);
|
|
|
|
|
-
|
|
|
|
|
String stylePrefix = "";
|
|
String stylePrefix = "";
|
|
|
switch(type)
|
|
switch(type)
|
|
|
{
|
|
{
|
|
@@ -120,6 +108,11 @@ namespace BansheeEngine
|
|
|
mRootMenu = cm_new<DropDownSubMenu>(this, placement, availableBounds, elements, type);
|
|
mRootMenu = cm_new<DropDownSubMenu>(this, placement, availableBounds, elements, type);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ GUIDropDownBox::~GUIDropDownBox()
|
|
|
|
|
+ {
|
|
|
|
|
+ cm_delete(mRootMenu);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
GUIDropDownBox::DropDownSubMenu::DropDownSubMenu(GUIDropDownBox* owner, const GUIDropDownAreaPlacement& placement,
|
|
GUIDropDownBox::DropDownSubMenu::DropDownSubMenu(GUIDropDownBox* owner, const GUIDropDownAreaPlacement& placement,
|
|
|
const Rect& availableBounds, const CM::Vector<GUIDropDownData>::type& elements, GUIDropDownType type)
|
|
const Rect& availableBounds, const CM::Vector<GUIDropDownData>::type& elements, GUIDropDownType type)
|
|
|
:mOwner(owner), mPage(0), mBackgroundFrame(nullptr), mBackgroundArea(nullptr), mContentArea(nullptr),
|
|
:mOwner(owner), mPage(0), mBackgroundFrame(nullptr), mBackgroundArea(nullptr), mContentArea(nullptr),
|