1
0
mirror of synced 2024-11-30 18:24:39 +01:00

Quick adjustment to editing bsmat

This commit is contained in:
KillzXGaming 2021-11-19 18:11:28 -05:00
parent 8cc294e07f
commit ed015677df

View File

@ -41,6 +41,7 @@ namespace MetroidDreadLibrary
public TextEditor OpenForm() public TextEditor OpenForm()
{ {
var textEditor = new TextEditor(); var textEditor = new TextEditor();
FillEditor(textEditor);
return textEditor; return textEditor;
} }
@ -48,6 +49,8 @@ namespace MetroidDreadLibrary
{ {
((TextEditor)control).FileFormat = this; ((TextEditor)control).FileFormat = this;
((TextEditor)control).FillEditor(JsonContents); ((TextEditor)control).FillEditor(JsonContents);
((TextEditor)control).TextEditorChanged = null;
((TextEditor)control).TextEditorChanged += delegate ((TextEditor)control).TextEditorChanged += delegate
{ {
JsonContents = ((TextEditor)control).GetText(); JsonContents = ((TextEditor)control).GetText();