示例#1
0
        private void AssignToSelected()
        {
            SplineTreeItem currentItem = this.GetCurrentItem();

            if (currentItem == null)
            {
                return;
            }
            using (PromptInventory promptInventory = new PromptInventory())
            {
                promptInventory.Root  = SplineInventory.Instance.Root;
                promptInventory.Value = (currentItem.Spline.IsValid ? currentItem.Spline.Entry : SplineInventory.Entry.Null);
                if (promptInventory.ShowDialog(this) != DialogResult.Cancel)
                {
                    this.AssignSplineId(currentItem.Id, (SplineInventory.Entry)promptInventory.Value);
                }
            }
        }
示例#2
0
        private void AssignToSelected()
        {
            TextureTreeItem currentItem = this.GetCurrentItem();

            if (currentItem == null)
            {
                return;
            }
            using (PromptInventory promptInventory = new PromptInventory())
            {
                promptInventory.Root  = TextureInventory.Instance.Root;
                promptInventory.Value = currentItem.Entry;
                if (promptInventory.ShowDialog(this) != DialogResult.Cancel)
                {
                    this.AssignTextureId(currentItem.Id, (TextureInventory.Entry)promptInventory.Value);
                }
            }
        }
示例#3
0
 private void AssignToSelected()
 {
     TextureTreeItem currentItem = this.GetCurrentItem();
     if (currentItem == null)
     {
         return;
     }
     using (PromptInventory promptInventory = new PromptInventory())
     {
         promptInventory.Root = TextureInventory.Instance.Root;
         promptInventory.Value = currentItem.Entry;
         if (promptInventory.ShowDialog(this) != DialogResult.Cancel)
         {
             this.AssignTextureId(currentItem.Id, (TextureInventory.Entry)promptInventory.Value);
         }
     }
 }
示例#4
0
 private void AssignToSelected()
 {
     SplineTreeItem currentItem = this.GetCurrentItem();
     if (currentItem == null)
     {
         return;
     }
     using (PromptInventory promptInventory = new PromptInventory())
     {
         promptInventory.Root = SplineInventory.Instance.Root;
         promptInventory.Value = (currentItem.Spline.IsValid ? currentItem.Spline.Entry : SplineInventory.Entry.Null);
         if (promptInventory.ShowDialog(this) != DialogResult.Cancel)
         {
             this.AssignSplineId(currentItem.Id, (SplineInventory.Entry)promptInventory.Value);
         }
     }
 }
示例#5
0
 private void NewWildernessInternal()
 {
     this.NewMapInternal();
     using (PromptInventory promptInventory = new PromptInventory())
     {
         promptInventory.Root = WildernessInventory.Instance.Root;
         if (promptInventory.ShowDialog(this) == DialogResult.OK)
         {
             Wilderness.RunScriptEntry((WildernessInventory.Entry)promptInventory.Value);
         }
     }
 }