示例#1
0
BOOL LLPanelClothingListItem::postBuild()
{
    LLPanelDeletableWearableListItem::postBuild();

    addWidgetToRightSide("btn_move_up");
    addWidgetToRightSide("btn_move_down");
    addWidgetToRightSide("btn_lock");
    addWidgetToRightSide("btn_edit_panel");

    setWidgetsVisible(false);
    reshapeWidgets();

    return TRUE;
}
示例#2
0
BOOL LLPanelDummyClothingListItem::postBuild()
{
    addWidgetToRightSide("btn_add_panel");

    setIconImage(LLInventoryIcon::getIcon(LLAssetType::AT_CLOTHING, LLInventoryType::IT_NONE, mWearableType, FALSE));
    updateItem(wearableTypeToString(mWearableType));

    // Make it look loke clothing item - reserve space for 'delete' button
    setLeftWidgetsWidth(getChildView("item_icon")->getRect().mLeft);

    setWidgetsVisible(false);
    reshapeWidgets();

    return TRUE;
}
示例#3
0
BOOL LLPanelDeletableWearableListItem::postBuild()
{
    LLPanelWearableListItem::postBuild();

    addWidgetToLeftSide("btn_delete");

    LLButton* delete_btn = getChild<LLButton>("btn_delete");
    // Reserve space for 'delete' button event if it is invisible.
    setLeftWidgetsWidth(delete_btn->getRect().mRight);

    setWidgetsVisible(false);
    reshapeWidgets();

    return TRUE;
}
示例#4
0
BOOL LLPanelInventoryListItemBase::postBuild()
{
	LLViewerInventoryItem* inv_item = getItem();
	if (inv_item)
	{
		mIconImage = LLInventoryIcon::getIcon(inv_item->getType(), inv_item->getInventoryType(), inv_item->getFlags(), FALSE);
		updateItem(inv_item->getName());
	}

	setNeedsRefresh(true);

	setWidgetsVisible(false);
	reshapeWidgets();

	return TRUE;
}
示例#5
0
void LLPanelWearableListItem::onMouseLeave(S32 x, S32 y, MASK mask)
{
    LLPanelInventoryListItemBase::onMouseLeave(x, y, mask);
    setWidgetsVisible(false);
    reshapeWidgets();
}