Implemented How To Play Pop up on start

This commit is contained in:
Max 2025-03-06 12:12:13 +01:00
parent 5fd3e5bc73
commit c103ffb339
20 changed files with 558 additions and 24 deletions

View file

@ -20,6 +20,8 @@ public class DungeonSelectMenuController : MonoBehaviour
{
VisualElement root = GetComponent<UIDocument>().rootVisualElement;
Button rules = root.Q<Button>("Rules");
rules.clicked += UIEvents.ShowRules;
_dungeonThumbnail = root.Q<VisualElement>("DungeonThumbnail");
_next = root.Q<Button>("Next");
_next.clicked += NextClicked;

View file

@ -0,0 +1,22 @@
using System;
using DungeonSelection;
using UnityEngine;
using UnityEngine.UIElements;
public class RulesPageController : MonoBehaviour
{
private void OnEnable()
{
UIEvents.CloseRules += Close;
VisualElement root = GetComponent<UIDocument>().rootVisualElement;
Button close = root.Q<Button>("Close");
close.clicked += Close;
}
private void Close()
{
gameObject.SetActive(false);
}
}

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 2a5aa3e2c35674149847602fe21313a4