added the charater creation view base functionality

This commit is contained in:
Sebastian Bularca
2026-04-05 12:00:01 +02:00
parent dbac327993
commit 1ec734d033
8 changed files with 84 additions and 24 deletions

View File

@@ -1,4 +1,3 @@
using Jovian.InspectorTools;
using Jovian.Logger;
using System;
using System.Collections.Generic;

View File

@@ -2,27 +2,30 @@ using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class CharacterCreationReference : MonoBehaviour {
public Canvas canvas;
//top
public Button backButton;
public Button settingsButton;
namespace Nox.UI {
public class CharacterCreationReference : MonoBehaviour {
public Canvas canvas;
//left
public TMP_Dropdown raceDropdown;
public TMP_Dropdown classDropdown;
public TMP_Dropdown perksDropdown;
public AttributeReference[] attributeReference;
public StatReference[] statReference;
//top
public Button backButton;
public Button settingsButton;
//center
public Button backButtonCenter;
public Button acceptButton;
//left
public TMP_Dropdown raceDropdown;
public TMP_Dropdown classDropdown;
public TMP_Dropdown perksDropdown;
public AttributeReference[] attributeReference;
public StatReference[] statReference;
//right
public Image portraitImage;
public Button portraitSelectionLeftButton;
public Button portraitSelectionRightButton;
public TMP_InputField nameInputField;
public Button startGameButton;
//center
public Button backButtonCenter;
public Button acceptButton;
//right
public Image portraitImage;
public Button portraitSelectionLeftButton;
public Button portraitSelectionRightButton;
public TMP_InputField nameInputField;
public Button startGameButton;
}
}

View File

@@ -0,0 +1,29 @@
using Nox.Core;
using Nox.Game.UI;
namespace Nox.UI {
public class CharacterCreationView : IMenuView {
// we need prefab reference from the menu view, character creation data, save system, modifier calculation, gamemode state to start the game
// party creation data/system,
public CharacterCreationView(CharacterCreationReference characterCreationReference, MenuGameStateData menuGameStateData) {
characterCreationReference.startGameButton.onClick.AddListener(() => menuGameStateData.startGameRequests?.Invoke(PlayMode.Adventure));
}
public void Initialize() {
throw new System.NotImplementedException();
}
public void Tick() {
throw new System.NotImplementedException();
}
public void Show() {
throw new System.NotImplementedException();
}
public void Hide() {
throw new System.NotImplementedException();
}
public void Dispose() {
throw new System.NotImplementedException();
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 555173dcbeb04c44b6f02f04fb1cb762
timeCreated: 1775381234