Skip to content

Commit

Permalink
char select ui, switch between cams at login, loading screen
Browse files Browse the repository at this point in the history
  • Loading branch information
shnok committed Jun 17, 2024
1 parent 0be6ae0 commit 01a03bb
Show file tree
Hide file tree
Showing 23 changed files with 833 additions and 265 deletions.
223 changes: 206 additions & 17 deletions l2-unity/Assets/Resources/Data/UI/Font/tahoma Light.asset

Large diffs are not rendered by default.

This file was deleted.

8 changes: 8 additions & 0 deletions l2-unity/Assets/Resources/Data/UI/_Elements/Login.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
<Style src="project://database/Assets/Resources/Data/UI/_Elements/L2StyleSheet.uss?fileID=7433441132597879392&amp;guid=72e99cc94b130bf4ba100dceaa830b13&amp;type=3#L2StyleSheet" />
<ui:VisualElement name="CharSelectWindow" style="flex-grow: 1; width: 100%; height: 100%; justify-content: flex-end; flex-direction: row;">
<ui:VisualElement style="flex-grow: 1; width: 33.3%; max-width: 33.3%; min-width: 33.3%;" />
<ui:VisualElement name="VisualElement" style="flex-grow: 1; width: 33.3%; min-width: 33.3%; max-width: 33.3%; flex-direction: column-reverse;">
<ui:VisualElement name="StartButtonWindow" tabindex="-1" style="flex-grow: 0; width: auto; height: auto; flex-shrink: 0; background-image: resource(&apos;Data/UI/Windows/Windows_DF_Drawer_Bg_Darker&apos;); -unity-slice-bottom: 10; -unity-slice-left: 27; -unity-slice-top: 10; -unity-slice-right: 20; margin-right: auto; margin-left: auto; padding-top: 10px; padding-right: 10px; padding-bottom: 12px; padding-left: 10px; margin-bottom: 40px; flex-wrap: nowrap;">
<ui:Button text="Log In" parse-escape-sequences="true" display-tooltip-when-elided="true" name="StartButton" tabindex="-1" focusable="false" class="l2-button" style="height: 25px;">
<ui:VisualElement name="ButtonBg" tabindex="-1" class="l2-button-bg" style="height: 37px;" />
<ui:Label tabindex="-1" text="Start" parse-escape-sequences="true" display-tooltip-when-elided="true" name="ButtonLabel" class="button-label" style="letter-spacing: 0; padding-top: 5px; padding-bottom: 0;" />
</ui:Button>
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="VisualElement" style="flex-grow: 1; flex-direction: row-reverse; align-self: auto; align-items: flex-end; justify-content: space-between; flex-wrap: nowrap; width: 33.3%; max-width: 33.3%; min-width: 33.3%;">
<ui:VisualElement name="MenuWindow" tabindex="-1" style="flex-grow: 0; width: 130px; height: auto; flex-shrink: 0; background-image: resource(&apos;Data/UI/Windows/Windows_DF_Drawer_Bg_Darker&apos;); -unity-slice-bottom: 10; -unity-slice-left: 27; -unity-slice-top: 10; -unity-slice-right: 20; margin-right: 20px; margin-left: 0; padding-top: 20px; padding-right: 10px; padding-bottom: 20px; padding-left: 10px; margin-top: 0; margin-bottom: 30px; align-self: flex-end;">
<ui:Button text="Log In" parse-escape-sequences="true" display-tooltip-when-elided="true" name="CreateButton" tabindex="-1" focusable="false" class="l2-button" style="height: 20px; width: auto;">
<ui:VisualElement name="ButtonBg" tabindex="-1" class="l2-button-bg" />
<ui:Label tabindex="-1" text="Create" parse-escape-sequences="true" display-tooltip-when-elided="true" name="ButtonLabel" class="button-label" style="letter-spacing: 0;" />
</ui:Button>
<ui:Button text="Log In" parse-escape-sequences="true" display-tooltip-when-elided="true" name="DeleteButton" tabindex="-1" focusable="false" class="l2-button" style="height: 20px; width: auto; margin-top: 6px;">
<ui:VisualElement name="ButtonBg" tabindex="-1" class="l2-button-bg" />
<ui:Label tabindex="-1" text="Delete" parse-escape-sequences="true" display-tooltip-when-elided="true" name="ButtonLabel" class="button-label" style="letter-spacing: 0;" />
</ui:Button>
<ui:Button text="Log In" parse-escape-sequences="true" display-tooltip-when-elided="true" name="ReloginButton" tabindex="-1" focusable="false" class="l2-button" style="height: 20px; width: auto; margin-top: 25px;">
<ui:VisualElement name="ButtonBg" tabindex="-1" class="l2-button-bg" />
<ui:Label tabindex="-1" text="Re-Login" parse-escape-sequences="true" display-tooltip-when-elided="true" name="ButtonLabel" class="button-label" style="letter-spacing: 0;" />
</ui:Button>
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
</ui:UXML>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xsi="http://www.w3.org/2001/XMLSchema-instance" engine="UnityEngine.UIElements" editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
<Style src="project://database/Assets/Resources/Data/UI/_Elements/L2StyleSheet.uss?fileID=7433441132597879392&amp;guid=72e99cc94b130bf4ba100dceaa830b13&amp;type=3#L2StyleSheet" />
<ui:VisualElement name="UIContainer" class="login-window" style="flex-grow: 1; background-color: rgba(0, 0, 0, 0);">
<ui:VisualElement name="BG" style="flex-grow: 1; position: absolute; width: 100%; height: 100%; justify-content: flex-start; align-items: center; background-color: rgba(0, 0, 0, 0); top: 1px; left: 0;">
<ui:VisualElement name="L2Logo" style="flex-grow: 0; background-image: resource(&apos;Data/UI/Login/l2logo-white&apos;); width: 160px; height: 150px; flex-shrink: 0; justify-content: flex-start; margin-top: 5%;" />
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="Loading" style="flex-grow: 1; position: absolute; background-color: rgb(0, 0, 0); width: 100%; height: 100%; align-self: center; justify-content: flex-end; visibility: visible; display: none;">
<ui:Label tabindex="-1" text="Loading..." parse-escape-sequences="true" display-tooltip-when-elided="true" style="justify-content: space-around; align-items: flex-end; -unity-text-align: upper-right; -unity-font: resource(&apos;Data/UI/Font/tahoma&apos;); -unity-font-definition: initial; color: rgb(255, 255, 255); margin-bottom: 17px; margin-left: 3px; margin-right: 19px; font-size: 25px;" />
</ui:VisualElement>
</ui:UXML>
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
<ui:VisualElement name="LoginWindow" tabindex="-1" class="login-window" style="flex-grow: 0; width: 260px; height: 110px; flex-shrink: 0; background-image: resource(&apos;Data/UI/Windows/Windows_DF_Drawer_Bg_Darker&apos;); -unity-slice-bottom: 10; -unity-slice-left: 27; -unity-slice-top: 10; -unity-slice-right: 20; margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; padding-top: 19px; padding-right: 20px; padding-bottom: 16px; padding-left: 20px;">
<ui:VisualElement name="ID" tabindex="-1" style="flex-grow: 1; flex-direction: row; height: 15px; flex-shrink: 0;">
<ui:VisualElement name="IDLabel" tabindex="-1" style="flex-grow: 0; width: 64px; margin-right: 0; padding-right: 8px;">
<ui:Label tabindex="-1" text="ID" parse-escape-sequences="true" display-tooltip-when-elided="true" style="-unity-font: initial; color: rgb(220, 220, 220); -unity-text-align: middle-right; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; font-size: 14px; -unity-font-definition: resource(&apos;Data/UI/Font/tahoma Light&apos;); letter-spacing: 0;" />
<ui:Label tabindex="-1" text="ID" parse-escape-sequences="true" display-tooltip-when-elided="true" style="-unity-font: initial; color: rgb(220, 220, 220); -unity-text-align: middle-right; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; margin-top: 1px; margin-right: 0; margin-bottom: 0; margin-left: 0; font-size: 14px; -unity-font-definition: resource(&apos;Data/UI/Font/tahoma Light&apos;); letter-spacing: 0;" />
</ui:VisualElement>
<ui:VisualElement name="IDInput" tabindex="-1" style="flex-grow: 1; height: 16px;">
<ui:VisualElement name="UserInputBg" tabindex="-1" class="login-input-bg" style="flex-grow: 1; position: absolute; width: 100%; height: 25px;" />
<ui:TextField picking-mode="Ignore" max-length="16" name="UserInputField" class="login-input" style="-unity-font: resource(&apos;Data/UI/Font/tahoma&apos;); background-color: rgba(0, 0, 0, 0); -unity-background-image-tint-color: rgb(12, 12, 12); background-image: none; -unity-font-definition: resource(&apos;Data/UI/Font/tahoma Light&apos;); font-size: 12px; margin-left: 6px; letter-spacing: 2px; -unity-text-align: lower-left; padding-top: 1px;" />
<ui:VisualElement name="IDInput" tabindex="-1" style="flex-grow: 1; height: 18px;">
<ui:VisualElement name="UserInputBg" tabindex="-1" class="login-input-bg" style="flex-grow: 1; position: absolute; width: 100%; height: 28px;" />
<ui:TextField picking-mode="Ignore" max-length="16" name="UserInputField" class="login-input" style="-unity-font: resource(&apos;Data/UI/Font/tahoma&apos;); background-color: rgba(0, 0, 0, 0); -unity-background-image-tint-color: rgb(12, 12, 12); background-image: none; -unity-font-definition: initial; font-size: 12px; margin-left: 6px; letter-spacing: 0; -unity-text-align: lower-left; padding-top: 0; margin-bottom: 2px; margin-top: 2px; overflow: hidden;" />
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="Password" tabindex="-1" style="flex-grow: 1; flex-direction: row; margin-top: 6px; flex-shrink: 0;">
<ui:VisualElement name="PasswordLabel" tabindex="-1" style="flex-grow: 0; width: 64px; padding-right: 8px;">
<ui:Label tabindex="-1" text="Password" parse-escape-sequences="true" display-tooltip-when-elided="true" style="-unity-text-align: lower-right; color: rgb(220, 220, 220); margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; font-size: 13px; -unity-font-style: normal; -unity-font-definition: resource(&apos;Data/UI/Font/tahoma Light&apos;); letter-spacing: 0; -unity-font: resource(&apos;Data/UI/Font/tahoma&apos;);" />
<ui:Label tabindex="-1" text="Password" parse-escape-sequences="true" display-tooltip-when-elided="true" style="-unity-text-align: lower-right; color: rgb(220, 220, 220); margin-top: 1px; margin-right: 0; margin-bottom: 0; margin-left: 0; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; font-size: 13px; -unity-font-style: normal; -unity-font-definition: resource(&apos;Data/UI/Font/tahoma Light&apos;); letter-spacing: 0; -unity-font: resource(&apos;Data/UI/Font/tahoma&apos;);" />
</ui:VisualElement>
<ui:VisualElement name="PasswordInput" tabindex="-1" style="flex-grow: 1; -unity-text-align: upper-center; height: 16px;">
<ui:VisualElement name="PasswordInputBg" tabindex="-1" class="login-input-bg" style="height: 25px;" />
<ui:TextField picking-mode="Ignore" password="true" tabindex="1" max-length="16" name="PasswordInputField" class="login-input" style="-unity-font: resource(&apos;Data/UI/Font/tahoma&apos;); background-color: rgba(0, 0, 0, 0); -unity-background-image-tint-color: rgb(12, 12, 12); -unity-font-definition: resource(&apos;Data/UI/Font/tahoma Light&apos;); height: auto; font-size: 12px; margin-left: 6px; -unity-text-align: middle-center; padding-top: 1px;" />
<ui:VisualElement name="PasswordInput" tabindex="-1" style="flex-grow: 1; -unity-text-align: upper-center; height: 18px;">
<ui:VisualElement name="PasswordInputBg" tabindex="-1" class="login-input-bg" style="height: 28px;" />
<ui:TextField picking-mode="Ignore" password="true" tabindex="1" max-length="16" name="PasswordInputField" class="login-input" style="-unity-font: resource(&apos;Data/UI/Font/tahoma&apos;); background-color: rgba(0, 0, 0, 0); -unity-background-image-tint-color: rgb(12, 12, 12); -unity-font-definition: initial; height: auto; font-size: 12px; margin-left: 6px; -unity-text-align: upper-center; padding-top: 0;" />
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="Buttons" tabindex="-1" style="flex-grow: 1; flex-direction: row; -unity-text-align: upper-left; justify-content: center; margin-top: 10px; flex-shrink: 0;">
Expand Down
Loading

0 comments on commit 01a03bb

Please sign in to comment.