Back to Home

ESO Lua File v100034

ingame/scenes/keyboard/keyboardingamefragmentgroups.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
ZO_RESTYLE_SHEETS_KEYBOARD_FRAGMENT_GROUP = 
{
    RESTYLE_PREVIEW_OPTIONS_FRAGMENT,
    ITEM_PREVIEW_KEYBOARD:GetFragment(),
    MEDIUM_LEFT_PANEL_BG_FRAGMENT,
    ZO_RESTYLE_SHEET_WINDOW_FRAGMENT,
    MINIMIZE_CHAT_FRAGMENT,
}
WRIT_ADVISOR_KEYBOARD_FRAGMENT_GROUP =
{
    WRIT_ADVISOR_FRAGMENT,
    WRIT_ADVISOR_HEADER_FRAGMENT,
    MEDIUM_LEFT_PANEL_BG_FRAGMENT
}
HELP_TUTORIALS_KEYBOARD_FRAGMENT_GROUP_BASE =
{
    HELP_TUTORIALS_FRAGMENT,
    RIGHT_BG_FRAGMENT,
    TITLE_FRAGMENT,
    TREE_UNDERLAY_FRAGMENT,
    HELP_WINDOW_SOUNDS,
}
ADVANCED_STATS_FRAGMENT_GROUP =
{
    ADVANCED_STATS_FRAGMENT, 
    RIGHT_BG_FRAGMENT
}
local helpModalUnderlayFragment = ZO_SimpleSceneFragment:New(HelpOverlayModal)
helpModalUnderlayFragment:RegisterCallback("StateChange", function(oldState, newState)
    local wasVisible = oldState ~= SCENE_FRAGMENT_HIDDEN
    local isVisible = newState ~= SCENE_FRAGMENT_HIDDEN
    if wasVisible ~= isVisible then
        HELP_MANAGER:OnOverlayVisibilityChanged(isVisible)
    end
end)
HELP_TUTORIALS_OVERLAY_KEYBOARD_FRAGMENT_GROUP = ZO_ShallowTableCopy(HELP_TUTORIALS_KEYBOARD_FRAGMENT_GROUP_BASE)
table.insert(HELP_TUTORIALS_OVERLAY_KEYBOARD_FRAGMENT_GROUP, helpModalUnderlayFragment)
table.insert(HELP_TUTORIALS_OVERLAY_KEYBOARD_FRAGMENT_GROUP, ZO_SetTitleFragment:New(SI_HELP_TUTORIALS))