refactoring styles and ui

main
Benjamin Kraft 1 year ago
parent 2e0b49567b
commit ca60f4777b
  1. 8
      Assets/UI.meta
  2. 0
      Assets/UI/Game.uxml
  3. 0
      Assets/UI/Game.uxml.meta
  4. 5
      Assets/UI/Menu.uxml
  5. 0
      Assets/UI/Menu.uxml.meta
  6. 4
      Assets/UI/PlayerUI.uxml
  7. 0
      Assets/UI/PlayerUI.uxml.meta
  8. 8
      Assets/UI/Styles.meta
  9. 0
      Assets/UI/Styles/game.uss
  10. 0
      Assets/UI/Styles/game.uss.meta
  11. 3
      Assets/UI/Styles/global.uss
  12. 11
      Assets/UI/Styles/global.uss.meta
  13. 5
      Assets/UI/Styles/menu.uss
  14. 0
      Assets/UI/Styles/menu.uss.meta
  15. 0
      Assets/UI/Styles/player_panel.uss
  16. 0
      Assets/UI/Styles/player_panel.uss.meta
  17. 1
      README.md

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 46686cf9748bd11bcbf2f7c49bb46e7f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -1,6 +1,7 @@
<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"> <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/UI%20Toolkit/styles.uss?fileID=7433441132597879392&amp;guid=a6abab2f6d20ba823bad41d2081810e9&amp;type=3#styles" /> <Style src="project://database/Assets/UI/Styles/menu.uss?fileID=7433441132597879392&amp;guid=a6abab2f6d20ba823bad41d2081810e9&amp;type=3#menu" />
<ui:Label text="Pong Remastered" display-tooltip-when-elided="true" name="top_header" class="header" /> <Style src="project://database/Assets/UI/Styles/global.uss?fileID=7433441132597879392&amp;guid=f6d2ff1ab9bcd826f88710e642615fa6&amp;type=3#global" />
<ui:Label text="Pong Reloaded" display-tooltip-when-elided="true" name="top_header" class="header" />
<ui:VisualElement name="main_menu" class="menu" style="display: flex; visibility: visible;"> <ui:VisualElement name="main_menu" class="menu" style="display: flex; visibility: visible;">
<ui:Button text="Play" display-tooltip-when-elided="true" name="btn_play" /> <ui:Button text="Play" display-tooltip-when-elided="true" name="btn_play" />
<ui:Button text="Settings" display-tooltip-when-elided="true" name="btn_settings" /> <ui:Button text="Settings" display-tooltip-when-elided="true" name="btn_settings" />

@ -1,6 +1,6 @@
<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"> <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/UI%20Toolkit/styles.uss?fileID=7433441132597879392&amp;guid=a6abab2f6d20ba823bad41d2081810e9&amp;type=3#styles" /> <Style src="project://database/Assets/UI/Styles/player_panel.uss?fileID=7433441132597879392&amp;guid=102b2cb1b84d8883abde9356b92d807e&amp;type=3#player_panel" />
<Style src="project://database/Assets/UI%20Toolkit/player_panel.uss?fileID=7433441132597879392&amp;guid=102b2cb1b84d8883abde9356b92d807e&amp;type=3#player_panel" /> <Style src="project://database/Assets/UI/Styles/global.uss?fileID=7433441132597879392&amp;guid=f6d2ff1ab9bcd826f88710e642615fa6&amp;type=3#global" />
<ui:Label text="←" display-tooltip-when-elided="true" name="go_left" class="go" /> <ui:Label text="←" display-tooltip-when-elided="true" name="go_left" class="go" />
<ui:VisualElement class="mods_list" /> <ui:VisualElement class="mods_list" />
<ui:Label display-tooltip-when-elided="true" name="score" binding-path="m_Score" /> <ui:Label display-tooltip-when-elided="true" name="score" binding-path="m_Score" />

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d5cea8c79a99ef547b550384d302a4e2
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -0,0 +1,3 @@
* {
color: rgb(200, 200, 200);
}

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f6d2ff1ab9bcd826f88710e642615fa6
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
disableValidation: 0

@ -2,10 +2,6 @@
--background-color: rgb(80, 80, 80); --background-color: rgb(80, 80, 80);
} }
* {
color: rgb(200, 200, 200);
}
Button { Button {
margin-right: 10px; margin-right: 10px;
margin-top: 5px; margin-top: 5px;
@ -28,6 +24,7 @@ Button {
border-right-width: 3px; border-right-width: 3px;
border-top-width: 3px; border-top-width: 3px;
border-bottom-width: 3px; border-bottom-width: 3px;
font-size: 25px;
} }
Button:active { Button:active {

@ -4,3 +4,4 @@
- Score number rotation - Score number rotation
### Menu ### Menu
-

Loading…
Cancel
Save