Skip to content
Snippets Groups Projects
Commit 8caa879a authored by Horváth István's avatar Horváth István
Browse files

Tweak element heights on simulation UI

parent 75ad56fb
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
......@@ -6,7 +6,7 @@
<ui:VisualElement name="VisualElement" class="ContainerStyle">
<ui:VisualElement class="ColumnContainer">
<ui:VisualElement name="GameView" class="GameViewStyle" />
<ui:VisualElement name="BottomPanel" class="BottomPanelStyle" style="align-items: stretch; justify-content: space-between; flex-direction: row; height: 120px; background-color: rgba(238, 238, 238, 0.15);">
<ui:VisualElement name="BottomPanel" class="BottomPanelStyle" style="align-items: stretch; justify-content: space-between; flex-direction: row; height: 135px; background-color: rgba(238, 238, 238, 0.15); flex-shrink: 0;">
<ui:VisualElement style="flex-direction: row; flex-grow: 1;">
<ui:VisualElement name="PlayerRedOverallStats" style="flex-grow: 1; height: 100%; padding-left: 12px; padding-right: 12px;">
<ui:Label text="Player Red Stats" display-tooltip-when-elided="true" style="flex-shrink: 1; font-size: 18px; -unity-font-style: bold;" />
......@@ -52,7 +52,7 @@
</ui:VisualElement>
</ui:VisualElement>
</ui:ScrollView>
<ui:VisualElement name="ButtonContainer" class="NextButtonStyle" style="flex-grow: 0; flex-shrink: 0; position: relative; left: auto; right: auto; bottom: auto; border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-top-width: 0; border-left-width: 0; height: 155px; border-right-width: 0; border-bottom-width: 0;">
<ui:VisualElement name="ButtonContainer" class="NextButtonStyle" style="flex-grow: 0; flex-shrink: 0; position: relative; left: auto; right: auto; bottom: auto; border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-top-width: 0; border-left-width: 0; height: 175px; border-right-width: 0; border-bottom-width: 0;">
<ui:Button text="PAUSE" display-tooltip-when-elided="true" name="Pause" class="button" style="bottom: auto; position: relative; border-top-left-radius: 8px; border-bottom-left-radius: 8px; border-top-right-radius: 8px; border-bottom-right-radius: 8px; margin-left: 12px; margin-right: 12px; margin-top: 12px; margin-bottom: 12px; flex-grow: 1; font-size: 32px; display: flex;" />
<ui:Button text="EXIT" display-tooltip-when-elided="true" name="Exit" class="button" style="bottom: auto; position: relative; border-top-left-radius: 8px; border-bottom-left-radius: 8px; border-top-right-radius: 8px; border-bottom-right-radius: 8px; margin-left: 12px; margin-right: 12px; margin-top: 12px; margin-bottom: 12px; flex-grow: 1; font-size: 32px; display: none;" />
</ui:VisualElement>
......
......@@ -5,7 +5,7 @@
<ui:VisualElement name="VisualElement" class="ContainerStyle">
<ui:VisualElement class="ColumnContainer">
<ui:VisualElement name="GameView" class="GameViewStyle" />
<ui:VisualElement name="BottomPanel" class="BottomPanelStyle" style="flex-shrink: 0; height: 75px;" />
<ui:VisualElement name="BottomPanel" class="BottomPanelStyle" style="flex-shrink: 0; height: 135px;" />
</ui:VisualElement>
<ui:VisualElement name="TopPanel" class="TopPanelStyle">
<ui:ScrollView scroll-deceleration-rate="0,135" elasticity="0,1" vertical-scroller-visibility="Hidden" horizontal-scroller-visibility="Hidden" style="flex-grow: 1; padding-left: 8px; padding-right: 8px; padding-top: 8px; padding-bottom: 8px;">
......@@ -41,7 +41,7 @@
<ui:Label text="Select a tower type to place" display-tooltip-when-elided="true" name="InstructionsText" style="white-space: normal; display: none;" />
</ui:VisualElement>
</ui:ScrollView>
<ui:VisualElement name="NextButtonContainer" class="NextButtonStyle" style="left: auto; right: auto; bottom: auto; flex-direction: row; align-items: stretch; justify-content: space-around; flex-grow: 0; position: relative; flex-shrink: 0; height: 155px;">
<ui:VisualElement name="NextButtonContainer" class="NextButtonStyle" style="left: auto; right: auto; bottom: auto; flex-direction: row; align-items: stretch; justify-content: space-around; flex-grow: 0; position: relative; flex-shrink: 0; height: 175px;">
<ui:Button text="NEXT" display-tooltip-when-elided="true" name="Next" class="button" style="border-top-left-radius: 8px; border-bottom-left-radius: 8px; border-top-right-radius: 8px; border-bottom-right-radius: 8px; margin-left: 12px; margin-right: 12px; margin-top: 12px; margin-bottom: 12px; flex-grow: 1; font-size: 32px;" />
</ui:VisualElement>
</ui:VisualElement>
......
......@@ -4,10 +4,10 @@
<ui:VisualElement name="VisualElement" class="ContainerStyle">
<ui:VisualElement class="ColumnContainer">
<ui:VisualElement name="GameView" class="GameViewStyle" />
<ui:VisualElement name="BottomPanel" class="BottomPanelStyle" style="flex-shrink: 0; height: 75px;" />
<ui:VisualElement name="BottomPanel" class="BottomPanelStyle" style="flex-shrink: 0; height: 135px;" />
</ui:VisualElement>
<ui:VisualElement name="TopPanel" class="TopPanelStyle" style="flex-shrink: 0; padding-left: 8px; padding-right: 8px; padding-top: 8px; padding-bottom: 8px;">
<ui:VisualElement name="NextButtonContainer" class="NextButtonStyle buttons" style="flex-shrink: 0; height: 155px;">
<ui:VisualElement name="NextButtonContainer" class="NextButtonStyle buttons" style="flex-shrink: 0; height: 175px;">
<ui:Button text="NEXT" display-tooltip-when-elided="true" name="Next" class="button" style="bottom: auto; position: relative; border-top-left-radius: 8px; border-bottom-left-radius: 8px; border-top-right-radius: 8px; border-bottom-right-radius: 8px; margin-left: 12px; margin-right: 12px; margin-top: 12px; margin-bottom: 12px; flex-grow: 1; font-size: 32px; background-color: rgba(255, 255, 255, 0.75);" />
</ui:VisualElement>
<ui:Label text="Deploy Units" display-tooltip-when-elided="true" class="TitleStyle" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment