Fixed dungeon thumbnail to better fit in view

This commit is contained in:
Max 2025-03-03 16:32:58 +01:00
parent aeeb15cb12
commit ac10c8a2fc
3 changed files with 7 additions and 2 deletions

View file

@ -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);

View file

@ -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&amp;guid=97546bb1d1d93d84e9b4ef0c8ae11a0e&amp;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;">

View file

@ -11,6 +11,12 @@ EditorBuildSettings:
- enabled: 1
path: Assets/Scenes/Dungeons/01_30x30_5_monster.unity
guid: 3a70533bacac8d843b6716c71b72367a
- enabled: 1
path: Assets/Scenes/Dungeons/02_30x30_5_monster.unity
guid: a6c2871e0aa3bab4686a2032a3f9ddf2
- enabled: 1
path: Assets/Scenes/Dungeons/03_30x30_5_monster.unity
guid: 944e16592770e88409e2c529a8eb8719
m_configObjects:
com.unity.adaptiveperformance.simulator.provider_settings: {fileID: 11400000, guid: 637a70289c0f8ea44905373a80508625, type: 2}
com.unity.input.settings.actions: {fileID: -944628639613478452, guid: 2bcd2660ca9b64942af0de543d8d7100, type: 3}