mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-02 05:43:42 +01:00
Current Textures
This commit is contained in:
parent
1fe334e33a
commit
6e82242a72
10 changed files with 758 additions and 762 deletions
|
|
@ -11,6 +11,7 @@ using OtterGui.Raii;
|
|||
using Penumbra.GameData.ByteString;
|
||||
using Penumbra.GameData.Enums;
|
||||
using Penumbra.GameData.Files;
|
||||
using Penumbra.Import.Textures;
|
||||
using Penumbra.Mods;
|
||||
using Penumbra.Util;
|
||||
using static Penumbra.Mods.Mod;
|
||||
|
|
@ -121,6 +122,12 @@ public partial class ModEditWindow : Window, IDisposable
|
|||
WindowName = sb.ToString();
|
||||
}
|
||||
|
||||
public override void OnClose()
|
||||
{
|
||||
_left.Dispose();
|
||||
_right.Dispose();
|
||||
}
|
||||
|
||||
public override void Draw()
|
||||
{
|
||||
using var tabBar = ImRaii.TabBar( "##tabs" );
|
||||
|
|
@ -508,10 +515,14 @@ public partial class ModEditWindow : Window, IDisposable
|
|||
DrawMaterialPanel );
|
||||
_modelTab = new FileEditor< MdlFile >( "Models (WIP)", ".mdl", () => _editor?.MdlFiles ?? Array.Empty< Editor.FileRegistry >(),
|
||||
DrawModelPanel );
|
||||
_center = new CombinedTexture( _left, _right );
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_editor?.Dispose();
|
||||
_left.Dispose();
|
||||
_right.Dispose();
|
||||
_center.Dispose();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue