Fixed dungeon thumbnail to better fit in view
This commit is contained in:
parent
aeeb15cb12
commit
ac10c8a2fc
3 changed files with 7 additions and 2 deletions
|
|
@ -28,7 +28,6 @@ public class DungeonSelectMenuController : MonoBehaviour
|
|||
_start = root.Q<Button>("Start");
|
||||
_start.clicked += StartClicked;
|
||||
_dungeonName = root.Q<Label>("DungeonName");
|
||||
|
||||
|
||||
GameEvents.ShowingDungeon += ShowDungeon;
|
||||
GameEvents.ShowingFirstDugeon += () => SetPreviousButtonEnabled(false);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
|
||||
<Style src="project://database/Assets/UI/Styles/style1.uss?fileID=7433441132597879392&guid=97546bb1d1d93d84e9b4ef0c8ae11a0e&type=3#style1" />
|
||||
<ui:VisualElement name="Base" style="flex-grow: 1; height: auto; flex-direction: row; align-items: stretch; justify-content: space-between;">
|
||||
<ui:VisualElement name="DungeonThumbnail" picking-mode="Ignore" style="flex-grow: 1; position: absolute; width: 100%; height: 100%;" />
|
||||
<ui:VisualElement name="DungeonThumbnail" picking-mode="Ignore" style="flex-grow: 1; position: absolute; width: 67%; height: 100%; right: 0; top: 0;" />
|
||||
<ui:VisualElement name="Menu" style="flex-grow: 1; width: 33%; background-color: rgb(56, 56, 56); bottom: 0; top: 0; position: relative; left: 0; max-width: 33%;">
|
||||
<ui:Label text="Dungeon Name" name="DungeonName" class="MenuHeader MenuHTwo" style="-unity-text-align: upper-center; color: rgb(255, 255, 255);" />
|
||||
<ui:VisualElement style="flex-grow: 1;">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue