Back to Home

ESO Lua File v101044

ingame/help/keyboard/helpitemassistance_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
local CUSTOMER_SERVICE_CATEGORY_DATA =
{
    name = GetString(SI_CUSTOMER_SERVICE_ITEM_ASSISTANCE),
    up = "EsoUI/Art/Help/help_tabIcon_itemAssistance_up.dds",
    down = "EsoUI/Art/Help/help_tabIcon_itemAssistance_down.dds",
    over = "EsoUI/Art/Help/help_tabIcon_itemAssistance_over.dds",
}
ZO_HelpItemAssistance_Keyboard = ZO_HelpMechanicAssistanceTemplate_Keyboard:Subclass()
function ZO_HelpItemAssistance_Keyboard:Initialize(control)
    ZO_HelpMechanicAssistanceTemplate_Keyboard.Initialize(self, control, CUSTOMER_SERVICE_CATEGORY_DATA, ZO_ITEM_ASSISTANCE_CATEGORIES_DATA)
end
function ZO_HelpItemAssistance_Keyboard:GetDetailsInstructions()
    return GetString(SI_CUSTOMER_SERVICE_ITEM_ASSISTANCE_NAME_INSTRUCTIONS)
end
function ZO_HelpItemAssistance_Keyboard:RegisterDetails()
    if self.savedItemLink then
        SetCustomerServiceTicketItemTargetByLink(self.savedItemLink)
    else
    end
end
function ZO_HelpItemAssistance_Keyboard:SetDetailsFromItemLink(itemLink)
    self.savedItemLink = itemLink
    self:SetDetailsText(zo_strformat(SI_TOOLTIP_ITEM_NAME, GetItemLinkName(itemLink)))
end
--Global XML
    HELP_CUSTOMER_SERVICE_ITEM_ASSISTANCE_KEYBOARD = ZO_HelpItemAssistance_Keyboard:New(self)
end
    HELP_CUSTOMER_SERVICE_ITEM_ASSISTANCE_KEYBOARD:AttemptToSendTicket()
end