コード例 #1
0
        public void Apply()
        {
            var mat = Matrix.XRotationMatrix(X);

            mat.Concatenate(Matrix.YRotationMatrix(Y));
            mat.Concatenate(Matrix.ZRotationMatrix(Z));
            _obj.ApplyTransformation(mat);
            OnApply?.Invoke();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
ファイル: Perk.cs プロジェクト: SPooCK/ChampionsOfForest
 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);
 }
コード例 #4
0
    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();
    }
コード例 #5
0
        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);
        }
コード例 #6
0
 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);
 }
コード例 #7
0
ファイル: CreateNewObject.cs プロジェクト: JoaoSilveira/CG
 public void Apply()
 {
     OnApply?.Invoke();
 }
コード例 #8
0
 private void ApplyClick(UIComponent component, UIMouseEventParameter eventParam) => OnApply?.Invoke();
コード例 #9
0
ファイル: AnimationModifier.cs プロジェクト: jcoder58/Plugins
 internal void on_OnApply(AnimSequence AnimationSequence) =>
 OnApply?.Invoke(AnimationSequence);
コード例 #10
0
 public void Apply()
 {
     _obj.ApplyTransformation(Matrix.ScaleMatrix(X, Y, Z));
     OnApply?.Invoke();
 }
コード例 #11
0
 private void button1_Click(object sender, EventArgs e)
 {
     OnApply?.Invoke(trackBar1.Value);
 }