// Do Work on Entering/Leaving Maker public void SetupMakerControls(object sender, RegisterCustomControlsEvent eventData) { CharacterAccessoryControlWrapper = MakerAPI.AddEditableAccessoryWindowControl <MakerToggle, bool>(new MakerToggle(new MakerCategory("Accessory", ""), "Character Accessory", this)); AutoMatchHairColorWrapper = MakerAPI.AddEditableAccessoryWindowControl <MakerToggle, bool>(new MakerToggle(new MakerCategory("Accessory", ""), "Match Hair Color on Coord Load", this)); MakerAPI.AddAccessoryWindowControl(new MakerButton("Visibility Rules", null, this)).OnClick.AddListener(VisibilityRulesListener); AccessoriesApi.SelectedMakerAccSlotChanged += UpdateUI; AccessoriesApi.SelectedMakerAccSlotChanged += RefreshAdvancedParents; MakerAPI.ReloadCustomInterface += ReloadCustomInterface; MakerAPI.AddAccessoryWindowControl(new MakerButton("Show", null, this)).OnClick.AddListener(ShowAccessory); MakerAPI.AddAccessoryWindowControl(new MakerButton("Hide", null, this)).OnClick.AddListener(HideAccessory); advancedParentLabel = new MakerText("Adv Parent: None", null, this); MakerAPI.AddAccessoryWindowControl(advancedParentLabel); MakerAPI.AddAccessoryWindowControl(new MakerButton("Advanced Parent", null, this)).OnClick.AddListener(AdvancedParent); if (ShowSlotSettingResyncButton.Value) { MakerAPI.AddAccessoryWindowControl(new MakerButton("Clear and Resync Slot", null, this)).OnClick.AddListener(ClearAndResyncSlot); } CoordinateRulesToggle = MakerAPI.AddSidebarControl(new SidebarToggle("Coordinate Visibility Rules", false, this)); CoordinateRulesToggle.ValueChanged.Subscribe(b => { ShowCoordinateRulesGUI(b); }); MakerControlsRegistered = true; }