display action real name in aproppriate places

- make text on entities larger
- fix bug with enum properties
- show beat of editing entity when viewing properties
This commit is contained in:
minenice55
2022-08-20 23:54:09 -04:00
parent 647a2a0d19
commit cf2850ccb1
5 changed files with 16 additions and 13 deletions

View File

@ -505,9 +505,11 @@ namespace HeavenStudio.Editor.Track
public TimelineEventObj AddEventObject(string eventName, bool dragNDrop = false, Vector3 pos = new Vector3(), Beatmap.Entity entity = null, bool addEvent = false, string eventId = "")
{
var game = EventCaller.instance.GetMinigame(eventName.Split(0));
var action = EventCaller.instance.GetGameAction(game, eventName.Split(1));
GameObject g = Instantiate(TimelineEventObjRef.gameObject, TimelineEventObjRef.parent);
g.transform.localPosition = pos;
g.transform.GetChild(3).GetComponent<TMP_Text>().text = eventName.Split('/')[1];
g.transform.GetChild(3).GetComponent<TMP_Text>().text = action.displayName;
TimelineEventObj eventObj = g.GetComponent<TimelineEventObj>();
@ -572,9 +574,8 @@ namespace HeavenStudio.Editor.Track
tempEntity = en;
// default param value
var game = EventCaller.instance.GetMinigame(eventName.Split(0));
var ep = EventCaller.instance.GetGameAction(game, eventName.Split(1)).parameters;
// default param values
var ep = action.parameters;
if (ep != null)
{