mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-28 15:30:39 +00:00
Quick adjustment to editing bsmat
This commit is contained in:
parent
8cc294e07f
commit
ed015677df
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue