i dont exactly know what im doing wrong lmao
This commit is contained in:
parent
a92f3bb0de
commit
70a48f07a0
|
@ -19841,7 +19841,7 @@ MonoBehaviour:
|
||||||
m_TargetGraphic: {fileID: 1589389272}
|
m_TargetGraphic: {fileID: 1589389272}
|
||||||
m_HandleRect: {fileID: 1589389271}
|
m_HandleRect: {fileID: 1589389271}
|
||||||
m_Direction: 2
|
m_Direction: 2
|
||||||
m_Value: 0
|
m_Value: 1
|
||||||
m_Size: 1
|
m_Size: 1
|
||||||
m_NumberOfSteps: 0
|
m_NumberOfSteps: 0
|
||||||
m_OnValueChanged:
|
m_OnValueChanged:
|
||||||
|
@ -25461,7 +25461,7 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0.5}
|
m_AnchorMin: {x: 0, y: 0.5}
|
||||||
m_AnchorMax: {x: 1, y: 0.5}
|
m_AnchorMax: {x: 1, y: 0.5}
|
||||||
m_AnchoredPosition: {x: 0, y: 129.84087}
|
m_AnchoredPosition: {x: 0, y: 129.84053}
|
||||||
m_SizeDelta: {x: 0, y: 0}
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
m_Pivot: {x: 0.5, y: 1}
|
m_Pivot: {x: 0.5, y: 1}
|
||||||
--- !u!114 &1154875944
|
--- !u!114 &1154875944
|
||||||
|
@ -27567,7 +27567,8 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: dfd9c4dee49957d4da897e02634ce6db, type: 3}
|
m_Script: {fileID: 11500000, guid: dfd9c4dee49957d4da897e02634ce6db, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
content: {fileID: 31952711}
|
content: {fileID: 1425536042}
|
||||||
|
inputFieldString: {fileID: 1425536044}
|
||||||
--- !u!1 &1254178913
|
--- !u!1 &1254178913
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
@ -20,37 +20,7 @@ namespace HeavenStudio.Properties
|
||||||
public bool editingInputField = false;
|
public bool editingInputField = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class PropManager : MonoBehaviour
|
|
||||||
{
|
|
||||||
[Header("Property Prefabs")]
|
|
||||||
[SerializeField] private GameObject IntegerP;
|
|
||||||
[SerializeField] private GameObject FloatP;
|
|
||||||
[SerializeField] private GameObject BooleanP;
|
|
||||||
[SerializeField] private GameObject DropdownP;
|
|
||||||
[SerializeField] private GameObject ColorP;
|
|
||||||
[SerializeField] private GameObject StringP;
|
|
||||||
|
|
||||||
public Beatmap.Entity entity;
|
|
||||||
|
|
||||||
public bool active;
|
|
||||||
|
|
||||||
private int childCountAtStart;
|
|
||||||
|
|
||||||
public bool canDisable = true;
|
|
||||||
|
|
||||||
public static PropManager instance { get; set; }
|
|
||||||
|
|
||||||
private void Awake()
|
|
||||||
{
|
|
||||||
instance = this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Start()
|
|
||||||
{
|
|
||||||
childCountAtStart = transform.childCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class Properties
|
public class Properties
|
||||||
|
@ -62,24 +32,6 @@ namespace HeavenStudio.Properties
|
||||||
public string levelCreator = "";
|
public string levelCreator = "";
|
||||||
public int Number;
|
public int Number;
|
||||||
|
|
||||||
public object this[string propertyName]
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return typeof(Properties).GetField(propertyName).GetValue(this);
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
typeof(Properties).GetField(propertyName).SetValue(this, value);
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
UnityEngine.Debug.LogError($"You probably misspelled a parameter, or defined the object type wrong. Exception log: {ex}");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class PropController
|
public class PropController
|
||||||
|
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
using HeavenStudio.Util;
|
using HeavenStudio.Util;
|
||||||
|
using TMPro;
|
||||||
|
|
||||||
namespace HeavenStudio.Properties
|
namespace HeavenStudio.Properties
|
||||||
{
|
{
|
||||||
|
@ -11,11 +12,13 @@ namespace HeavenStudio.Properties
|
||||||
public static RemixName instance { get; private set; } = new RemixName();
|
public static RemixName instance { get; private set; } = new RemixName();
|
||||||
|
|
||||||
[SerializeField] private GameObject content;
|
[SerializeField] private GameObject content;
|
||||||
|
[SerializeField] private TMP_InputField inputFieldString;
|
||||||
|
|
||||||
public void Refresh(string content)
|
public void Refresh(string content)
|
||||||
{
|
{
|
||||||
Properties.instance.levelName = content;
|
Properties.instance.levelName = content;
|
||||||
Debug.Log(Properties.instance.levelName);
|
Debug.Log(Properties.instance.levelName);
|
||||||
|
inputFieldString.text = (string)(Properties.instance.levelName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue