private static void ProcessLink(string key, object value) { if (value is MenuWrapper.BoolLink) { BoolLinks.Add(key, value as MenuWrapper.BoolLink); } else if (value is MenuWrapper.CircleLink) { CircleLinks.Add(key, value as MenuWrapper.CircleLink); } else if (value is MenuWrapper.KeyBindLink) { KeyLinks.Add(key, value as MenuWrapper.KeyBindLink); } else if (value is MenuWrapper.SliderLink) { SliderLinks.Add(key, value as MenuWrapper.SliderLink); } else if (value is MenuWrapper.StringListLink) { StringListLinks.Add(key, value as MenuWrapper.StringListLink); } }
public static void AddCircle(string key, string title, bool enabled, Color color, float radius = 100f) { CircleLinks.Add(key, _currentSubMenu.AddLinkedCircle(title, enabled, color, radius)); }