watafak
This commit is contained in:
@@ -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, () =>
|
||||
|
||||
Reference in New Issue
Block a user