Implemented dungeon selector
This commit is contained in:
parent
514d985ddb
commit
aeeb15cb12
46 changed files with 26355 additions and 32 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8
PuzzleGameProject/Assets/GameData.meta
Normal file
8
PuzzleGameProject/Assets/GameData.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5054cce1c255a8a4cb7e45c220c2bd2f
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
8
PuzzleGameProject/Assets/GameData/DungeonData.meta
Normal file
8
PuzzleGameProject/Assets/GameData/DungeonData.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1a6b17e34b4130640830f32ce7f557d9
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 6b94e2e73105498fac9021dca1250c4b, type: 3}
|
||||||
|
m_Name: 01_30x30_5_monster
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
DungeonName: Abomination Vault
|
||||||
|
Thumbnail: {fileID: 21300000, guid: 64f388d4f370f6d4db97a9fd30afb6a9, type: 3}
|
||||||
|
SceneName: 01_30x30_5_monster
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: acaf9288bf3a20c41a924587743eba81
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 6b94e2e73105498fac9021dca1250c4b, type: 3}
|
||||||
|
m_Name: 02_30x30_5_monster
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
DungeonName: Tomb of Annihilation
|
||||||
|
Thumbnail: {fileID: 21300000, guid: 2d9ec4bca04e08448924650a381b2041, type: 3}
|
||||||
|
SceneName: 02_30x30_5_monster
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 74afdc22b525eeb43935ac56a2da2b37
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 6b94e2e73105498fac9021dca1250c4b, type: 3}
|
||||||
|
m_Name: 03_30x30_5_monster
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
DungeonName: Descent Into Avernus
|
||||||
|
Thumbnail: {fileID: 21300000, guid: ef152ae0fa820c2429781e262a724da4, type: 3}
|
||||||
|
SceneName: 03_30x30_5_monster
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: be76377cae8ede04ba4523be6e094f17
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
13033
PuzzleGameProject/Assets/Scenes/Dungeons/02_30x30_5_monster.unity
Normal file
13033
PuzzleGameProject/Assets/Scenes/Dungeons/02_30x30_5_monster.unity
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a6c2871e0aa3bab4686a2032a3f9ddf2
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
12362
PuzzleGameProject/Assets/Scenes/Dungeons/03_30x30_5_monster.unity
Normal file
12362
PuzzleGameProject/Assets/Scenes/Dungeons/03_30x30_5_monster.unity
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 944e16592770e88409e2c529a8eb8719
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -119,6 +119,67 @@ NavMeshSettings:
|
||||||
debug:
|
debug:
|
||||||
m_Flags: 0
|
m_Flags: 0
|
||||||
m_NavMeshData: {fileID: 0}
|
m_NavMeshData: {fileID: 0}
|
||||||
|
--- !u!1 &455091936
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 455091938}
|
||||||
|
- component: {fileID: 455091937}
|
||||||
|
- component: {fileID: 455091939}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: DungeonSelector
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!114 &455091937
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 455091936}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: c4e78bf105514ac45bd51d639ef9da5c, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
dungeons:
|
||||||
|
- {fileID: 11400000, guid: acaf9288bf3a20c41a924587743eba81, type: 2}
|
||||||
|
- {fileID: 11400000, guid: 74afdc22b525eeb43935ac56a2da2b37, type: 2}
|
||||||
|
- {fileID: 11400000, guid: be76377cae8ede04ba4523be6e094f17, type: 2}
|
||||||
|
--- !u!4 &455091938
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 455091936}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: -0.55459774, y: 0.25796106, z: 0.0343792}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &455091939
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 455091936}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 9f74d58a6b5f48d4a1f6ef179fb11a76, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
--- !u!1 &830877625
|
--- !u!1 &830877625
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
@ -129,6 +190,7 @@ GameObject:
|
||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 830877627}
|
- component: {fileID: 830877627}
|
||||||
- component: {fileID: 830877626}
|
- component: {fileID: 830877626}
|
||||||
|
- component: {fileID: 830877628}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: UIDocument
|
m_Name: UIDocument
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
|
|
@ -170,6 +232,18 @@ Transform:
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &830877628
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 830877625}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 1c6d26f9a8f2855469ad6ac0874795b1, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
--- !u!1 &1250110425
|
--- !u!1 &1250110425
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
@ -268,3 +342,4 @@ SceneRoots:
|
||||||
m_Roots:
|
m_Roots:
|
||||||
- {fileID: 1250110428}
|
- {fileID: 1250110428}
|
||||||
- {fileID: 830877627}
|
- {fileID: 830877627}
|
||||||
|
- {fileID: 455091938}
|
||||||
|
|
|
||||||
8
PuzzleGameProject/Assets/Scripts/DungeonSelection.meta
Normal file
8
PuzzleGameProject/Assets/Scripts/DungeonSelection.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2f4c19280d2064843b2287e1ac1b5b0c
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
|
||||||
|
namespace DungeonSelection
|
||||||
|
{
|
||||||
|
[CreateAssetMenu(fileName = "New Dungeon", menuName = "Dungeon")]
|
||||||
|
public class DungeonData : ScriptableObject
|
||||||
|
{
|
||||||
|
public string DungeonName;
|
||||||
|
public Sprite Thumbnail;
|
||||||
|
public string SceneName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6b94e2e73105498fac9021dca1250c4b
|
||||||
|
timeCreated: 1740990047
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
using System;
|
||||||
|
using Unity.VisualScripting;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
|
||||||
|
namespace DungeonSelection
|
||||||
|
{
|
||||||
|
public class DungeonLoader : MonoBehaviour
|
||||||
|
{
|
||||||
|
private void OnEnable()
|
||||||
|
{
|
||||||
|
GameEvents.LoadDungeon += LoadDungeon;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnDisable()
|
||||||
|
{
|
||||||
|
GameEvents.LoadDungeon -= LoadDungeon;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void LoadDungeon(DungeonData dungeonData)
|
||||||
|
{
|
||||||
|
SceneManager.LoadScene(dungeonData.SceneName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9f74d58a6b5f48d4a1f6ef179fb11a76
|
||||||
|
timeCreated: 1740995037
|
||||||
|
|
@ -0,0 +1,69 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.Serialization;
|
||||||
|
|
||||||
|
namespace DungeonSelection
|
||||||
|
{
|
||||||
|
public class DungeonSelector : MonoBehaviour
|
||||||
|
{
|
||||||
|
[SerializeField] private DungeonData[] dungeons;
|
||||||
|
private DungeonData _currentlySelectedDungeonData;
|
||||||
|
private int _currentlySelectedDungeonIndex = 0;
|
||||||
|
|
||||||
|
private void OnEnable()
|
||||||
|
{
|
||||||
|
UIEvents.NextDungeonClicked += SelectNextDungeon;
|
||||||
|
UIEvents.PreviousDungeonClicked += SelectPreviousDungeon;
|
||||||
|
UIEvents.EnterDungeonClicked += LoadDungeon;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnDisable()
|
||||||
|
{
|
||||||
|
UIEvents.NextDungeonClicked -= SelectNextDungeon;
|
||||||
|
UIEvents.PreviousDungeonClicked -= SelectPreviousDungeon;
|
||||||
|
UIEvents.EnterDungeonClicked -= LoadDungeon;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
GameEvents.DungeonSelectionStarted?.Invoke();
|
||||||
|
|
||||||
|
_currentlySelectedDungeonData = dungeons[_currentlySelectedDungeonIndex];
|
||||||
|
GameEvents.ShowingDungeon?.Invoke(_currentlySelectedDungeonData);
|
||||||
|
if (_currentlySelectedDungeonIndex == 0)
|
||||||
|
{
|
||||||
|
GameEvents.ShowingFirstDugeon?.Invoke();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void LoadDungeon(DungeonData dungeon)
|
||||||
|
{
|
||||||
|
GameEvents.LoadDungeon?.Invoke(dungeon);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SelectNextDungeon()
|
||||||
|
{
|
||||||
|
if (_currentlySelectedDungeonIndex + 1 >= dungeons.Length) return;
|
||||||
|
_currentlySelectedDungeonIndex++;
|
||||||
|
_currentlySelectedDungeonData = dungeons[_currentlySelectedDungeonIndex];
|
||||||
|
GameEvents.ShowingDungeon?.Invoke(_currentlySelectedDungeonData);
|
||||||
|
if (_currentlySelectedDungeonIndex == dungeons.Length - 1)
|
||||||
|
{
|
||||||
|
GameEvents.ShowingLastDungeon?.Invoke();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SelectPreviousDungeon()
|
||||||
|
{
|
||||||
|
if (_currentlySelectedDungeonIndex - 1 < 0) return;
|
||||||
|
_currentlySelectedDungeonIndex--;
|
||||||
|
_currentlySelectedDungeonData = dungeons[_currentlySelectedDungeonIndex];
|
||||||
|
GameEvents.ShowingDungeon?.Invoke(_currentlySelectedDungeonData);
|
||||||
|
if (_currentlySelectedDungeonIndex == 0)
|
||||||
|
{
|
||||||
|
GameEvents.ShowingFirstDugeon?.Invoke();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c4e78bf105514ac45bd51d639ef9da5c
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace DungeonSelection
|
||||||
|
{
|
||||||
|
// Announcing in game events
|
||||||
|
public static class GameEvents
|
||||||
|
{
|
||||||
|
public static Action DungeonSelectionStarted;
|
||||||
|
public static Action ShowingLastDungeon;
|
||||||
|
public static Action ShowingFirstDugeon;
|
||||||
|
public static Action<DungeonData> ShowingDungeon;
|
||||||
|
public static Action<DungeonData> LoadDungeon;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d50ab8728586475daa8f20f953be31dd
|
||||||
|
timeCreated: 1740991637
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace DungeonSelection
|
||||||
|
{
|
||||||
|
// Announcing actions taken in UI
|
||||||
|
public static class UIEvents
|
||||||
|
{
|
||||||
|
public static Action NextDungeonClicked;
|
||||||
|
public static Action PreviousDungeonClicked;
|
||||||
|
public static Action<DungeonData> EnterDungeonClicked;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a3f1145923464a0ba0209796e00263d2
|
||||||
|
timeCreated: 1740991548
|
||||||
|
|
@ -0,0 +1,81 @@
|
||||||
|
using System;
|
||||||
|
using DungeonSelection;
|
||||||
|
using Unity.VisualScripting;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.Rendering;
|
||||||
|
using UnityEngine.UIElements;
|
||||||
|
|
||||||
|
public class DungeonSelectMenuController : MonoBehaviour
|
||||||
|
{
|
||||||
|
private Button _next;
|
||||||
|
private Button _previous;
|
||||||
|
private Button _start;
|
||||||
|
private Image _thumbnailImage;
|
||||||
|
private Label _dungeonName;
|
||||||
|
private VisualElement _dungeonThumbnail;
|
||||||
|
|
||||||
|
private DungeonData _currentlyShowingDungeon;
|
||||||
|
|
||||||
|
private void OnEnable()
|
||||||
|
{
|
||||||
|
VisualElement root = GetComponent<UIDocument>().rootVisualElement;
|
||||||
|
|
||||||
|
_dungeonThumbnail = root.Q<VisualElement>("DungeonThumbnail");
|
||||||
|
_next = root.Q<Button>("Next");
|
||||||
|
_next.clicked += NextClicked;
|
||||||
|
_previous = root.Q<Button>("Previous");
|
||||||
|
_previous.clicked += PreviousClicked;
|
||||||
|
_start = root.Q<Button>("Start");
|
||||||
|
_start.clicked += StartClicked;
|
||||||
|
_dungeonName = root.Q<Label>("DungeonName");
|
||||||
|
|
||||||
|
|
||||||
|
GameEvents.ShowingDungeon += ShowDungeon;
|
||||||
|
GameEvents.ShowingFirstDugeon += () => SetPreviousButtonEnabled(false);
|
||||||
|
GameEvents.ShowingLastDungeon += () => SetNextButtonEnabled(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ShowDungeon(DungeonData dungeon)
|
||||||
|
{
|
||||||
|
_currentlyShowingDungeon = dungeon;
|
||||||
|
_dungeonName.text = _currentlyShowingDungeon.DungeonName;
|
||||||
|
|
||||||
|
if (_thumbnailImage == null)
|
||||||
|
{
|
||||||
|
_thumbnailImage = new Image();
|
||||||
|
_thumbnailImage.scaleMode = ScaleMode.ScaleAndCrop;
|
||||||
|
_dungeonThumbnail.Add(_thumbnailImage);
|
||||||
|
}
|
||||||
|
|
||||||
|
_thumbnailImage.image = _currentlyShowingDungeon.Thumbnail.texture;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetPreviousButtonEnabled(bool enabled)
|
||||||
|
{
|
||||||
|
_previous.SetEnabled(enabled);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetNextButtonEnabled(bool enabled)
|
||||||
|
{
|
||||||
|
_next.SetEnabled(enabled);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void NextClicked()
|
||||||
|
{
|
||||||
|
SetPreviousButtonEnabled(true);
|
||||||
|
SetNextButtonEnabled(true);
|
||||||
|
UIEvents.NextDungeonClicked?.Invoke();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PreviousClicked()
|
||||||
|
{
|
||||||
|
SetPreviousButtonEnabled(true);
|
||||||
|
SetNextButtonEnabled(true);
|
||||||
|
UIEvents.PreviousDungeonClicked?.Invoke();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void StartClicked()
|
||||||
|
{
|
||||||
|
UIEvents.EnterDungeonClicked?.Invoke(_currentlyShowingDungeon);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1c6d26f9a8f2855469ad6ac0874795b1
|
||||||
|
|
@ -53,7 +53,7 @@ namespace UI
|
||||||
private Label diamondCount;
|
private Label diamondCount;
|
||||||
|
|
||||||
|
|
||||||
public void OnEnable()
|
private void OnEnable()
|
||||||
{
|
{
|
||||||
VisualElement root = GetComponent<UIDocument>().rootVisualElement;
|
VisualElement root = GetComponent<UIDocument>().rootVisualElement;
|
||||||
|
|
||||||
|
|
|
||||||
8
PuzzleGameProject/Assets/Sprites/DungeonThumbnails.meta
Normal file
8
PuzzleGameProject/Assets/Sprites/DungeonThumbnails.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9d06886eb29c1194b87c9c762f912c1a
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 934 KiB |
|
|
@ -0,0 +1,169 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 64f388d4f370f6d4db97a9fd30afb6a9
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable:
|
||||||
|
- first:
|
||||||
|
213: -1791602245307734453
|
||||||
|
second: Screenshot 2025-03-03 121304_0
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: WebGL
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites:
|
||||||
|
- serializedVersion: 2
|
||||||
|
name: Screenshot 2025-03-03 121304_0
|
||||||
|
rect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 1394
|
||||||
|
height: 932
|
||||||
|
alignment: 0
|
||||||
|
pivot: {x: 0, y: 0}
|
||||||
|
border: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
customData:
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
tessellationDetail: -1
|
||||||
|
bones: []
|
||||||
|
spriteID: b46e3ad0043f227e0800000000000000
|
||||||
|
internalID: -1791602245307734453
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
outline: []
|
||||||
|
customData:
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spriteCustomMetadata:
|
||||||
|
entries: []
|
||||||
|
nameFileIdTable:
|
||||||
|
Screenshot 2025-03-03 121304_0: -1791602245307734453
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.3 MiB |
|
|
@ -0,0 +1,169 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2d9ec4bca04e08448924650a381b2041
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable:
|
||||||
|
- first:
|
||||||
|
213: 6937817954938267909
|
||||||
|
second: 2_0
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: WebGL
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites:
|
||||||
|
- serializedVersion: 2
|
||||||
|
name: 2_0
|
||||||
|
rect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 1530
|
||||||
|
height: 977
|
||||||
|
alignment: 0
|
||||||
|
pivot: {x: 0, y: 0}
|
||||||
|
border: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
customData:
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
tessellationDetail: -1
|
||||||
|
bones: []
|
||||||
|
spriteID: 5092c600ca4184060800000000000000
|
||||||
|
internalID: 6937817954938267909
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
outline: []
|
||||||
|
customData:
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spriteCustomMetadata:
|
||||||
|
entries: []
|
||||||
|
nameFileIdTable:
|
||||||
|
2_0: 6937817954938267909
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.3 MiB |
|
|
@ -0,0 +1,169 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ef152ae0fa820c2429781e262a724da4
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable:
|
||||||
|
- first:
|
||||||
|
213: -6470460504253458178
|
||||||
|
second: 3_0
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 4
|
||||||
|
buildTarget: WebGL
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites:
|
||||||
|
- serializedVersion: 2
|
||||||
|
name: 3_0
|
||||||
|
rect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 1624
|
||||||
|
height: 1022
|
||||||
|
alignment: 0
|
||||||
|
pivot: {x: 0, y: 0}
|
||||||
|
border: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
customData:
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
tessellationDetail: -1
|
||||||
|
bones: []
|
||||||
|
spriteID: ef817ce047e4436a0800000000000000
|
||||||
|
internalID: -6470460504253458178
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
outline: []
|
||||||
|
customData:
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
spriteCustomMetadata:
|
||||||
|
entries: []
|
||||||
|
nameFileIdTable:
|
||||||
|
3_0: -6470460504253458178
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
|
<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" />
|
<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="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="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: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: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;">
|
<ui:VisualElement style="flex-grow: 1;">
|
||||||
|
|
@ -9,9 +10,10 @@
|
||||||
</ui:VisualElement>
|
</ui:VisualElement>
|
||||||
</ui:VisualElement>
|
</ui:VisualElement>
|
||||||
<ui:VisualElement name="DungeonView" style="right: 0; top: 0; align-self: stretch; justify-content: space-between; flex-direction: column-reverse; flex-grow: 1; position: relative; flex-shrink: 1; bottom: 0; align-items: stretch;">
|
<ui:VisualElement name="DungeonView" style="right: 0; top: 0; align-self: stretch; justify-content: space-between; flex-direction: column-reverse; flex-grow: 1; position: relative; flex-shrink: 1; bottom: 0; align-items: stretch;">
|
||||||
<ui:VisualElement name="BottomBar" style="flex-grow: 1; bottom: 0; align-self: stretch; flex-direction: row; align-items: flex-end; justify-content: space-between;">
|
<ui:VisualElement name="BottomBar" style="flex-grow: 0; bottom: 0; align-self: stretch; flex-direction: row; align-items: flex-end; justify-content: space-between;">
|
||||||
<ui:Button text="Prev" name="Previous" />
|
<ui:Button text="Prev" name="Previous" class="button border" />
|
||||||
<ui:Button text="Next" name="Next" style="-unity-text-align: middle-left;" />
|
<ui:Button text="Start" name="Start" class="button border" style="-unity-text-align: middle-left;" />
|
||||||
|
<ui:Button text="Next" name="Next" class="button border" style="-unity-text-align: middle-left;" />
|
||||||
</ui:VisualElement>
|
</ui:VisualElement>
|
||||||
</ui:VisualElement>
|
</ui:VisualElement>
|
||||||
</ui:VisualElement>
|
</ui:VisualElement>
|
||||||
|
|
|
||||||
|
|
@ -6,14 +6,6 @@
|
||||||
border-bottom-color: rgb(0, 0, 0);
|
border-bottom-color: rgb(0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.BottonLine {
|
|
||||||
border-bottom-width: 2px;
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
.CheckBox {
|
.CheckBox {
|
||||||
border-top-width: 1px;
|
border-top-width: 1px;
|
||||||
border-right-width: 1px;
|
border-right-width: 1px;
|
||||||
|
|
|
||||||
|
|
@ -29,21 +29,6 @@
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.border {
|
|
||||||
border-top-width: 2px;
|
|
||||||
border-right-width: 2px;
|
|
||||||
border-bottom-width: 2px;
|
|
||||||
border-left-width: 2px;
|
|
||||||
border-top-left-radius: 7px;
|
|
||||||
border-top-right-radius: 7px;
|
|
||||||
border-bottom-right-radius: 7px;
|
|
||||||
border-bottom-left-radius: 7px;
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
.margin {
|
.margin {
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,21 @@
|
||||||
border-bottom-left-radius: 0;
|
border-bottom-left-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.border {
|
||||||
|
border-top-width: 2px;
|
||||||
|
border-right-width: 2px;
|
||||||
|
border-bottom-width: 2px;
|
||||||
|
border-left-width: 2px;
|
||||||
|
border-top-left-radius: 7px;
|
||||||
|
border-top-right-radius: 7px;
|
||||||
|
border-bottom-right-radius: 7px;
|
||||||
|
border-bottom-left-radius: 7px;
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
border-left-color: rgb(0, 0, 0);
|
border-left-color: rgb(0, 0, 0);
|
||||||
border-right-color: rgb(0, 0, 0);
|
border-right-color: rgb(0, 0, 0);
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,12 @@ EditorBuildSettings:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Scenes:
|
m_Scenes:
|
||||||
- enabled: 0
|
|
||||||
path: Assets/Scenes/SampleScene.unity
|
|
||||||
guid: 8c9cfa26abfee488c85f1582747f6a02
|
|
||||||
- enabled: 1
|
- enabled: 1
|
||||||
path: Assets/Scenes/Level_0.unity
|
path: Assets/Scenes/Start.unity
|
||||||
guid: 1c4a8150d6516c448bd8cb321ade78e5
|
guid: 687d5b51b96968f4da5390adbe6fd99d
|
||||||
|
- enabled: 1
|
||||||
|
path: Assets/Scenes/Dungeons/01_30x30_5_monster.unity
|
||||||
|
guid: 3a70533bacac8d843b6716c71b72367a
|
||||||
m_configObjects:
|
m_configObjects:
|
||||||
com.unity.adaptiveperformance.simulator.provider_settings: {fileID: 11400000, guid: 637a70289c0f8ea44905373a80508625, type: 2}
|
com.unity.adaptiveperformance.simulator.provider_settings: {fileID: 11400000, guid: 637a70289c0f8ea44905373a80508625, type: 2}
|
||||||
com.unity.input.settings.actions: {fileID: -944628639613478452, guid: 2bcd2660ca9b64942af0de543d8d7100, type: 3}
|
com.unity.input.settings.actions: {fileID: -944628639613478452, guid: 2bcd2660ca9b64942af0de543d8d7100, type: 3}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue