Skip to content

Commit

Permalink
cleaning up and organizing uxml/css
Browse files Browse the repository at this point in the history
  • Loading branch information
shnok committed Nov 29, 2024
1 parent 5c9c5ea commit 8f08166
Show file tree
Hide file tree
Showing 37 changed files with 867 additions and 470 deletions.

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,50 @@
.l2-flex-button {
flex-grow: 0;
width: auto;
-unity-slice-left: 6;
-unity-slice-top: 6;
-unity-slice-right: 6;
-unity-slice-bottom: 6;
font-size: 12px;
-unity-font-definition: resource('Data/UI/Assets/Font/tahoma Light');
letter-spacing: 2px;
padding-top: 0;
padding-right: 0;
padding-bottom: 0;
padding-left: 0;
overflow: visible;
background-color: transparent;
background-image: resource('Data/UI/Assets/Button/Button_DF_L2Unity');
border-top-width: 0;
border-right-width: 0;
border-bottom-width: 0;
border-left-width: 0;
margin-left: 0;
}

.l2-flex-button:active {
background-image: resource('Data/UI/Assets/Button/Button_DF_L2Unity_Down');
}

.l2-flex-button:active:hover {
background-image: resource('Data/UI/Assets/Button/Button_DF_L2Unity_Down');
}

.l2-flex-button:hover {
background-image: resource('Data/UI/Assets/Button/Button_DF_L2Unity_Over');
}

.l2-flex-button-label {
-unity-font: resource('Data/UI/Assets/Font/tahoma');
-unity-font-definition: resource('Data/UI/Assets/Font/tahoma Light');
color: rgba(255, 249, 227, 0.96);
-unity-text-align: middle-center;
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
padding-left: 10px;
padding-right: 10px;
padding-top: 8px;
padding-bottom: 8px;
}

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

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,36 @@
.l2-input-field {
-unity-font: resource('Data/UI/Assets/Font/tahoma');
background-color: rgba(0, 0, 0, 0);
font-size: 12px;
margin-left: 6px;
letter-spacing: 0;
padding-top: 0;
margin-bottom: 2px;
margin-top: 2px;
overflow: hidden;
margin: 0;
padding: 0;
flex-grow: 0;
border-width: 0;
-unity-text-align: middle-center;
height: 18px;
color: white;
}

.l2-input-field > .unity-label {
min-width: 0px;
-unity-text-align: middle-right;
}

.l2-input-field #unity-text-input {
background-color: rgba(0, 0, 0, 0);
background-image: resource('Data/UI/Assets/Login/CharacterPassword_DF_EditBox_Scaled');
border-width: 0;
margin: 0;
padding-left: 2px;
padding-right: 2px;
-unity-slice-left: 10;
-unity-slice-top: 10;
-unity-slice-right: 10;
-unity-slice-bottom: 10;
}

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
@@ -1,6 +1,5 @@
<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="L2Input" picking-mode="Ignore" class="l2-input" style="flex-grow: 0;">
<ui:TextField max-length="64" name="InputField" tabindex="1" class="l2-input-field" />
</ui:VisualElement>
<Style src="project://database/Assets/Resources/Data/UI/_Elements/Components/L2Input/L2Input.uss?fileID=7433441132597879392&amp;guid=2fa480f78160edf4a8c4381744578912&amp;type=3#L2Input" />
<ui:TextField max-length="64" name="L2Input" tabindex="1" class="l2-input-field" />
</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,123 @@
.l2-scroll-view {
flex-grow: 1;
}

.l2-scroll-view .unity-scroll-view__content-viewport {
margin-top: 6px;
margin-bottom: 4px;
overflow: hidden;
}

.l2-scroll-view .unity-scroller {
width: 14px;
margin-left: 4px;
margin-right: 0px;
margin-top: 0px;
margin-bottom: 0;
}

.l2-scroll-view .unity-slider {
margin: 15px 0 15px 0;
}

.l2-scroll-view .unity-base-slider__drag-container {
background-color: transparent;
min-width: 14px;
width: 14px;
padding: 0;
border-width: 0;
border-radius: 0;
}

.l2-scroll-view .unity-slider {
background-color: transparent;
min-width: 14px;
width: 14px;
padding: 0;
border-width: 0;
border-radius: 0;
}

.l2-scroll-view .unity-base-slider__tracker {
background-color: transparent;
min-width: 14px;
width: 14px;
padding: 0;
border-width: 0;
border-radius: 0;
}

.l2-scroll-view .unity-base-slider__dragger {
min-width: 14px;
width: 14px;
margin-left: -3px;
background-image: resource('Data/UI/Assets/Scrollbar/SliderBar');
background-color: transparent;
-unity-slice-top: 0;
-unity-slice-left: 0;
-unity-slice-bottom: 2;
-unity-slice-right: 2;
-unity-slice-scale: 0;
border-width: 0;
}

.l2-scroll-view .unity-scroller__high-button {
background-color: transparent;
-unity-background-image-tint-color: rgb(255, 255, 255);
-unity-slice-top: 0;
-unity-slice-left: 0;
-unity-slice-bottom: 2;
-unity-slice-right: 2;
-unity-slice-scale: 0;
width: 14px;
height: 14px;
border-width: 0;
}

.l2-scroll-view .unity-scroller__low-button {
background-color: transparent;
-unity-background-image-tint-color: rgb(255, 255, 255);
-unity-slice-top: 0;
-unity-slice-left: 0;
-unity-slice-bottom: 2;
-unity-slice-right: 2;
-unity-slice-scale: 0;
width: 14px;
height: 14px;
border-width: 0;
}

.l2-scroll-view .unity-base-slider__tracker {
}

.l2-scroll-view .unity-scroller__high-button {
background-image: resource('Data/UI/Assets/Scrollbar/ScrollBarDownBtn');
}

.l2-scroll-view .unity-scroller__high-button:active {
background-image: resource('Data/UI/Assets/Scrollbar/ScrollBarDownOnBtn');
}

.l2-scroll-view .unity-scroller__high-button:active:hover {
background-image: resource('Data/UI/Assets/Scrollbar/ScrollBarDownOnBtn');
}

.l2-scroll-view .unity-scroller__high-button:hover {
background-image: resource('Data/UI/Assets/Scrollbar/scrollbardownbtn_over');
}

.l2-scroll-view .unity-scroller__low-button {
background-image: resource('Data/UI/Assets/Scrollbar/ScrollBarUpBtn');
}

.l2-scroll-view .unity-scroller__low-button:active {
background-image: resource('Data/UI/Assets/Scrollbar/ScrollBarUpOnBtn');
}

.l2-scroll-view .unity-scroller__low-button:active:hover {
background-image: resource('Data/UI/Assets/Scrollbar/ScrollBarUpOnBtn');
}

.l2-scroll-view .unity-scroller__low-button:hover {
background-image: resource('Data/UI/Assets/Scrollbar/scrollbarupbtn_over');
}

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,5 @@
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xmlns="UnityEngine.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" />
<Style src="project://database/Assets/Resources/Data/UI/_Elements/Components/L2ScrollView/L2Scrollview.uss?fileID=7433441132597879392&amp;guid=891520f23c03d384f8e473febe85fe08&amp;type=3#L2Scrollview" />
<ui:ScrollView name="L2Scrollview" class="l2-scroll-view" />
</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
@@ -1,8 +1,8 @@
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xmlns="UnityEngine.UIElements" editor-extension-mode="False">
<ui:Template name="WindowTemplate" src="project://database/Assets/Resources/Data/UI/_Elements/Template/WindowTemplate.uxml?fileID=9197481963319205126&amp;guid=5ca840f56ef6f1044b4dc077c7d3e6e6&amp;type=3#WindowTemplate" />
<ui:Template name="WindowTemplate" src="project://database/Assets/Resources/Data/UI/_Elements/Components/WindowTemplate.uxml?fileID=9197481963319205126&amp;guid=5ca840f56ef6f1044b4dc077c7d3e6e6&amp;type=3#WindowTemplate" />
<Style src="project://database/Assets/Resources/Data/UI/_Elements/L2StyleSheet.uss?fileID=7433441132597879392&amp;guid=72e99cc94b130bf4ba100dceaa830b13&amp;type=3#L2StyleSheet" />
<ui:Instance template="WindowTemplate" name="WindowTemplate" class="npc-html-window" style="width: 324px; height: 428px;">
<ui:VisualElement name="Content" class="html-window-content-container" style="width: 308px; left: 6px; height: 380px;">
<ui:Instance template="WindowTemplate" name="WindowTemplate" class="npc-html-window" style="width: 318px; height: 428px;">
<ui:VisualElement name="Content" class="html-window-content-container" style="width: 304px; left: 6px; height: 380px;">
<ui:ScrollView name="HtmlContent" horizontal-scroller-visibility="Hidden" vertical-scroller-visibility="AlwaysVisible" class="l2-scroll-view html-window-content" style="flex-grow: 1;">
<ui:VisualElement name="ContentWrapper" class="html-window-content-wrapper" style="display: flex;" />
</ui:ScrollView>
Expand Down
Loading

0 comments on commit 8f08166

Please sign in to comment.