mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 05:01:53 +00:00
Texture processor cleanup, new asset properties config UI
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Bon;
|
||||
using GlitchyEngine.Content;
|
||||
using ImGui;
|
||||
|
||||
namespace GlitchyEditor.Assets.Importers;
|
||||
|
||||
@@ -21,18 +22,26 @@ abstract class Config
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public abstract void ShowEditor();
|
||||
}
|
||||
|
||||
[BonTarget, BonPolyRegister]
|
||||
class AssetImporterConfig : Config
|
||||
{
|
||||
public override void ShowEditor()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
[BonTarget, BonPolyRegister]
|
||||
class AssetProcessorConfig : Config
|
||||
{
|
||||
public override void ShowEditor()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
[BonTarget, BonPolyRegister]
|
||||
@@ -46,4 +55,16 @@ class AssetExporterConfig : Config
|
||||
get => _compression;
|
||||
set => SetIfChanged(ref _compression, value);
|
||||
}
|
||||
|
||||
public override void ShowEditor()
|
||||
{
|
||||
ImGui.PropertyTableStartNewProperty("Compression");
|
||||
ImGui.AttachTooltip("Specifies the compression method used to compress the processed asset.");
|
||||
|
||||
AssetCompression compression = _compression;
|
||||
if (ImGui.EnumCombo<AssetCompression>("##Compression", ref compression))
|
||||
{
|
||||
Compression = compression;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user