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

Fix image editor orientation setting

This commit is contained in:
KillzXGaming 2019-05-14 17:11:48 -04:00
parent 9d307b08a2
commit c367e345a3
8 changed files with 9 additions and 2 deletions

Binary file not shown.

View File

@ -774,6 +774,10 @@ namespace FirstPlugin
var animFolder = new BFRESAnimFolder();
var externalFilesFolder = new BFRESGroupNode(BRESGroupType.Embedded);
//Reload context menus to load specific context menus
modelFolder.LoadContextMenus();
texturesFolder.LoadContextMenus();
texturesFolder.ShowNewContextMenu = false;
Nodes.Add(modelFolder);
@ -896,6 +900,9 @@ namespace FirstPlugin
var animFolder = new BFRESAnimFolder();
var externalFilesFolder = new BFRESGroupNode(BRESGroupType.Embedded);
//Reload context menus for models to load specific context menus
modelFolder.LoadContextMenus();
//Texture folder acts like a bntx for saving back
//This will only save if the user adds textures to it or the file has a bntx already
texturesFolder.IFileInfo = new IFileInfo();

View File

@ -14,6 +14,7 @@ namespace Bfres.Structs
{
public enum BRESGroupType
{
None,
Models,
Textures,
SkeletalAnim,

BIN
Switch_Toolbox.zip Normal file

Binary file not shown.

View File

@ -182,9 +182,8 @@ namespace Switch_Toolbox.Library.Forms
SetEditorOrientation(Runtime.ImageEditor.DisplayVertical);
//If it's horizontal we need to update it manually
if (!Runtime.ImageEditor.DisplayVertical)
SetOrientation();
DisplayHorizontal();
propertyGridToolStripMenuItem.Checked = Runtime.ImageEditor.ShowPropertiesPanel;