Let's build it with the factory map then.

This commit is contained in:
Lirusaito
2019-03-04 16:53:22 -05:00
parent 5ff3700203
commit 2266a2a662
3 changed files with 3 additions and 5 deletions

View File

@@ -358,7 +358,8 @@ LLFloaterMarketplaceListings::LLFloaterMarketplaceListings(const LLSD& key)
, mPanelListingsSet(false)
{
//buildFromFile("floater_marketplace_listings.xml");
LLUICtrlFactory::instance().buildFloater(this, "floater_marketplace_listings.xml");
mFactoryMap["panel_marketplace_listing"] = LLCallbackMap([&](void*) { return mPanelListings = new LLPanelMarketplaceListings; });
LLUICtrlFactory::instance().buildFloater(this, "floater_marketplace_listings.xml", &getFactoryMap());
}
LLFloaterMarketplaceListings::~LLFloaterMarketplaceListings()
@@ -384,8 +385,6 @@ BOOL LLFloaterMarketplaceListings::postBuild()
mInventoryText = mInventoryPlaceholder->getChild<LLTextBox>("marketplace_listings_inventory_placeholder_text");
mInventoryTitle = mInventoryPlaceholder->getChild<LLTextBox>("marketplace_listings_inventory_placeholder_title");
mPanelListings = static_cast<LLPanelMarketplaceListings*>(getChild<LLUICtrl>("panel_marketplace_listing"));
LLFocusableElement::setFocusReceivedCallback(boost::bind(&LLFloaterMarketplaceListings::onFocusReceived, this));
// Observe category creation to catch marketplace listings creation (moot if already existing)

View File

@@ -67,7 +67,7 @@
<panel
name="panel_marketplace_listing"
filename="panel_marketplace_listings.xml"
bottom="-5"
bottom="-435"
follows="all"/>
</panel>
<panel

View File

@@ -5,7 +5,6 @@
follows="all"
layout="topleft"
width="308"
class="llpanelmarketplacelistings"
height="440">
<panel
name="tool_panel"