forked from RedHatter/Graveyard
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Plugin Settings Folder Graveyard.xml -> Plugin.Graveyard\Settings.xml - Convert Position settings from pixels to percentages Fixes Update CardId references Set to original set *not* to Wonders version - Paladin - Silvermoon Portal - Lay on Hands - Priest - Onyx Bishop - Neutral -Street Trickster
- Loading branch information
Showing
22 changed files
with
452 additions
and
75 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
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
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 HDT.Plugins.Graveyard | ||
{ | ||
public static class PositionHelpers | ||
{ | ||
public static double PixelsToPercentage(this double value, double size) => value * 100 / size; | ||
public static double PercentageToPixels(this double value, double size) => size * value / 100; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using System.Reflection; | ||
|
||
namespace HDT.Plugins.Graveyard.Properties | ||
{ | ||
public static class LibraryInfo | ||
{ | ||
public static readonly AssemblyName AssemblyName = Assembly.GetExecutingAssembly().GetName(); | ||
public static readonly Version AssemblyVersion = AssemblyName.Version; | ||
|
||
public static string Name = AssemblyName.Name; | ||
public static readonly Version Version = new Version(AssemblyVersion.Major, AssemblyVersion.Minor, AssemblyVersion.Build); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System.Windows.Controls; | ||
|
||
namespace HDT.Plugins.Graveyard | ||
{ | ||
public sealed partial class Settings | ||
{ | ||
private int GetDefaultIntValue(string key) => int.Parse(Properties[key].DefaultValue.ToString()); | ||
private double GetDefaultDblValue(string key) => double.Parse(Properties[key].DefaultValue.ToString()); | ||
public double DefaultPlayerLeft => GetDefaultDblValue(nameof(PlayerLeft)); | ||
public double DefaultPlayerTop => GetDefaultDblValue(nameof(PlayerTop)); | ||
public double DefaultEnemyLeft => GetDefaultDblValue(nameof(EnemyLeft)); | ||
public double DefaultEnemyTop => GetDefaultDblValue(nameof(EnemyTop)); | ||
public double DefaultFriendlyOpacity => GetDefaultDblValue(nameof(FriendlyOpacity)); | ||
public double DefaultFriendlyScale => GetDefaultDblValue(nameof(FriendlyScale)); | ||
public Orientation DefaultFriendlyOrientation => (Orientation)Properties[nameof(FriendlyOrientation)].DefaultValue; | ||
public double DefaultEnemyOpacity => GetDefaultDblValue(nameof(EnemyOpacity)); | ||
public double DefaultEnemyScale => GetDefaultDblValue(nameof(EnemyScale)); | ||
|
||
public void ResetPlayerPosition() | ||
{ | ||
PlayerLeft = DefaultPlayerLeft; | ||
PlayerTop = DefaultPlayerTop; | ||
} | ||
public void ResetOpponentPosition() | ||
{ | ||
EnemyLeft = DefaultEnemyLeft; | ||
EnemyTop = DefaultEnemyTop; | ||
} | ||
public void ResetPlayerDisplay() | ||
{ | ||
FriendlyOpacity = DefaultFriendlyOpacity; | ||
FriendlyScale = DefaultFriendlyScale; | ||
FriendlyOrientation = DefaultFriendlyOrientation; | ||
} | ||
public void ResetOpponentDisplay() | ||
{ | ||
EnemyOpacity = DefaultEnemyOpacity; | ||
EnemyScale = DefaultEnemyScale; | ||
} | ||
} | ||
} |
Oops, something went wrong.