mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 12:17:37 +02:00
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:
@ -78,7 +78,7 @@ namespace HeavenStudio.Editor
|
||||
eventSelector.SetActive(false);
|
||||
this.entity = entity;
|
||||
|
||||
Editor.instance.SetGameEventTitle($"Properties for {entity.datamodel}");
|
||||
Editor.instance.SetGameEventTitle($"Properties for {entity.datamodel} at beat {entity.beat}");
|
||||
|
||||
DestroyParams();
|
||||
|
||||
|
@ -172,7 +172,9 @@ namespace HeavenStudio.Editor
|
||||
dropdown.value = selected;
|
||||
|
||||
dropdown.onValueChanged.AddListener(_ =>
|
||||
parameterManager.entity[propertyName] = Enum.ToObject(enumType, dropdown.value)
|
||||
{
|
||||
parameterManager.entity[propertyName] = (int) enumVals.GetValue(dropdown.value);
|
||||
}
|
||||
);
|
||||
break;
|
||||
|
||||
|
@ -140,7 +140,7 @@ namespace HeavenStudio.Editor
|
||||
if (!EventCaller.FXOnlyGames().Contains(EventCaller.instance.GetMinigame(mg.name)))
|
||||
{
|
||||
GameObject sg = Instantiate(EventRef, eventsParent);
|
||||
sg.GetComponent<TMP_Text>().text = "switchGame";
|
||||
sg.GetComponent<TMP_Text>().text = "Switch Game";
|
||||
sg.SetActive(true);
|
||||
sg.GetComponent<TMP_Text>().color = EditorTheme.theme.properties.EventSelectedCol.Hex2RGB();
|
||||
}
|
||||
@ -149,7 +149,7 @@ namespace HeavenStudio.Editor
|
||||
{
|
||||
if (mg.actions[i].actionName == "switchGame" || mg.actions[i].hidden) continue;
|
||||
GameObject g = Instantiate(EventRef, eventsParent);
|
||||
g.GetComponent<TMP_Text>().text = mg.actions[i].actionName;
|
||||
g.GetComponent<TMP_Text>().text = mg.actions[i].displayName;
|
||||
g.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user