This commit is contained in:
2025-12-16 06:31:29 +09:00
parent bdfcf254a8
commit 4444a88746
32 changed files with 1204 additions and 464 deletions

View File

@@ -110,19 +110,9 @@ public class DataAnalysisUi : WindowMediatorSubscriberBase
{
_hasUpdate = true;
});
SizeConstraints = new()
{
MinimumSize = new()
{
X = 1650,
Y = 1000
},
MaximumSize = new()
{
X = 3840,
Y = 2160
}
};
WindowBuilder.For(this)
.SetSizeConstraints(new Vector2(1650, 1000), new Vector2(3840, 2160))
.Apply();
_conversionProgress.ProgressChanged += ConversionProgress_ProgressChanged;
}
@@ -811,7 +801,7 @@ public class DataAnalysisUi : WindowMediatorSubscriberBase
var category = TextureMetadataHelper.DetermineCategory(classificationPath);
var slot = TextureMetadataHelper.DetermineSlot(category, classificationPath);
var format = entry.Format.Value;
var suggestion = TextureMetadataHelper.GetSuggestedTarget(format, mapKind);
var suggestion = TextureMetadataHelper.GetSuggestedTarget(format, mapKind, classificationPath);
TextureCompressionTarget? currentTarget = TextureMetadataHelper.TryMapFormatToTarget(format, out var mappedTarget)
? mappedTarget
: null;
@@ -2131,8 +2121,16 @@ public class DataAnalysisUi : WindowMediatorSubscriberBase
});
DrawSelectableColumn(isSelected, () =>
{
Action? tooltipAction = null;
ImGui.TextUnformatted(row.Format);
return null;
if (!row.IsAlreadyCompressed)
{
ImGui.SameLine(0f, 4f * ImGuiHelpers.GlobalScale);
var iconColor = isSelected ? SelectedTextureRowTextColor : UIColors.Get("LightlessYellow");
_uiSharedService.IconText(FontAwesomeIcon.ExclamationTriangle, iconColor);
tooltipAction = () => UiSharedService.AttachToolTip("Run compression to reduce file size.");
}
return tooltipAction;
});
DrawSelectableColumn(isSelected, () =>