Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e18c04d
Showing
1,152 changed files
with
269,085 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
© 2015 ZENIMAX MEDIA INC. TRADEMARKS BELONG TO THEIR RESPECTIVE OWNERS. ALL RIGHTS RESERVED. | ||
|
||
This is the code base for Elder Scrolls Online user interface and is presented here unchanged for reference. If you're a Zenimax Media Inc. representative and have any objection to this repository let me know. | ||
|
||
**Last update is 2.2.7 (API 100013) on November 30 2015.** | ||
|
||
[![Join the chat at https://gitter.im/ESOUI/ESOUI](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ESOUI/ESOUI?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
; app UI files | ||
## DependsOn: ZO_PregameLocalization ZO_AppAndInGame | ||
EsoUI\App\Globals\Globals.lua | ||
|
||
EsoUI\App\LoadingScreen\SharedLoadingScreen.lua | ||
EsoUI\App\LoadingScreen\SharedLoadingScreen.xml | ||
EsoUI\App\LoadingScreen\Keyboard\LoadingScreen.lua | ||
EsoUI\App\LoadingScreen\Keyboard\LoadingScreen.xml | ||
EsoUI\App\LoadingScreen\Gamepad\GamepadLoadingScreen.lua | ||
EsoUI\App\LoadingScreen\Gamepad\GamepadLoadingScreen.xml | ||
|
||
EsoUI\App\LoadingScreen\Console\ZO_VoiceChatHUDLoadingScreen_Console.lua | ||
EsoUI\App\LoadingScreen\Console\ZO_VoiceChatHUDLoadingScreen_Console.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
EVENT_MANAGER = GetEventManager() | ||
|
||
|
||
--App implementation of zo_mixin | ||
------------------------------ | ||
|
||
function zo_mixin(object, ...) | ||
for i = 1, select("#", ...) do | ||
local source = select(i, ...) | ||
for k,v in pairs(source) do | ||
object[k] = v | ||
end | ||
end | ||
end | ||
|
24 changes: 24 additions & 0 deletions
24
esoui/app/loadingscreen/console/zo_voicechathudloadingscreen_console.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
-------------------------------------------- | ||
-- VoiceChat HUD Loading Screen Console | ||
-------------------------------------------- | ||
|
||
ZO_VoiceChatHUDLoadingScreen_Console = {} | ||
|
||
|
||
--XML Calls | ||
function ZO_VoiceChatHUDLoadingScreenConsole_OnInitialize(control) | ||
zo_mixin(control, ZO_VoiceChatHUD, ZO_VoiceChatHUDLoadingScreen_Console) | ||
control:Initialize(control) | ||
|
||
local function OnLogoutSuccessful() | ||
control.speakerData = {} | ||
control.delayedClears = {} | ||
control:Update() | ||
end | ||
|
||
control:RegisterForEvent(EVENT_LOGOUT_SUCCESSFUL, OnLogoutSuccessful) | ||
end | ||
|
||
function ZO_VoiceChatHUDLoadingScreenConsole_OnUpdate(control) | ||
control:Update() | ||
end |
13 changes: 13 additions & 0 deletions
13
esoui/app/loadingscreen/console/zo_voicechathudloadingscreen_console.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<GuiXml> | ||
<Controls> | ||
<TopLevelControl name="ZO_VoiceChatHUDLoadingScreenConsole" inherits="ZO_VoiceChatHUD"> | ||
<OnInitialized> | ||
ZO_VoiceChatHUDLoadingScreenConsole_OnInitialize(self) | ||
</OnInitialized> | ||
|
||
<OnUpdate> | ||
ZO_VoiceChatHUDLoadingScreenConsole_OnUpdate(self) | ||
</OnUpdate> | ||
</TopLevelControl> | ||
</Controls> | ||
</GuiXml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
local LoadingScreen_Gamepad = {} | ||
|
||
function LoadingScreen_Gamepad:InitializeAnimations() | ||
self.spinnerFadeAnimation = GetAnimationManager():CreateTimelineFromVirtual("SpinnerFadeAnimation") | ||
self.spinnerFadeAnimation:GetAnimation(1):SetAnimatedControl(GamepadLoadingScreenBg) | ||
self.spinnerFadeAnimation:GetAnimation(2):SetAnimatedControl(GamepadLoadingScreenSpinner) | ||
|
||
self.animations = GetAnimationManager():CreateTimelineFromVirtual("GamepadLoadingCompleteAnimation") | ||
self.animations:GetAnimation(1):SetAnimatedControl(GamepadLoadingScreenArt) | ||
self.animations:GetAnimation(2):SetAnimatedControl(GamepadLoadingScreenTopMunge) | ||
self.animations:GetAnimation(3):SetAnimatedControl(GamepadLoadingScreenBottomMunge) | ||
self.animations:GetAnimation(4):SetAnimatedControl(GamepadLoadingScreenBottomMungeZoneInfoContainer) | ||
self.animations:GetAnimation(5):SetAnimatedControl(GamepadLoadingScreenZoneDescription) | ||
self.animations:GetAnimation(6):SetAnimatedControl(GamepadLoadingScreenDescriptionBg) | ||
self.animations.control = self | ||
|
||
self.longLoadAnimation = GetAnimationManager():CreateTimelineFromVirtual("LongLoadingAnimation") | ||
self.longLoadAnimation:GetAnimation(1):SetAnimatedControl(GamepadLoadingScreenTopMungeLongLoadMessage) | ||
self.longLoadAnimation:GetAnimation(2):SetAnimatedControl(GamepadLoadingScreenTopMungeLongLoadMessage) | ||
self.longLoadAnimation.control = GamepadLoadingScreenTopMungeLongLoadMessage | ||
|
||
local function OnLongLoadAnimationStop(timeline, completed) | ||
timeline.control:SetAlpha(0) | ||
end | ||
|
||
self.longLoadAnimation:SetHandler("OnStop", OnLongLoadAnimationStop) | ||
end | ||
|
||
function LoadingScreen_Gamepad:GetSystemName() | ||
return "GamepadLoadingScreen" | ||
end | ||
|
||
function LoadingScreen_Gamepad:OnLongLoadTime(event) | ||
if(not self:IsHidden()) then | ||
self.longLoadAnimation:PlayFromStart() | ||
end | ||
end | ||
|
||
function LoadingScreen_Gamepad:OnShown() | ||
self.longLoadAnimation:Stop() | ||
GamepadLoadingScreenTopMungeLongLoadMessage:SetAlpha(0) | ||
end | ||
|
||
function LoadingScreen_Gamepad:OnHidden() | ||
self.longLoadAnimation:Stop() | ||
CheckForControllerDisconnect() | ||
|
||
local platform = GetUIPlatform() | ||
if platform == UI_PLATFORM_PS4 or platform == UI_PLATFORM_XBOX then | ||
StopLongLoadTimer() | ||
end | ||
end | ||
|
||
function LoadingScreen_Gamepad:IsPreferredScreen() | ||
return IsInGamepadPreferredMode() | ||
end | ||
|
||
function ZO_InitGamepadLoadScreen(control) | ||
zo_mixin(control, LoadingScreen_Base, LoadingScreen_Gamepad) | ||
control:Initialize() | ||
|
||
EVENT_MANAGER:RegisterForEvent("LoadingScreen", EVENT_LOAD_RUNNING_LONG, function(...) control:OnLongLoadTime(...) end) | ||
control:SetHandler("OnShow", function(...) control:OnShown() end); | ||
control:SetHandler("OnHide", function(...) control:OnHidden() end); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<GuiXml> | ||
<String name="GAMEPAD_MEDIUM_FONT_APP" value="EsoUI/Common/Fonts/FTN57.otf" /> | ||
<Font name="ZoFontGamepad61App" font="$(GAMEPAD_MEDIUM_FONT_APP)|61|soft-shadow-thick" /> | ||
<Font name="ZoFontGamepad42App" font="$(GAMEPAD_MEDIUM_FONT_APP)|42|soft-shadow-thick" /> | ||
|
||
<Animations> | ||
<AnimationTimeline name="LongLoadingAnimation" playbackType="LOOP" loopCount="LOOP_INDEFINITELY"> | ||
<Animations> | ||
<AlphaAnimation duration="200" startAlpha="0" endAlpha="1" /> | ||
<AlphaAnimation delay="5000" duration="200" startAlpha="1" endAlpha="0" /> | ||
<CustomAnimation delay="5200" duration="50000" /> | ||
</Animations> | ||
</AnimationTimeline> | ||
|
||
<AnimationTimeline name="GamepadLoadingCompleteAnimation"> | ||
<OnPlay> | ||
self.control:SetKeyboardEnabled(not self:IsPlayingBackward()) | ||
</OnPlay> | ||
<OnStop> | ||
if LoadingScreen_Base_CanHide() and self:IsPlayingBackward() then | ||
self.control:SetHidden(true) | ||
SetGuiHidden("app", true) | ||
end | ||
</OnStop> | ||
<Animations> | ||
<AlphaAnimation duration="500" startAlpha="0" endAlpha="1" /> | ||
<AlphaAnimation delay="1000" duration="1000" startAlpha="0" endAlpha="1" /> | ||
<AlphaAnimation delay="1000" duration="1000" startAlpha="0" endAlpha="1" /> | ||
<AlphaAnimation delay="2000" duration="500" startAlpha="0" endAlpha="1" /> | ||
<AlphaAnimation delay="2000" duration="500" startAlpha="0" endAlpha="1" /> | ||
<AlphaAnimation delay="2000" duration="500" startAlpha="0" endAlpha="1" /> | ||
</Animations> | ||
</AnimationTimeline> | ||
</Animations> | ||
|
||
<Controls> | ||
<TopLevelControl name="GamepadLoadingScreen" inherits="ZO_LoadingScreenBase" keyboardEnabled="false"> | ||
<AnchorFill /> | ||
|
||
<OnInitialized> | ||
ZO_InitGamepadLoadScreen(self) | ||
</OnInitialized> | ||
|
||
<Controls> | ||
<Texture name="$(parent)TopMunge" override="true" textureFile="EsoUI/Art/Screens_App/Gamepad/MungeBar_Loading-1024x256.dds" alpha="0"> | ||
<Anchor point="TOPLEFT" relativeTo="GuiRoot" offsetY="-40"/> | ||
<Anchor point="TOPRIGHT" relativeTo="GuiRoot" offsetY="-40"/> | ||
|
||
<TextureCoords left="1" right="0" top="1" bottom=".01" /> | ||
|
||
<Controls> | ||
<Label name="$(parent)LongLoadMessage" font="ZoFontGamepad61App" color="FFFFFF" horizontalAlignment="CENTER" alpha="0" text="SI_LONG_LOAD_TIME"> | ||
<Anchor point="BOTTOM" offsetY="-20"/> | ||
</Label> | ||
</Controls> | ||
</Texture> | ||
|
||
<Texture name="$(parent)BottomMunge" override="true" textureFile="EsoUI/Art/Screens_App/Gamepad/MungeBar_Loading-1024x256.dds" alpha="0"> | ||
<Dimensions y="256"/> | ||
<Anchor point="BOTTOMLEFT" relativeTo="GuiRoot" offsetY="40"/> | ||
<Anchor point="BOTTOMRIGHT" relativeTo="GuiRoot" offsetY="40"/> | ||
|
||
<TextureCoords left="1" right="0" top="-.01" bottom="1" /> | ||
|
||
<Controls> | ||
<Label name="$(grandparent)ZoneDescription" override="true" font="ZoFontGamepad42App" color="FFFFFF" alpha="0"> | ||
<Dimensions x="1280"/> | ||
<Anchor point="BOTTOM" relativePoint="TOP" /> | ||
</Label> | ||
|
||
<Texture name="$(grandparent)DescriptionBg" override="true" textureFile="EsoUI/Art/Screens_App/Gamepad/gp_Loading_Text_Background-1024x256.dds" alpha="0"> | ||
<Anchor point="TOPLEFT" relativeTo="$(grandparent)ZoneDescription" relativePoint="TOPLEFT" offsetX="-300" offsetY="-100" /> | ||
<Anchor point="BOTTOMRIGHT" relativeTo="$(grandparent)ZoneDescription" relativePoint="BOTTOMRIGHT" offsetX="300" offsetY="100" /> | ||
</Texture> | ||
|
||
<Control name="$(grandparent)ZoneInfoContainer" override="true"> | ||
<Controls> | ||
<Label name="$(parent)ZoneName" font="ZoFontGamepad61App" override="true" color="FFFFFF" /> | ||
<Label name="$(parent)InstanceType" font="ZoFontGamepad61App" override="true" color="FFFFFF" /> | ||
</Controls> | ||
</Control> | ||
</Controls> | ||
</Texture> | ||
|
||
<Texture name="$(parent)Spinner" override="true" textureFile="EsoUI/Art/LoadScreen/Gamepad/load_ouroboros.dds" alpha="0"> | ||
<Anchor point="BOTTOM" offsetY="-60"/> | ||
</Texture> | ||
</Controls> | ||
</TopLevelControl> | ||
</Controls> | ||
</GuiXml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
local LoadingScreen_Keyboard = {} | ||
|
||
function LoadingScreen_Keyboard:InitializeAnimations() | ||
self.spinnerFadeAnimation = GetAnimationManager():CreateTimelineFromVirtual("SpinnerFadeAnimation") | ||
self.spinnerFadeAnimation:GetAnimation(1):SetAnimatedControl(LoadingScreenBg) | ||
self.spinnerFadeAnimation:GetAnimation(2):SetAnimatedControl(LoadingScreenSpinner) | ||
|
||
self.animations = GetAnimationManager():CreateTimelineFromVirtual("LoadingCompleteAnimation") | ||
self.animations:GetAnimation(1):SetAnimatedControl(LoadingScreenArt) | ||
self.animations:GetAnimation(2):SetAnimatedControl(LoadingScreenTopMunge) | ||
self.animations:GetAnimation(3):SetAnimatedControl(LoadingScreenTopMunge) | ||
self.animations:GetAnimation(4):SetAnimatedControl(LoadingScreenBottomMunge) | ||
self.animations:GetAnimation(5):SetAnimatedControl(LoadingScreenBottomMunge) | ||
self.animations.control = self | ||
end | ||
|
||
function LoadingScreen_Keyboard:IsPreferredScreen() | ||
return not IsInGamepadPreferredMode() | ||
end | ||
|
||
function LoadingScreen_Keyboard:GetSystemName() | ||
return "LoadingScreen" | ||
end | ||
|
||
function ZO_InitKeyboardLoadScreen(control) | ||
zo_mixin(control, LoadingScreen_Base, LoadingScreen_Keyboard) | ||
control:Initialize(control) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<GuiXml> | ||
<Animations> | ||
<AlphaAnimation name="PopToFullAlphaAnimation" duration="850"> | ||
<OnPlay> | ||
if self:GetTimeline():IsPlayingBackward() then | ||
self:SetAlphaValues(0, 1) | ||
else | ||
--Needs to pop in when a load starts | ||
self:SetAlphaValues(1, 1) | ||
end | ||
</OnPlay> | ||
</AlphaAnimation> | ||
|
||
<AlphaAnimation name="FadeInOutAnimation" duration="200" startAlpha="0" endAlpha="1" /> | ||
|
||
<AnimationTimeline name="LoadingCompleteAnimation"> | ||
<OnPlay> | ||
self.control:SetMouseEnabled(not self:IsPlayingBackward()) | ||
self.control:SetKeyboardEnabled(not self:IsPlayingBackward()) | ||
</OnPlay> | ||
<OnStop> | ||
if LoadingScreen_Base_CanHide() and self:IsPlayingBackward() then | ||
self.control:SetHidden(true) | ||
SetGuiHidden("app", true) | ||
end | ||
</OnStop> | ||
<Animations> | ||
<AlphaAnimation inherits="PopToFullAlphaAnimation" /> | ||
|
||
<TranslateAnimation duration="850" anchorIndex="3"> | ||
<OnPlay> | ||
if self:GetTimeline():IsPlayingBackward() then | ||
self:SetTranslateOffsets(0, -256, 0, -3) | ||
else | ||
self:SetTranslateOffsets(0, -3, 0, -3) | ||
end | ||
</OnPlay> | ||
</TranslateAnimation> | ||
<AlphaAnimation inherits="PopToFullAlphaAnimation" /> | ||
|
||
<TranslateAnimation duration="850" anchorIndex="3"> | ||
<OnPlay> | ||
if self:GetTimeline():IsPlayingBackward() then | ||
self:SetTranslateOffsets(0, 256, 0, 3) | ||
else | ||
self:SetTranslateOffsets(0, 3, 0, 3) | ||
end | ||
</OnPlay> | ||
</TranslateAnimation> | ||
<AlphaAnimation inherits="PopToFullAlphaAnimation" /> | ||
</Animations> | ||
</AnimationTimeline> | ||
</Animations> | ||
|
||
<Controls> | ||
<TopLevelControl name="LoadingScreen" inherits="ZO_LoadingScreenBase" mouseEnabled="true" > | ||
<AnchorFill /> | ||
|
||
<OnInitialized> | ||
ZO_InitKeyboardLoadScreen(self) | ||
</OnInitialized> | ||
|
||
<OnMouseEnter> | ||
GetWindowManager():SetMouseCursor(MOUSE_CURSOR_DO_NOT_CARE) | ||
</OnMouseEnter> | ||
|
||
<OnMouseWheel /> | ||
|
||
<Controls> | ||
<Texture name="$(parent)TopMunge" override="true" textureFile="EsoUI/Art/Screens_App/LoadScreen_topMunge_tile.dds" addressMode="WRAP" /> | ||
|
||
<Texture name="$(parent)BottomMunge" override="true" textureFile="EsoUI/Art/Screens_App/LoadScreen_bottomMunge_tile.dds" addressMode="WRAP" scale=".75"> | ||
<Controls> | ||
<Label name="$(grandparent)ZoneDescription" override="true"> | ||
<Anchor point="CENTER" offsetY="55" /> | ||
</Label> | ||
</Controls> | ||
</Texture> | ||
|
||
<Texture name="$(parent)Spinner" override="true"> | ||
<Anchor point="BOTTOMRIGHT" offsetX="0" offsetY="-2" /> | ||
</Texture> | ||
|
||
</Controls> | ||
|
||
</TopLevelControl> | ||
</Controls> | ||
</GuiXml> |
Oops, something went wrong.