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 |
ZO_KEYBOARD_LOOT_HISTORY_ENTRY_SPACING_Y = - 1
local KEYBOARD_LOOT_HISTORY_ENTRY_TEMPLATE = "ZO_LootHistory_KeyboardEntry"
end
end
if newState == SCENE_FRAGMENT_SHOWN then
elseif newState == SCENE_FRAGMENT_HIDING then
end
end )
end
local HORIZ_OFFSET = 0
local VERTICAL_OFFSET = - 84
local MAX_ENTRIES = 6
self . lootStreamPersistent = self : CreateFadingStationaryControlBuffer ( control : GetNamedChild ( "PersistentContainer" ) , "ZO_LootHistory_FadeShared" , "ZO_LootHistory_IconEntranceShared" , "ZO_LootHistory_ContainerFadeShared" , anchor , MAX_ENTRIES , PERSISTENT_CONTAINER_SHOW_TIME_MS , "KeyboardPersistent" )
self . lootStream = self : CreateFadingStationaryControlBuffer ( control : GetNamedChild ( "Container" ) , "ZO_LootHistory_FadeShared" , "ZO_LootHistory_IconEntranceShared" , "ZO_LootHistory_ContainerFadeShared" , anchor , MAX_ENTRIES , CONTAINER_SHOW_TIME_MS , "Keyboard" )
end
self . entryTemplate = KEYBOARD_LOOT_HISTORY_ENTRY_TEMPLATE
end
do
local SUPPORTED_SCENES =
{
[ "inventory" ] = true ,
[ "interact" ] = true ,
[ "crownCrateKeyboard" ] = true ,
[ "trade" ] = true ,
[ "stats" ] = true ,
[ "giftInventoryViewKeyboard" ] = true ,
[ "dailyLoginRewards" ] = true ,
[ "mailInbox" ] = true ,
[ "market" ] = true ,
}
return not self . hidden or SUPPORTED_SCENES [ currentSceneName ] or LOOT_WINDOW . returnScene == "inventory"
end
end
do
local STATUS_ICONS =
{
[ ZO_LOOT_HISTORY_DISPLAY_TYPE_CRAFT_BAG ] = "EsoUI/Art/HUD/lootHistory_icon_craftBag.dds" ,
[ ZO_LOOT_HISTORY_DISPLAY_TYPE_STOLEN ] = "EsoUI/Art/Inventory/inventory_stolenItem_icon.dds" ,
[ ZO_LOOT_HISTORY_DISPLAY_TYPE_COLLECTIONS ] = "EsoUI/Art/HUD/Keyboard/lootHistory_icon_collections.dds" ,
[ ZO_LOOT_HISTORY_DISPLAY_TYPE_ANTIQUITIES ] = "EsoUI/Art/HUD/Keyboard/lootHistory_icon_antiquities.dds" ,
[ ZO_LOOT_HISTORY_DISPLAY_TYPE_CROWN_CRATE ] = "EsoUI/Art/HUD/Keyboard/lootHistory_icon_crownCrates.dds" ,
}
return STATUS_ICONS [ displayType ]
end
end
do
local HIGHLIGHTS =
{
[ ZO_LOOT_HISTORY_DISPLAY_TYPE_CRAFT_BAG ] = "EsoUI/Art/HUD/lootHistory_highlight.dds" ,
[ ZO_LOOT_HISTORY_DISPLAY_TYPE_STOLEN ] = "EsoUI/Art/HUD/lootHistory_highlight_stolen.dds" ,
[ ZO_LOOT_HISTORY_DISPLAY_TYPE_COLLECTIONS ] = "EsoUI/Art/HUD/lootHistory_highlight.dds" ,
[ ZO_LOOT_HISTORY_DISPLAY_TYPE_ANTIQUITIES ] = "EsoUI/Art/HUD/lootHistory_highlight.dds" ,
[ ZO_LOOT_HISTORY_DISPLAY_TYPE_CROWN_CRATE ] = "EsoUI/Art/HUD/lootHistory_highlight.dds" ,
}
return HIGHLIGHTS [ displayType ]
end
end
end |