diff --git a/MHFZ_Overlay/ConfigWindow.xaml b/MHFZ_Overlay/ConfigWindow.xaml
index 0b1fdbd5..102017c0 100644
--- a/MHFZ_Overlay/ConfigWindow.xaml
+++ b/MHFZ_Overlay/ConfigWindow.xaml
@@ -162,7 +162,7 @@
-
+
@@ -281,7 +281,7 @@
-
+
@@ -583,7 +583,7 @@
-
+
-
+
@@ -808,7 +808,7 @@
-
+
-
+
@@ -1065,7 +1065,7 @@
-
+
@@ -1099,32 +1099,40 @@
-
+
-
+
-
+
-
-
+
+
+
+
-
+
+
+
+
-
-
+
+
+
+
+
@@ -1172,7 +1180,7 @@
-
+
@@ -1258,7 +1266,7 @@
-
+
@@ -1283,7 +1291,7 @@
-
+
@@ -1306,7 +1314,7 @@
///Final True = ((Weapon True + Attack A) * HH Buff + Attack B) * Multipliers + Additional
///-->
-
+
@@ -1335,7 +1343,7 @@
-
+
@@ -1362,7 +1370,7 @@
-
+
@@ -1380,7 +1388,7 @@
-
+
@@ -1395,7 +1403,7 @@
-
+
@@ -1409,7 +1417,7 @@
-
+
@@ -1423,7 +1431,7 @@
-
+
@@ -1482,7 +1490,7 @@
-
+
@@ -1519,7 +1527,7 @@
-
+
@@ -1614,7 +1622,7 @@
-
+
-
+
@@ -1837,7 +1845,7 @@
-
+
@@ -1862,7 +1870,7 @@
-
+
-
+
@@ -2629,7 +2637,7 @@
-
+
@@ -2675,7 +2683,7 @@
-
+
@@ -2687,7 +2695,7 @@
-
+
@@ -2699,7 +2707,7 @@
-
+
@@ -2709,7 +2717,7 @@
-
+
@@ -2722,7 +2730,7 @@
SelectedColor="{Binding Source={StaticResource Settings},Path=MonsterPoisonBarColor}">
-
+
@@ -2735,7 +2743,7 @@
SelectedColor="{Binding Source={StaticResource Settings},Path=MonsterSleepBarColor}">
-
+
@@ -2748,7 +2756,7 @@
SelectedColor="{Binding Source={StaticResource Settings},Path=MonsterParaBarColor}">
-
+
@@ -2761,7 +2769,7 @@
SelectedColor="{Binding Source={StaticResource Settings},Path=MonsterBlastBarColor}">
-
+
@@ -2812,7 +2820,7 @@
-
+
@@ -2917,7 +2925,6 @@
-
@@ -2936,8 +2943,8 @@
Wiki
YouTube
-
-
+
+
Sword and Shield
Dual Swords
Great Sword
@@ -2959,7 +2966,6 @@
/>
-
@@ -2971,20 +2977,18 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
+
+
@@ -2997,7 +3001,6 @@
-
@@ -3010,7 +3013,6 @@
Source="https://dorielrivalet.github.io/mhfz-damage-calculator" DefaultBackgroundColor="#f5e0dc"/>
-
@@ -3030,7 +3032,7 @@
-
+
@@ -3079,8 +3081,8 @@
-
- View Stargazers
+
+ View Stargazers
diff --git a/MHFZ_Overlay/ConfigWindow.xaml.cs b/MHFZ_Overlay/ConfigWindow.xaml.cs
index 602b2a4b..d984b460 100644
--- a/MHFZ_Overlay/ConfigWindow.xaml.cs
+++ b/MHFZ_Overlay/ConfigWindow.xaml.cs
@@ -556,7 +556,7 @@ public ConfigWindow(MainWindow mainWindow)
MonsterNameList.Add(monsterInfos[i].Name);
}
- MonsterNameListBox.ItemsSource = MonsterNameList;
+ MonsterNameComboBox.ItemsSource = MonsterNameList;
_ = GetRepoStats();
@@ -1138,10 +1138,10 @@ private void ChangeMonsterInfo()
//TODO can be handled more elegantly
//see this
//string selectedOverlayMode = ((ComboBoxItem)configWindow.OverlayModeComboBox.SelectedItem).Content.ToString();
- string selectedName = MonsterNameListBox.SelectedItem.ToString() + "";
+ string selectedName = MonsterNameComboBox.SelectedItem.ToString() + "";
selectedName = selectedName.Replace("System.Windows.Controls.ComboBoxItem: ", "");
- string selectedMatchup = WeaponMatchupListBox.SelectedItem.ToString() + " " + MonsterNameListBox.SelectedItem.ToString();
+ string selectedMatchup = WeaponMatchupComboBox.SelectedItem.ToString() + " " + MonsterNameComboBox.SelectedItem.ToString();
selectedMatchup = selectedMatchup.Replace("System.Windows.Controls.ComboBoxItem: ", "");
if (!MonsterFeriasOptionDictionary.TryGetValue(selectedName, out string? val1) || !MonsterWikiOptionDictionary.TryGetValue(selectedName, out string? val2))
@@ -1158,12 +1158,12 @@ private void ChangeMonsterInfo()
//https://stackoverflow.com/questions/1265812/howto-define-the-auto-width-of-the-wpf-gridview-column-in-code
DockPanelMonsterInfo.Width = Double.NaN;//Auto
DockPanelMonsterInfo.Height = Double.NaN;//Auto
- webViewMonsterInfo.CoreWebView2.Navigate(MonsterFeriasOptionDictionary[MonsterNameListBox.SelectedItem.ToString() + ""]);
+ webViewMonsterInfo.CoreWebView2.Navigate(MonsterFeriasOptionDictionary[MonsterNameComboBox.SelectedItem.ToString() + ""]);
return;
case 1://wiki
DockPanelMonsterInfo.Width = Double.NaN;//Auto
DockPanelMonsterInfo.Height = Double.NaN;//Auto
- webViewMonsterInfo.CoreWebView2.Navigate(MonsterWikiOptionDictionary[MonsterNameListBox.SelectedItem.ToString() + ""]);
+ webViewMonsterInfo.CoreWebView2.Navigate(MonsterWikiOptionDictionary[MonsterNameComboBox.SelectedItem.ToString() + ""]);
return;
case 2://youtube
if (MonsterVideoLinkOptionDictionary.TryGetValue(selectedMatchup, out string? videoval) && MonsterVideoLinkOptionDictionary[selectedMatchup] != "")
@@ -1189,7 +1189,7 @@ private void ChangeMonsterInfo()
}
}
- private void MonsterNameListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ private void MonsterNameComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
ChangeMonsterInfo();
}
@@ -1199,7 +1199,7 @@ private void MonsterInfoSource_SelectionChanged(object sender, SelectionChangedE
ChangeMonsterInfo();
}
- private void WeaponMatchupListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ private void WeaponMatchupComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
ChangeMonsterInfo();
}
diff --git a/MHFZ_Overlay/MainWindow.xaml.cs b/MHFZ_Overlay/MainWindow.xaml.cs
index 1a3a1cb1..7c91b689 100644
--- a/MHFZ_Overlay/MainWindow.xaml.cs
+++ b/MHFZ_Overlay/MainWindow.xaml.cs
@@ -461,6 +461,11 @@ public MainWindow()
logger.Info("PROGRAM OPERATION: Loading dependency data\n{0}", dependenciesInfo);
+ // The rendering tier corresponds to the high-order word of the Tier property.
+ int renderingTier = (RenderCapability.Tier >> 16);
+
+ logger.Info("PROGRAM OPERATION: Found rendering tier {0}", renderingTier);
+
DataLoader.model.ShowSaveIcon = false;
splashScreen.Close(TimeSpan.FromSeconds(0.1));