コード例 #1
0
        private void AddNewBloxDef()
        {
            Blox blox = BloxEd.CreateNewBloxDef();

            this.Target.bloxIdents.Add(blox.ident);
            this.targetBloxCache.Add(blox);
            this.Save();
            BloxListWindow instance = BloxListWindow.Instance;

            if ((object)instance != null)
            {
                instance.Repaint();
            }
        }
コード例 #2
0
        private void OnRenameBloxDef(plyTextInputWiz wiz)
        {
            string text = wiz.text;

            wiz.Close();
            if (!string.IsNullOrEmpty(text))
            {
                this.targetBloxCache[this.list.index].screenName = text;
                plyEdUtil.SetDirty(this.targetBloxCache[this.list.index]);
                BloxEd.SortBloxDefList();
                base.Repaint();
                BloxListWindow instance = BloxListWindow.Instance;
                if ((object)instance != null)
                {
                    instance.Repaint();
                }
                BloxEditorWindow instance2 = BloxEditorWindow.Instance;
                if ((object)instance2 != null)
                {
                    instance2.Repaint();
                }
            }
        }