Back to Home

ESO Lua File v101044

internalingame/scenes/internalingamefragments.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
-- TODO Share these in Common?
----------------------------------------
-- Keybind Strip
----------------------------------------
local ZO_KeybindStripFragment = ZO_FadeSceneFragment:Subclass()
function ZO_KeybindStripFragment:New(...)
    return ZO_FadeSceneFragment.New(self, ...)
end
function ZO_KeybindStripFragment:Show()
    KEYBIND_STRIP:SetStyle(KEYBIND_STRIP_STANDARD_STYLE)
    ZO_FadeSceneFragment.Show(self)
end
function ZO_KeybindStripFragment:Hide()
    ZO_FadeSceneFragment.Hide(self)
end
KEYBIND_STRIP_FADE_FRAGMENT = ZO_KeybindStripFragment:New(ZO_KeybindStripControl)
MARKET_ITEM_PREVIEW_OPTIONS_FRAGMENT = ZO_ItemPreviewOptionsFragment:New({
    paddingLeft = 0,
    paddingRight = 950,
    dynamicFramingConsumedWidth = 1150,
    dynamicFramingConsumedHeight = 300,
    forcePreparePreview = true,
})
RIGHT_BG_FRAGMENT = ZO_FadeSceneFragment:New(ZO_SharedRightBackground)
UI_SHORTCUTS_ACTION_LAYER_FRAGMENT = ZO_ActionLayerFragment:New(GetString(SI_KEYBINDINGS_LAYER_USER_INTERFACE_SHORTCUTS))
MOUSE_UI_MODE_FRAGMENT = ZO_ActionLayerFragment:New("MouseUIMode")
TREE_UNDERLAY_FRAGMENT = ZO_FadeSceneFragment:New(ZO_SharedTreeUnderlay)
KEYBIND_STRIP_MUNGE_BACKDROP_FRAGMENT = ZO_FadeSceneFragment:New(ZO_KeybindStripMungeBackground)
----------------------------------------
--Window Sound Fragment
----------------------------------------
ZO_WindowSoundFragment = ZO_SceneFragment:Subclass()
function ZO_WindowSoundFragment:New(showSoundId, hideSoundId)
    local fragment = ZO_SceneFragment.New(self)
    fragment.showSoundId = showSoundId
    fragment.hideSoundId = hideSoundId
    return fragment
end
function ZO_WindowSoundFragment:Show()
    PlaySound(self.showSoundId)
    self:OnShown()
end
function ZO_WindowSoundFragment:Hide()
    --only play the close sound if we're exiting the window UI
    if(SCENE_MANAGER:IsShowingBaseSceneNext()) then
        PlaySound(self.hideSoundId)
    end
    self:OnHidden()
end
-------------------------
--Keyboard Tribute
-------------------------
ZO_KEYBOARD_TRIBUTE_PILE_VIEWER_FRAGMENT_GROUP =
{
    TRIBUTE_PILE_VIEWER_KEYBOARD_FRAGMENT,
    KEYBIND_STRIP_MUNGE_BACKDROP_FRAGMENT,
}
ZO_KEYBOARD_TRIBUTE_TARGET_VIEWER_FRAGMENT_GROUP =
{
    TRIBUTE_TARGET_VIEWER_KEYBOARD_FRAGMENT,
    KEYBIND_STRIP_MUNGE_BACKDROP_FRAGMENT,
}
ZO_KEYBOARD_TRIBUTE_CONFINEMENT_VIEWER_FRAGMENT_GROUP =
{
    TRIBUTE_CONFINEMENT_VIEWER_KEYBOARD_FRAGMENT,
    KEYBIND_STRIP_MUNGE_BACKDROP_FRAGMENT,
}
ZO_KEYBOARD_TRIBUTE_PATRON_SELECTION_FRAGMENT_GROUP =
{
    TRIBUTE_PATRON_SELECTION_KEYBOARD_FRAGMENT,
    KEYBIND_STRIP_MUNGE_BACKDROP_FRAGMENT,
}