private void OnRenameBloxDef(plyTextInputWiz wiz) { string text = wiz.text; wiz.Close(); if (!string.IsNullOrEmpty(text)) { BloxEd.BloxGlobalObj.bloxDefs[this.selectedBloxIdx].screenName = text; plyEdUtil.SetDirty(BloxEd.BloxGlobalObj.bloxDefs[this.selectedBloxIdx]); BloxEd.SortBloxDefList(); base.Repaint(); BloxEditorWindow instance = BloxEditorWindow.Instance; if ((object)instance != null) { instance.Repaint(); } plyEdUtil.RepaintInspector(typeof(BloxContainer)); } }
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(); } } }