mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 22:08:26 +00:00
Fix replacing wii u bflims in the layout editor
This commit is contained in:
parent
587871b653
commit
a79082ecbe
2 changed files with 11 additions and 0 deletions
|
@ -92,6 +92,8 @@ namespace FirstPlugin
|
||||||
|
|
||||||
private void UpdateForm(ImageEditorBase form)
|
private void UpdateForm(ImageEditorBase form)
|
||||||
{
|
{
|
||||||
|
if (form == null) return;
|
||||||
|
|
||||||
if (image != null)
|
if (image != null)
|
||||||
{
|
{
|
||||||
Properties prop = new Properties();
|
Properties prop = new Properties();
|
||||||
|
@ -332,6 +334,9 @@ namespace FirstPlugin
|
||||||
|
|
||||||
LoadComponents(Format, ftex.UseBc4Alpha);
|
LoadComponents(Format, ftex.UseBc4Alpha);
|
||||||
|
|
||||||
|
if (RenderableTex != null) //Reload bflim in opengl if used
|
||||||
|
LoadOpenGLTexture();
|
||||||
|
|
||||||
UpdateForm();
|
UpdateForm();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -374,9 +374,15 @@ namespace LayoutBXLYT
|
||||||
if (texture == null)
|
if (texture == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Console.WriteLine("texture edited!");
|
||||||
|
|
||||||
TextureList[textName] = texture;
|
TextureList[textName] = texture;
|
||||||
//Update the icon by reloading all of them
|
//Update the icon by reloading all of them
|
||||||
|
|
||||||
|
Console.WriteLine("LoadTextures!");
|
||||||
LoadTextures(ParentEditor, ActiveLayout, TextureList);
|
LoadTextures(ParentEditor, ActiveLayout, TextureList);
|
||||||
|
Console.WriteLine("FIN!");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue