Skip to content

Commit

Permalink
Show/Hide stack slider
Browse files Browse the repository at this point in the history
  • Loading branch information
aliniti committed Dec 8, 2015
1 parent 553cfb4 commit edd5b39
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions TargetSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ private static void DrawingOnOnDraw(EventArgs args)

_configMenu.Item("ForceFocusSelectedKeys").Permashow(SelectedTarget != null && a);
_configMenu.Item("ForceFocusSelected").Permashow(_configMenu.Item("ForceFocusSelected").GetValue<bool>());
_configMenu.Item("stack.count").Show(_configMenu.Item("TargetingMode").GetValue<StringList>().SelectedIndex == 8);
}

private static void GameOnOnWndProc(WndEventArgs args)
Expand Down Expand Up @@ -270,11 +271,13 @@ internal static void Initialize()
}
}
config.AddItem(autoPriorityItem);
config.AddItem(
new MenuItem("stack.count", "Stack Count").SetValue(new Slider(2, 1, 20)))
.SetTooltip("Only for Stack Mode");
config.AddItem(
new MenuItem("TargetingMode", "Target Mode").SetShared()
.SetValue(new StringList(Enum.GetNames(typeof (TargetingMode)))));
config.AddItem(
new MenuItem("stack.count", "Stack Count").SetValue(new Slider(2, 1, 20))).SetTooltip("Only for Stack Mode");


CommonMenu.Config.AddSubMenu(config);

Expand Down

0 comments on commit edd5b39

Please sign in to comment.