Back to Home

ESO Lua File v100020

ingame/housingeditor/keyboard/housingfurnituretemplates_keyboard.lua

[◄ back to folders ]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
ZO_HOUSING_FURNITURE_LIST_ENTRY_HEIGHT = 52
-------------------
-- XML Functions
-------------------
    control.name = control:GetNamedChild("Name")
    control.statusIcon = control:GetNamedChild("StatusIcon")
    control.icon = control:GetNamedChild("Icon")
    control.stackCount = control.icon:GetNamedChild("StackCount")
    control.highlight = control:GetNamedChild("Highlight")
end
function ZO_HousingFurnitureTemplates_Keyboard_OnMouseClick(control, buttonIndex, upInside)
    if control.OnMouseClickCallback then
        control.OnMouseClickCallback(control, buttonIndex, upInside)
        local furnitureObject = control.furnitureObject
        if furnitureObject then
            if furnitureObject:IsBeingPreviewed() then
                WINDOW_MANAGER:SetMouseCursor(MOUSE_CURSOR_DO_NOT_CARE)
            end
        end
    end
end
        control.OnMouseDoubleClickCallback(control, buttonIndex)
    end
end
    local highlight = control.highlight
    if not highlight.animation then
        highlight.animation = ANIMATION_MANAGER:CreateTimelineFromVirtual("ShowOnMouseOverLabelAnimation", highlight)
    end
    if hidden then
        ZO_Animation_PlayBackwardOrInstantlyToStart(highlight.animation, instant)
    else
        ZO_Animation_PlayFromStartOrInstantlyToEnd(highlight.animation, instant)
    end
end
    local ANIMATED = false
    local icon = control.icon
    if not icon.animation then
        icon.animation = ANIMATION_MANAGER:CreateTimelineFromVirtual("IconSlotMouseOverAnimation", icon)
    end
    icon.animation:PlayForward()
    local furnitureObject = control.furnitureObject
    if furnitureObject then
        if IsCharacterPreviewingAvailable() and furnitureObject:IsPreviewable() and not furnitureObject:IsBeingPreviewed() then
            WINDOW_MANAGER:SetMouseCursor(MOUSE_CURSOR_PREVIEW)
        end
        InitializeTooltip(ItemTooltip, control, RIGHT, -15, 0, LEFT)
        if furnitureObject.bagId and furnitureObject.slotIndex then
            ItemTooltip:SetBagItem(furnitureObject.bagId, furnitureObject.slotIndex)
        elseif furnitureObject.marketProductId then
            ItemTooltip:SetMarketProduct(furnitureObject.marketProductId)
        elseif furnitureObject.collectibleId then
            local SHOW_NICKNAME = true
            ItemTooltip:SetCollectible(furnitureObject.collectibleId, SHOW_NICKNAME)
        elseif furnitureObject.retrievableFurnitureId then
            ItemTooltip:SetPlacedFurniture(furnitureObject.retrievableFurnitureId)
        end
    end
end
    local ANIMATED = false
    local icon = control.icon
    if icon.animation then
        icon.animation:PlayBackward()
    end
    WINDOW_MANAGER:SetMouseCursor(MOUSE_CURSOR_DO_NOT_CARE)
    ClearTooltip(ItemTooltip)
end
    control.cost = control:GetNamedChild("Cost")
    control.previousCost = control:GetNamedChild("PreviousCost")
    control.textCallout = control:GetNamedChild("TextCallout")
    control.textCalloutBackground = control.textCallout:GetNamedChild("Background")
    control.textCalloutLeftBackground = control.textCalloutBackground:GetNamedChild("Left")
    control.textCalloutRightBackground = control.textCalloutBackground:GetNamedChild("Right")
    control.textCalloutCenterBackground = control.textCalloutBackground:GetNamedChild("Center")
end
    local data = control.data
end
    ClearTooltip(InformationTooltip)
end