Skip to content

Commit 37b913a

Browse files
authored
Merge pull request #431 from wbonbon/master
update UltraScouter
2 parents 74f660a + a9b3d76 commit 37b913a

File tree

8 files changed

+38
-5
lines changed

8 files changed

+38
-5
lines changed

source/@MasterVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v10.4.1
1+
v10.4.2
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
using System.Reflection;
22

3-
[assembly: AssemblyVersion("10.4.0.1")]
4-
[assembly: AssemblyFileVersion("10.4.0.1")]
3+
[assembly: AssemblyVersion("10.4.0.2")]
4+
[assembly: AssemblyFileVersion("10.4.0.2")]

source/ACT.UltraScouter/ACT.UltraScouter.Core/Config/FFLogs.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ public FFLogsDifficulty Difficulty
110110
set => this.SetProperty(ref this.difficulty, value);
111111
}
112112

113+
private FFLogsMetric metric = FFLogsMetric.rdps;
114+
[DataMember]
115+
public FFLogsMetric Metric
116+
{
117+
get => this.metric;
118+
set => this.SetProperty(ref this.metric, value);
119+
}
120+
113121
private double refreshInterval = 8.0d;
114122

115123
[DataMember]

source/ACT.UltraScouter/ACT.UltraScouter.Core/Config/Settings.Defaults.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ public partial class Settings :
242242
FromCommandTTL = 14.0d,
243243
CategoryColors = FFLogs.DefaultCategoryColors,
244244
Partition = FFLogsPartitions.Standard,
245+
Metric = FFLogsMetric.rdps,
245246
}},
246247

247248
#endregion Target

source/ACT.UltraScouter/ACT.UltraScouter.Core/Config/UI/ViewModels/TargetConfigViewModel.FFLogs.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public partial class TargetConfigViewModel
2424

2525
public IEnumerable<FFLogsDifficulty> FFLogsDifficulties => Enum.GetValues(typeof(FFLogsDifficulty)).Cast<FFLogsDifficulty>();
2626

27+
public IEnumerable<FFLogsMetric> FFLogsMetrics => Enum.GetValues(typeof(FFLogsMetric)).Cast<FFLogsMetric>();
28+
2729
private ICommand ffLogsDisplayTextFontCommand;
2830
private ICommand ffLogsDisplayTextColorCommand;
2931
private ICommand ffLogsDisplayTextOutlineColorCommand;

source/ACT.UltraScouter/ACT.UltraScouter.Core/Config/UI/Views/FFLogsConfigView.xaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</ResourceDictionary>
4343
</Page.Resources>
4444

45-
<ScrollViewer>
45+
<ScrollViewer Height="1074">
4646
<StackPanel Margin="20">
4747
<CheckBox
4848
Margin="0 0 0 0"
@@ -161,8 +161,17 @@
161161
Width="120"
162162
ItemsSource="{Binding FFLogsDifficulties, Mode=OneWay}"
163163
SelectedItem="{Binding FFLogs.Difficulty, Mode=TwoWay}" />
164-
164+
165165
<Label
166+
Margin="0 10 0 0"
167+
Content="FFLogs metric" />
168+
<ComboBox
169+
HorizontalAlignment="Left"
170+
Width="80"
171+
ItemsSource="{Binding FFLogsMetrics, Mode=OneWay}"
172+
SelectedItem="{Binding FFLogs.Metric, Mode=TwoWay}" />
173+
174+
<Label
166175
Margin="0 25 0 0"
167176
Content="FFLogs API Tester" />
168177
<StackPanel Margin="8 0 0 0">

source/ACT.UltraScouter/ACT.UltraScouter.Core/Models/FFLogs/Enums.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,16 @@ public enum FFLogsDifficulty
3535
Normal = 100,
3636
Savage = 101,
3737
}
38+
39+
public enum FFLogsMetric
40+
{
41+
[Display(Name = "rDPS")]
42+
rdps = 0,
43+
[Display(Name = "aDPS")]
44+
adps = 1,
45+
[Display(Name = "nDPS")]
46+
ndps = 2,
47+
[Display(Name = "cDPS")]
48+
cdps = 3,
49+
}
3850
}

source/ACT.UltraScouter/ACT.UltraScouter.Core/Models/FFLogs/ParseTotalModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ public async Task GetParseAsync(
512512

513513
var query = HttpUtility.ParseQueryString(string.Empty);
514514
query["timeframe"] = "historical";
515+
query["metric"] = Settings.Instance.FFLogs.Metric.ToString();
515516
query["api_key"] = Settings.Instance.FFLogs.ApiKey;
516517

517518
if (partition != FFLogsPartitions.Current)

0 commit comments

Comments
 (0)