Added tooltips for all existing parameters

This commit is contained in:
Carson Kompon
2022-03-01 16:37:17 -05:00
parent 6a43469056
commit 8704daf8f9
2 changed files with 46 additions and 40 deletions

View File

@ -85,15 +85,16 @@ namespace RhythmHeavenMania.Editor
object param = action.parameters[i].parameter;
string caption = action.parameters[i].propertyCaption;
string propertyName = action.parameters[i].propertyName;
string tooltip = action.parameters[i].tooltip;
AddParam(propertyName, param, caption);
AddParam(propertyName, param, caption, tooltip);
}
active = true;
}
}
private void AddParam(string propertyName, object type, string caption)
private void AddParam(string propertyName, object type, string caption, string tooltip = "")
{
GameObject prefab = IntegerP;
@ -125,6 +126,11 @@ namespace RhythmHeavenMania.Editor
input.SetActive(true);
input.transform.localScale = Vector2.one;
if(tooltip != "")
{
Tooltip.AddTooltip(input, "", tooltip);
}
var property = input.GetComponent<EventPropertyPrefab>();
property.SetProperties(propertyName, type, caption);
}