public Support(BaseDesign root) { _root = root; SetFilters(); _root.xMenu.Content = "Support"; _root.xSelected.Content = "General Settings"; _root.xSubMenu.Content = ""; _root.DrawMenu(); _root.DrawSubMenu(); root.LoadPage(new GeneralSettings(this), null); }
public Application(BaseDesign root) { _root = root; SetMenu(); SetFilters(); _root.xMenu.Content = "Application"; _root.xSelected.Content = "Ingame Overlay"; _root.xSubMenu.Content = "Minimap Settings"; _root.Items = Menu[1]; _root.DrawMenu(); _root.DrawSubMenu(); //root.LoadPage(new Overlay.OverlaySettings(this), null); }
public Filters(BaseDesign root) { _root = root; _root.xMenu.Content = "Filters"; _root.xSelected.Content = Config.Get <FKFilters>().Filters.FirstOrDefault().Name; _root.xSubMenu.Content = "General Settings"; SetMenu(); SetFilters(); SetSubMenu(); SetSubMenuSelector(); _root.DrawMenu(); _root.DrawSubMenu(); _root.DrawSubMenuContainerSelector(); // root.LoadPage(new General(this), null); // root.LoadPage(new NoFilter(this), null); //root.LoadPage(new Templates.Filters.MultiboxFilter(this), null); /*Border Border = new Border * { * Width = 141, * Height = 32, * Background = Extensions.HexToBrush("#ffffff", false), * BorderBrush = Extensions.HexToBrush("#e9e9e9", false), * BorderThickness = new Thickness(1), * CornerRadius = new CornerRadius(2), * // Tag = new FKMethods.TagHelper { Transition = Item.MouseEvent.Color }, * Name = "DropDown", * Margin = new Thickness(0,10,0,0) * }; * * ComboBox Box = new ComboBox { Width = 140, Height = 28, SelectedIndex = 0 }; * ComboBoxItem Itemx = new ComboBoxItem { Content = "Item Filter" }; * ComboBoxItem Itemx2 = new ComboBoxItem { Content = "Crafting Mats" }; * ComboBoxItem Itemx3 = new ComboBoxItem { Content = "Gems Filter" }; * Box.Items.Add(Itemx); * Box.Items.Add(Itemx2); * Box.Items.Add(Itemx3); * * Border.Child = Box; * _root.SetParamMenu(Border);*/ }
/// <summary> /// Serializes content to the writer /// </summary> public override void InternalToBinary(IBinaryRawWriter writer) { base.InternalToBinary(writer); VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(ProjectID); writer.WriteInt((int)VolumeType); WriteFilter(writer, BaseFilter); WriteFilter(writer, TopFilter); writer.WriteBoolean(BaseDesign != null); BaseDesign?.ToBinary(writer); writer.WriteBoolean(TopDesign != null); TopDesign?.ToBinary(writer); WriteFilter(writer, AdditionalSpatialFilter); writer.WriteDouble(CutTolerance); writer.WriteDouble(FillTolerance); }