mirror of
https://github.com/ppy/osu-tools.git
synced 2025-06-09 17:44:46 +09:00
Use Bindable for the container's info dictionary
This commit is contained in:
parent
ec480adde8
commit
a00657bc67
4 changed files with 64 additions and 37 deletions
|
@ -34,7 +34,7 @@ namespace PerformanceCalculatorGUI.Screens.ObjectInspection
|
|||
: base(ruleset, beatmap, mods)
|
||||
{
|
||||
difficultyHitObjects = difficultyCalculator.GetDifficultyHitObjects(beatmap, clockRate)
|
||||
.Select(x => (CatchDifficultyHitObject)x).ToArray();
|
||||
.Cast<CatchDifficultyHitObject>().ToArray();
|
||||
focusedDiffHitBind = diffHitBind;
|
||||
focusedDiffHitBind.ValueChanged += (ValueChangedEvent<DifficultyHitObject> newHit) => UpdateDebugList(debugValueList, newHit.NewValue);
|
||||
}
|
||||
|
@ -62,11 +62,15 @@ namespace PerformanceCalculatorGUI.Screens.ObjectInspection
|
|||
if (curDiffHit == null) return;
|
||||
|
||||
CatchDifficultyHitObject catchDiffHit = (CatchDifficultyHitObject)curDiffHit;
|
||||
|
||||
string groupName = catchDiffHit.BaseObject.GetType().Name;
|
||||
valueList.AddGroup(groupName, new string[] { "Fruit", "Droplet" });
|
||||
valueList.SetValue(groupName, "Strain Time", catchDiffHit.StrainTime);
|
||||
valueList.SetValue(groupName, "Normalized Position", catchDiffHit.NormalizedPosition);
|
||||
valueList.UpdateValues();
|
||||
|
||||
Dictionary<string, Dictionary<string, object>> infoDict = valueList.InfoDictionary.Value;
|
||||
infoDict[groupName] = new Dictionary<string, object> {
|
||||
{ "Strain Time", catchDiffHit.StrainTime },
|
||||
{ "Normalized Position", catchDiffHit.NormalizedPosition },
|
||||
};
|
||||
}
|
||||
|
||||
private partial class CatchObjectInspectorPlayfield : CatchEditorPlayfield
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue