public void Apply() { var mat = Matrix.XRotationMatrix(X); mat.Concatenate(Matrix.YRotationMatrix(Y)); mat.Concatenate(Matrix.ZRotationMatrix(Z)); _obj.ApplyTransformation(mat); OnApply?.Invoke(); }
private void ApplyButton_Click(object sender, RoutedEventArgs e) { List <IMinecartObject> selected = new List <IMinecartObject>(); foreach (string objectName in ObjectsListBox.SelectedItems) { selected.Add(getter(objectName)); } OnApply?.Invoke(selected); Close(); }
public Perk(string name, string description, int inheritIDs, float x, float y, PerkCategory category, float size, int levelRequirement, OnApply applyMethods) { this.name = name; this.originalDescription = description; unlockPath = new int[] { inheritIDs }; posX = x; posY = y; this.category = category; scale = size; uncapped = false; levelReq = levelRequirement; apply = applyMethods; id = PerkDatabase.perks.Count; isApplied = false; PerkDatabase.perks.Add(this); }
public static void ShowWindow(string title, Vector2Int fieldValue, OnApply onApplyCallback, string label) { newFieldValue = fieldValue; onApply = onApplyCallback; fieldLabel = label; controlFocused = false; // Get existing open window or if none, make a new one var window = GetWindow <EditorWindowVector2IntField>(); window.titleContent = new GUIContent(title); window.maxSize = new Vector2(250, 100); window.ShowPopup(); }
public void Apply() { OnApply?.Invoke(); if ((Parameter is PatronModel p) && p.IntroducerID != IntroducerID) { var request = new PatronRequest { DTO = new PatronDTO { ID = PatronID, IntroducerID = IntroducerID } }; var response = Helper.Call(s => s.PatronIntroducerSet(request)); ServiceResponseHelper.CheckServiceResponse(response, "PatronIntroducerSet", request); Helper.NotifySuccess("معرف با موفقیت ثبت شد."); } Messenger.Default.Send(PersonViewModel.Message.RefreshPatronList); }
public Perk(string name, string description, int inheritIDs, float x, float y, PerkCategory category, float size, int levelRequirement, OnApply applyMethods, OnDisable disableMethods) { Name = name; Description = description; InheritIDs = new int[] { inheritIDs }; PosOffsetX = x; PosOffsetY = y; Category = category; Size = size; Endless = false; LevelRequirement = levelRequirement; ApplyMethods = applyMethods; DisableMethods = disableMethods; ID = AllPerks.Count; Applied = false; AllPerks.Add(this); }
public void Apply() { OnApply?.Invoke(); }
private void ApplyClick(UIComponent component, UIMouseEventParameter eventParam) => OnApply?.Invoke();
internal void on_OnApply(AnimSequence AnimationSequence) => OnApply?.Invoke(AnimationSequence);
public void Apply() { _obj.ApplyTransformation(Matrix.ScaleMatrix(X, Y, Z)); OnApply?.Invoke(); }
private void button1_Click(object sender, EventArgs e) { OnApply?.Invoke(trackBar1.Value); }