-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add warning when preset name already exists. - Fixed issue with D4Builds imports. - Show system preset status.
- Loading branch information
1 parent
2a3aa29
commit 3bfa768
Showing
60 changed files
with
149 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace D4Companion.Constants | ||
{ | ||
public class SystemPresetStatusConstants | ||
{ | ||
public const string Broken = "broken"; | ||
public const string Ready = "ready"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
using D4Companion.Entities; | ||
|
||
namespace D4Companion.Interfaces | ||
{ | ||
public interface ITradeItemManager | ||
{ | ||
List<TradeItem> TradeItems { get; } | ||
|
||
TradeItem? FindTradeItem(List<ItemAffix> affixes); | ||
void SaveTradeItems(List<TradeItem> tradeItems); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
D4Companion/Converters/SystemPresetStatusToHealthConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using System.Globalization; | ||
using System.Windows.Data; | ||
using System.Windows.Media; | ||
|
||
namespace D4Companion.Converters | ||
{ | ||
[ValueConversion(typeof(string), typeof(Brush))] | ||
public class SystemPresetStatusToHealthConverter : IValueConverter | ||
{ | ||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
string valueAsString = (string)value; | ||
if (string.IsNullOrWhiteSpace(valueAsString)) | ||
{ | ||
return Brushes.Gray; | ||
} | ||
|
||
switch (valueAsString.ToLower()) | ||
{ | ||
case Constants.SystemPresetStatusConstants.Broken: | ||
return Brushes.Red; | ||
case Constants.SystemPresetStatusConstants.Ready: | ||
return Brushes.Green; | ||
default: | ||
return Brushes.Gray; | ||
} | ||
} | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-445 Bytes
downloads/systempresets-v3/images/1080p_SMF_en/dot-affixes_temper.png
Binary file not shown.
Binary file added
BIN
+707 Bytes
downloads/systempresets-v3/images/1080p_SMF_en/dot-affixes_temper_defensive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+730 Bytes
downloads/systempresets-v3/images/1080p_SMF_en/dot-affixes_temper_mobility.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+770 Bytes
downloads/systempresets-v3/images/1080p_SMF_en/dot-affixes_temper_offensive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+733 Bytes
downloads/systempresets-v3/images/1080p_SMF_en/dot-affixes_temper_resource.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+749 Bytes
downloads/systempresets-v3/images/1080p_SMF_en/dot-affixes_temper_utility.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+723 Bytes
downloads/systempresets-v3/images/1080p_SMF_en/dot-affixes_temper_weapons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-445 Bytes
downloads/systempresets-v3/images/1080p_SMF_es-US/dot-affixes_temper.png
Binary file not shown.
Binary file added
BIN
+707 Bytes
downloads/systempresets-v3/images/1080p_SMF_es-US/dot-affixes_temper_defensive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+730 Bytes
downloads/systempresets-v3/images/1080p_SMF_es-US/dot-affixes_temper_mobility.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+770 Bytes
downloads/systempresets-v3/images/1080p_SMF_es-US/dot-affixes_temper_offensive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+733 Bytes
downloads/systempresets-v3/images/1080p_SMF_es-US/dot-affixes_temper_resource.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+749 Bytes
downloads/systempresets-v3/images/1080p_SMF_es-US/dot-affixes_temper_utility.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+723 Bytes
downloads/systempresets-v3/images/1080p_SMF_es-US/dot-affixes_temper_weapons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-445 Bytes
downloads/systempresets-v3/images/1080p_SMF_fr/dot-affixes_temper.png
Binary file not shown.
Binary file added
BIN
+707 Bytes
downloads/systempresets-v3/images/1080p_SMF_fr/dot-affixes_temper_defensive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+730 Bytes
downloads/systempresets-v3/images/1080p_SMF_fr/dot-affixes_temper_mobility.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+770 Bytes
downloads/systempresets-v3/images/1080p_SMF_fr/dot-affixes_temper_offensive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+733 Bytes
downloads/systempresets-v3/images/1080p_SMF_fr/dot-affixes_temper_resource.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+749 Bytes
downloads/systempresets-v3/images/1080p_SMF_fr/dot-affixes_temper_utility.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+723 Bytes
downloads/systempresets-v3/images/1080p_SMF_fr/dot-affixes_temper_weapons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-566 Bytes
downloads/systempresets-v3/images/1440p_SMF_en/dot-affixes_temper.png
Binary file not shown.
Binary file added
BIN
+973 Bytes
downloads/systempresets-v3/images/1440p_SMF_en/dot-affixes_temper_defensive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.04 KB
downloads/systempresets-v3/images/1440p_SMF_en/dot-affixes_temper_mobility.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.07 KB
downloads/systempresets-v3/images/1440p_SMF_en/dot-affixes_temper_offensive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.02 KB
downloads/systempresets-v3/images/1440p_SMF_en/dot-affixes_temper_resource.png
Oops, something went wrong.
Binary file added
BIN
+1.12 KB
downloads/systempresets-v3/images/1440p_SMF_en/dot-affixes_temper_utility.png
Oops, something went wrong.
Binary file added
BIN
+1.08 KB
downloads/systempresets-v3/images/1440p_SMF_en/dot-affixes_temper_weapons.png
Oops, something went wrong.
Binary file removed
BIN
-566 Bytes
downloads/systempresets-v3/images/1440p_SMF_fr/dot-affixes_temper.png
Diff not rendered.
Binary file added
BIN
+973 Bytes
downloads/systempresets-v3/images/1440p_SMF_fr/dot-affixes_temper_defensive.png
Oops, something went wrong.
Binary file added
BIN
+1.04 KB
downloads/systempresets-v3/images/1440p_SMF_fr/dot-affixes_temper_mobility.png
Oops, something went wrong.
Binary file added
BIN
+1.07 KB
downloads/systempresets-v3/images/1440p_SMF_fr/dot-affixes_temper_offensive.png
Oops, something went wrong.
Binary file added
BIN
+1.02 KB
downloads/systempresets-v3/images/1440p_SMF_fr/dot-affixes_temper_resource.png
Oops, something went wrong.
Binary file added
BIN
+1.12 KB
downloads/systempresets-v3/images/1440p_SMF_fr/dot-affixes_temper_utility.png
Oops, something went wrong.
Binary file added
BIN
+1.08 KB
downloads/systempresets-v3/images/1440p_SMF_fr/dot-affixes_temper_weapons.png
Oops, something went wrong.
Binary file removed
BIN
-1.07 KB
downloads/systempresets-v3/images/1440p_SMF_zh-CN/dot-affixes_temper.png
Diff not rendered.
Binary file added
BIN
+973 Bytes
downloads/systempresets-v3/images/1440p_SMF_zh-CN/dot-affixes_temper_defensive.png
Oops, something went wrong.
Binary file added
BIN
+1.04 KB
downloads/systempresets-v3/images/1440p_SMF_zh-CN/dot-affixes_temper_mobility.png
Oops, something went wrong.
Binary file added
BIN
+1.07 KB
downloads/systempresets-v3/images/1440p_SMF_zh-CN/dot-affixes_temper_offensive.png
Oops, something went wrong.
Binary file added
BIN
+1.02 KB
downloads/systempresets-v3/images/1440p_SMF_zh-CN/dot-affixes_temper_resource.png
Oops, something went wrong.
Binary file added
BIN
+1.12 KB
downloads/systempresets-v3/images/1440p_SMF_zh-CN/dot-affixes_temper_utility.png
Oops, something went wrong.
Binary file added
BIN
+1.08 KB
downloads/systempresets-v3/images/1440p_SMF_zh-CN/dot-affixes_temper_weapons.png
Oops, something went wrong.