mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-14 13:45:10 +00:00
3984c8353f
* fix game view alpha issues * fix right-clicking on parameter-less entity locking event selection * reduce ram use of rendertextures * fix missing sprite references fix cheer readers sprite masks not working * fix lockstep rendering discrepancy * fix section medal toggle not matching described behaviour in UI * fix game settings masking issue * dj school "Scratchy Music" toggle on by default * import new sheets for fan club, mahou tsukai * make dj school audio FX persist between game change * make one shot sounds not create extra objects when not needed * fix potential issue with new one shots * make string properties apply changes for every keystroke
44 lines
No EOL
1.2 KiB
C#
44 lines
No EOL
1.2 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using System;
|
|
using System.Linq;
|
|
using TMPro;
|
|
using Starpelly;
|
|
|
|
using HeavenStudio.Util;
|
|
using HeavenStudio.Editor;
|
|
|
|
namespace HeavenStudio.Editor
|
|
{
|
|
public class StringChartPropertyPrefab : RemixPropertyPrefab
|
|
{
|
|
[Header("String")] //why wasn't this a thing before
|
|
[Space(10)]
|
|
public TMP_InputField inputFieldString;
|
|
|
|
new public void SetProperties(RemixPropertiesDialog diag, string propertyName, object type, string caption)
|
|
{
|
|
InitProperties(diag, propertyName, caption);
|
|
|
|
inputFieldString.text = (string) parameterManager.chart[propertyName];
|
|
|
|
inputFieldString.onSelect.AddListener(
|
|
_ =>
|
|
Editor.instance.editingInputField = true
|
|
);
|
|
inputFieldString.onValueChanged.AddListener(
|
|
_ =>
|
|
{;
|
|
parameterManager.chart[propertyName] = inputFieldString.text;
|
|
Editor.instance.editingInputField = false;
|
|
}
|
|
);
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
}
|
|
}
|
|
} |