use numbers when defining cycle order to avoid issues going over 10
This commit is contained in:
@@ -189,9 +189,9 @@ Open the file using any text editor. find the entries **CycleGroup1ForwardHotkey
|
|||||||
Next find the entry **CycleGroup1ForwardHotkeys**. Most probably it will look like
|
Next find the entry **CycleGroup1ForwardHotkeys**. Most probably it will look like
|
||||||
|
|
||||||
"CycleGroup1ClientsOrder": {
|
"CycleGroup1ClientsOrder": {
|
||||||
"EVE - Example DPS Toon 1": "1",
|
"EVE - Example DPS Toon 1": 1,
|
||||||
"EVE - Example DPS Toon 2": "2",
|
"EVE - Example DPS Toon 2": 2,
|
||||||
"EVE - Example DPS Toon 3": "3"
|
"EVE - Example DPS Toon 3": 3
|
||||||
}
|
}
|
||||||
|
|
||||||
You should modify this entry with a list of each of your clients replacing "Example DPS Toon 1", etc with the name of your character. The numbers on the right are used to force the order in which they cycle.
|
You should modify this entry with a list of each of your clients replacing "Example DPS Toon 1", etc with the name of your character. The numbers on the right are used to force the order in which they cycle.
|
||||||
|
@@ -15,22 +15,24 @@ namespace EveOPreview.Configuration.Implementation
|
|||||||
|
|
||||||
public ThumbnailConfiguration()
|
public ThumbnailConfiguration()
|
||||||
{
|
{
|
||||||
|
this.ConfigVersion = 1;
|
||||||
|
|
||||||
this.CycleGroup1ForwardHotkeys = new List<string> { "F14", "Control+F14" };
|
this.CycleGroup1ForwardHotkeys = new List<string> { "F14", "Control+F14" };
|
||||||
this.CycleGroup1BackwardHotkeys = new List<string> { "F13", "Control+F13" };
|
this.CycleGroup1BackwardHotkeys = new List<string> { "F13", "Control+F13" };
|
||||||
this.CycleGroup1ClientsOrder = new Dictionary<string, string>
|
this.CycleGroup1ClientsOrder = new Dictionary<string, int>
|
||||||
{
|
{
|
||||||
{ "EVE - Example DPS Toon 1", "1" },
|
{ "EVE - Example DPS Toon 1", 1 },
|
||||||
{ "EVE - Example DPS Toon 2", "2" },
|
{ "EVE - Example DPS Toon 2", 2 },
|
||||||
{ "EVE - Example DPS Toon 3", "3" }
|
{ "EVE - Example DPS Toon 3", 3 }
|
||||||
};
|
};
|
||||||
|
|
||||||
this.CycleGroup2ForwardHotkeys = new List<string> { "F16", "Control+F16" };
|
this.CycleGroup2ForwardHotkeys = new List<string> { "F16", "Control+F16" };
|
||||||
this.CycleGroup2BackwardHotkeys = new List<string> { "F15", "Control+F15" };
|
this.CycleGroup2BackwardHotkeys = new List<string> { "F15", "Control+F15" };
|
||||||
this.CycleGroup2ClientsOrder = new Dictionary<string, string>
|
this.CycleGroup2ClientsOrder = new Dictionary<string, int>
|
||||||
{
|
{
|
||||||
{ "EVE - Example Logi Toon 1", "1" },
|
{ "EVE - Example Logi Toon 1", 1 },
|
||||||
{ "EVE - Example Scout Toon 2", "2" },
|
{ "EVE - Example Scout Toon 2", 2 },
|
||||||
{ "EVE - Example Tackle Toon 3", "3" }
|
{ "EVE - Example Tackle Toon 3", 3 }
|
||||||
};
|
};
|
||||||
|
|
||||||
this.PerClientActiveClientHighlightColor = new Dictionary<string, Color>
|
this.PerClientActiveClientHighlightColor = new Dictionary<string, Color>
|
||||||
@@ -82,6 +84,10 @@ namespace EveOPreview.Configuration.Implementation
|
|||||||
this.LoginThumbnailLocation = new Point(5, 5);
|
this.LoginThumbnailLocation = new Point(5, 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[JsonProperty("ConfigVersion")]
|
||||||
|
public int ConfigVersion { get; set; }
|
||||||
|
|
||||||
[JsonProperty("CycleGroup1ForwardHotkeys")]
|
[JsonProperty("CycleGroup1ForwardHotkeys")]
|
||||||
public List<string> CycleGroup1ForwardHotkeys { get; set; }
|
public List<string> CycleGroup1ForwardHotkeys { get; set; }
|
||||||
|
|
||||||
@@ -89,7 +95,7 @@ namespace EveOPreview.Configuration.Implementation
|
|||||||
public List<string> CycleGroup1BackwardHotkeys { get; set; }
|
public List<string> CycleGroup1BackwardHotkeys { get; set; }
|
||||||
|
|
||||||
[JsonProperty("CycleGroup1ClientsOrder")]
|
[JsonProperty("CycleGroup1ClientsOrder")]
|
||||||
public Dictionary<string, string> CycleGroup1ClientsOrder { get; set; }
|
public Dictionary<string, int> CycleGroup1ClientsOrder { get; set; }
|
||||||
|
|
||||||
[JsonProperty("CycleGroup2ForwardHotkeys")]
|
[JsonProperty("CycleGroup2ForwardHotkeys")]
|
||||||
public List<string> CycleGroup2ForwardHotkeys { get; set; }
|
public List<string> CycleGroup2ForwardHotkeys { get; set; }
|
||||||
@@ -98,7 +104,7 @@ namespace EveOPreview.Configuration.Implementation
|
|||||||
public List<string> CycleGroup2BackwardHotkeys { get; set; }
|
public List<string> CycleGroup2BackwardHotkeys { get; set; }
|
||||||
|
|
||||||
[JsonProperty("CycleGroup2ClientsOrder")]
|
[JsonProperty("CycleGroup2ClientsOrder")]
|
||||||
public Dictionary<string, string> CycleGroup2ClientsOrder { get; set; }
|
public Dictionary<string, int> CycleGroup2ClientsOrder { get; set; }
|
||||||
|
|
||||||
[JsonProperty("PerClientActiveClientHighlightColor")]
|
[JsonProperty("PerClientActiveClientHighlightColor")]
|
||||||
public Dictionary<string, Color> PerClientActiveClientHighlightColor { get; set; }
|
public Dictionary<string, Color> PerClientActiveClientHighlightColor { get; set; }
|
||||||
|
@@ -8,11 +8,11 @@ namespace EveOPreview.Configuration
|
|||||||
{
|
{
|
||||||
List<string> CycleGroup1ForwardHotkeys { get; set; }
|
List<string> CycleGroup1ForwardHotkeys { get; set; }
|
||||||
List<string> CycleGroup1BackwardHotkeys { get; set; }
|
List<string> CycleGroup1BackwardHotkeys { get; set; }
|
||||||
Dictionary<string, string> CycleGroup1ClientsOrder { get; set; }
|
Dictionary<string, int> CycleGroup1ClientsOrder { get; set; }
|
||||||
|
|
||||||
List<string> CycleGroup2ForwardHotkeys { get; set; }
|
List<string> CycleGroup2ForwardHotkeys { get; set; }
|
||||||
List<string> CycleGroup2BackwardHotkeys { get; set; }
|
List<string> CycleGroup2BackwardHotkeys { get; set; }
|
||||||
Dictionary<string, string> CycleGroup2ClientsOrder { get; set; }
|
Dictionary<string, int> CycleGroup2ClientsOrder { get; set; }
|
||||||
|
|
||||||
Dictionary<string, Color> PerClientActiveClientHighlightColor { get; set; }
|
Dictionary<string, Color> PerClientActiveClientHighlightColor { get; set; }
|
||||||
|
|
||||||
|
@@ -109,9 +109,9 @@ namespace EveOPreview.Services
|
|||||||
newClient.Value.Refresh(true);
|
newClient.Value.Refresh(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CycleNextClient(bool isForwards, Dictionary<string, string> cycleOrder)
|
public void CycleNextClient(bool isForwards, Dictionary<string, int> cycleOrder)
|
||||||
{
|
{
|
||||||
IOrderedEnumerable<KeyValuePair<string, string>> clientOrder;
|
IOrderedEnumerable<KeyValuePair<string, int>> clientOrder;
|
||||||
if (isForwards)
|
if (isForwards)
|
||||||
{
|
{
|
||||||
clientOrder = cycleOrder.OrderBy(x => x.Value);
|
clientOrder = cycleOrder.OrderBy(x => x.Value);
|
||||||
@@ -159,7 +159,7 @@ namespace EveOPreview.Services
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RegisterCycleClientHotkey(IEnumerable<Keys> keys, bool isForwards, Dictionary<string, string> cycleOrder)
|
public void RegisterCycleClientHotkey(IEnumerable<Keys> keys, bool isForwards, Dictionary<string, int> cycleOrder)
|
||||||
{
|
{
|
||||||
foreach (var hotkey in keys)
|
foreach (var hotkey in keys)
|
||||||
{
|
{
|
||||||
|
@@ -34,7 +34,7 @@ namespace EveOPreview.View
|
|||||||
private bool _isCustomMouseModeActive;
|
private bool _isCustomMouseModeActive;
|
||||||
|
|
||||||
private double _opacity;
|
private double _opacity;
|
||||||
|
|
||||||
private DateTime _suppressResizeEventsTimestamp;
|
private DateTime _suppressResizeEventsTimestamp;
|
||||||
private Size _baseZoomSize;
|
private Size _baseZoomSize;
|
||||||
private Point _baseZoomLocation;
|
private Point _baseZoomLocation;
|
||||||
|
Reference in New Issue
Block a user