forked from Shardstone/trail-into-darkness
added the charater creation view base functionality
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using Jovian.InspectorTools;
|
||||
using Jovian.Logger;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
29
Assets/Code/GameState/UI/CharacterCreationView.cs
Normal file
29
Assets/Code/GameState/UI/CharacterCreationView.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Assets/Code/GameState/UI/CharacterCreationView.cs.meta
Normal file
3
Assets/Code/GameState/UI/CharacterCreationView.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 555173dcbeb04c44b6f02f04fb1cb762
|
||||
timeCreated: 1775381234
|
||||
Reference in New Issue
Block a user