diff options
Diffstat (limited to 'linden/indra/newview/llfloaterclothing.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterclothing.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/linden/indra/newview/llfloaterclothing.cpp b/linden/indra/newview/llfloaterclothing.cpp index 30b5b34..fd54fcf 100644 --- a/linden/indra/newview/llfloaterclothing.cpp +++ b/linden/indra/newview/llfloaterclothing.cpp | |||
@@ -43,7 +43,7 @@ | |||
43 | #include "llkeyboard.h" | 43 | #include "llkeyboard.h" |
44 | #include "llscrollbar.h" | 44 | #include "llscrollbar.h" |
45 | #include "llscrolllistctrl.h" | 45 | #include "llscrolllistctrl.h" |
46 | #include "llvieweruictrlfactory.h" | 46 | #include "lluictrlfactory.h" |
47 | #include "llviewerinventory.h" | 47 | #include "llviewerinventory.h" |
48 | #include "llvoavatar.h" | 48 | #include "llvoavatar.h" |
49 | #include "llviewercontrol.h" | 49 | #include "llviewercontrol.h" |
@@ -74,7 +74,7 @@ LLFloaterClothing::LLFloaterClothing() | |||
74 | mSelectedID(), | 74 | mSelectedID(), |
75 | mAllowSelection(FALSE) | 75 | mAllowSelection(FALSE) |
76 | { | 76 | { |
77 | gUICtrlFactory->buildFloater(this, "floater_clothing.xml"); | 77 | LLUICtrlFactory::getInstance()->buildFloater(this, "floater_clothing.xml"); |
78 | 78 | ||
79 | sInstance = this; | 79 | sInstance = this; |
80 | 80 | ||
@@ -87,7 +87,7 @@ LLFloaterClothing::LLFloaterClothing() | |||
87 | childSetDoubleClickCallback("clothing_list", onClickWear); | 87 | childSetDoubleClickCallback("clothing_list", onClickWear); |
88 | childSetCommitCallback("clothing_list", onCommitList, this); | 88 | childSetCommitCallback("clothing_list", onCommitList, this); |
89 | 89 | ||
90 | LLScrollListCtrl* list = gUICtrlFactory->getScrollListByName(this, "clothing_list"); | 90 | LLScrollListCtrl* list = getChild<LLScrollListCtrl>("clothing_list"); |
91 | if (list) | 91 | if (list) |
92 | { | 92 | { |
93 | list->addCommentText(LOADING_STRING); | 93 | list->addCommentText(LOADING_STRING); |
@@ -244,8 +244,7 @@ void LLFloaterClothing::buildClothingList() | |||
244 | { | 244 | { |
245 | //llinfos << "buildClothingList" << llendl; | 245 | //llinfos << "buildClothingList" << llendl; |
246 | 246 | ||
247 | LLScrollListCtrl* list = gUICtrlFactory->getScrollListByName(this, "clothing_list"); | 247 | LLScrollListCtrl* list = getChild<LLScrollListCtrl>("clothing_list"); |
248 | if (!list) return; | ||
249 | 248 | ||
250 | list->operateOnAll(LLCtrlListInterface::OP_DELETE); | 249 | list->operateOnAll(LLCtrlListInterface::OP_DELETE); |
251 | 250 | ||
@@ -273,12 +272,12 @@ void LLFloaterClothing::buildClothingList() | |||
273 | item_is_multi = TRUE; | 272 | item_is_multi = TRUE; |
274 | } | 273 | } |
275 | 274 | ||
276 | LLUUID image_id = get_item_icon_uuid(item->getType(), | 275 | LLString icon_name = get_item_icon_name(item->getType(), |
277 | item->getInventoryType(), | 276 | item->getInventoryType(), |
278 | item->getFlags(), item_is_multi); // flags = wearable type | 277 | item->getFlags(), item_is_multi); // flags = wearable type |
279 | row["columns"][0]["column"] = "icon"; | 278 | row["columns"][0]["column"] = "icon"; |
280 | row["columns"][0]["type"] = "icon"; | 279 | row["columns"][0]["type"] = "icon"; |
281 | row["columns"][0]["value"] = image_id; | 280 | row["columns"][0]["value"] = icon_name; |
282 | 281 | ||
283 | LLString text = item->getName(); | 282 | LLString text = item->getName(); |
284 | LLString style = "NORMAL"; | 283 | LLString style = "NORMAL"; |