mirror of
https://github.com/ppy/osu-tools.git
synced 2025-06-08 07:17:01 +09:00
Fix various inspections
This commit is contained in:
parent
256d10f96c
commit
39857a4f2c
9 changed files with 20 additions and 15 deletions
|
@ -29,7 +29,7 @@ namespace PerformanceCalculatorGUI
|
|||
{
|
||||
var dictionary = ToDictionary(attributes);
|
||||
|
||||
return string.Join("\n", dictionary.Select(x=> $"{x.Key}: {x.Value:N2}"));
|
||||
return string.Join("\n", dictionary.Select(x => $"{x.Key}: {x.Value:N2}"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,7 +32,8 @@ namespace PerformanceCalculatorGUI.Components
|
|||
[Resolved]
|
||||
private LargeTextureStore textures { get; set; }
|
||||
|
||||
public BeatmapCard(ProcessorWorkingBeatmap beatmap) : base(HoverSampleSet.Button)
|
||||
public BeatmapCard(ProcessorWorkingBeatmap beatmap)
|
||||
: base(HoverSampleSet.Button)
|
||||
{
|
||||
this.beatmap = beatmap;
|
||||
RelativeSizeAxes = Axes.X;
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace PerformanceCalculatorGUI.Components
|
|||
{
|
||||
}
|
||||
|
||||
public override LocalisableString TooltipText { get; }
|
||||
public override LocalisableString TooltipText => string.Empty;
|
||||
}
|
||||
|
||||
internal class ScreenSelectionButton : ToolbarButton
|
||||
|
|
|
@ -128,7 +128,7 @@ namespace PerformanceCalculatorGUI.Components
|
|||
strainLists.Add(skillStrainList.ToArray());
|
||||
}
|
||||
|
||||
var strainMaxValue = strainLists.Max(x => x.Max(x => x.val));
|
||||
var strainMaxValue = strainLists.Max(list => list.Max(x => x.val));
|
||||
|
||||
for (int i = 0; i < skills.Length; i++)
|
||||
{
|
||||
|
|
|
@ -25,7 +25,8 @@ namespace PerformanceCalculatorGUI
|
|||
{
|
||||
private Skill[] skills;
|
||||
|
||||
public ExtendedOsuDifficultyCalculator(IRulesetInfo ruleset, IWorkingBeatmap beatmap) : base(ruleset, beatmap)
|
||||
public ExtendedOsuDifficultyCalculator(IRulesetInfo ruleset, IWorkingBeatmap beatmap)
|
||||
: base(ruleset, beatmap)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -43,7 +44,8 @@ namespace PerformanceCalculatorGUI
|
|||
{
|
||||
private Skill[] skills;
|
||||
|
||||
public ExtendedTaikoDifficultyCalculator(IRulesetInfo ruleset, IWorkingBeatmap beatmap) : base(ruleset, beatmap)
|
||||
public ExtendedTaikoDifficultyCalculator(IRulesetInfo ruleset, IWorkingBeatmap beatmap)
|
||||
: base(ruleset, beatmap)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -61,7 +63,8 @@ namespace PerformanceCalculatorGUI
|
|||
{
|
||||
private Skill[] skills;
|
||||
|
||||
public ExtendedCatchDifficultyCalculator(IRulesetInfo ruleset, IWorkingBeatmap beatmap) : base(ruleset, beatmap)
|
||||
public ExtendedCatchDifficultyCalculator(IRulesetInfo ruleset, IWorkingBeatmap beatmap)
|
||||
: base(ruleset, beatmap)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -79,7 +82,8 @@ namespace PerformanceCalculatorGUI
|
|||
{
|
||||
private Skill[] skills;
|
||||
|
||||
public ExtendedManiaDifficultyCalculator(IRulesetInfo ruleset, IWorkingBeatmap beatmap) : base(ruleset, beatmap)
|
||||
public ExtendedManiaDifficultyCalculator(IRulesetInfo ruleset, IWorkingBeatmap beatmap)
|
||||
: base(ruleset, beatmap)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -144,10 +144,10 @@ namespace PerformanceCalculatorGUI
|
|||
Height = 100,
|
||||
Alpha = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -44,7 +44,7 @@ namespace PerformanceCalculatorGUI.Screens.ObjectInspection
|
|||
|
||||
public void AddParagraph(string text, int fontSize = 10)
|
||||
{
|
||||
textFlow.AddParagraph(text, p => p.Font = OsuFont.GetFont(size: fontSize-3));
|
||||
textFlow.AddParagraph(text, p => p.Font = OsuFont.GetFont(size: fontSize - 3));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@ namespace PerformanceCalculatorGUI.Screens.ObjectInspection
|
|||
new Drawable[]
|
||||
{
|
||||
new TimeInfoContainer { RelativeSizeAxes = Axes.Both },
|
||||
new SummaryTimeline { RelativeSizeAxes = Axes.Both,},
|
||||
new SummaryTimeline { RelativeSizeAxes = Axes.Both },
|
||||
new PlaybackControl { RelativeSizeAxes = Axes.Both },
|
||||
},
|
||||
}
|
||||
|
@ -161,7 +161,8 @@ namespace PerformanceCalculatorGUI.Screens.ObjectInspection
|
|||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Margin = new MarginPadding(10) { Bottom = bottom_bar_height },
|
||||
Child = new TaikoObjectInspectorRuleset(rulesetInstance, playableBeatmap, modifiedMods, difficultyCalculator.Value as ExtendedTaikoDifficultyCalculator, processorBeatmap.Track.Rate)
|
||||
Child = new TaikoObjectInspectorRuleset(rulesetInstance, playableBeatmap, modifiedMods, difficultyCalculator.Value as ExtendedTaikoDifficultyCalculator,
|
||||
processorBeatmap.Track.Rate)
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Clock = clock,
|
||||
|
|
|
@ -322,10 +322,9 @@ namespace PerformanceCalculatorGUI.Screens
|
|||
Child = userModsSelectOverlay = new ExtendedUserModSelectOverlay
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
//AutoSizeAxes = Axes.Y,
|
||||
Anchor = Anchor.TopLeft,
|
||||
Origin = Anchor.TopLeft,
|
||||
IsValidMod = (mod) => mod.HasImplementation && ModUtils.FlattenMod(mod).All(m => m.UserPlayable),
|
||||
IsValidMod = mod => mod.HasImplementation && ModUtils.FlattenMod(mod).All(m => m.UserPlayable),
|
||||
SelectedMods = { BindTarget = appliedMods }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue