Skip to content

Commit 3308608

Browse files
Update UpdateWindow.cs
1 parent 16cd8aa commit 3308608

1 file changed

Lines changed: 36 additions & 2 deletions

File tree

Meddle/Meddle.Plugin/UI/Windows/UpdateWindow.cs

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,20 @@ public UpdateWindow(Configuration config) : base("Meddle Updates")
100100
new TextUpdateLine(" + Fix selecting moving characters from dropdowns not working sometimes."),
101101
]
102102
},
103+
new()
104+
{
105+
Tag = "Triangle Winding Fix, Decal Improvements",
106+
Date = "2025-11-22",
107+
Changes =
108+
[
109+
new WarningUpdateLine(" ! NOTE: MeddleTools is now distributed as a blender extension, please re-install following the instructions on the MeddleTools page."),
110+
new LinkLine("https://github.com/PassiveModding/MeddleTools", Color: new Vector4(0.95f, 0.47f, 0.17f, 1)),
111+
new TextUpdateLine(" + Added an option (enabled by default) to correct triangle winding for models exported from Meddle. " +
112+
"This resolves a long-standing issue where blender would mess up face orientations on import for certain models."),
113+
new TextUpdateLine(" + Added proper decal resolution and support for FC crest decals to be exported."),
114+
new TextUpdateLine(" + Various improvements to improve stability when processing textures."),
115+
]
116+
}
103117
];
104118

105119
public class UpdateLog
@@ -118,7 +132,7 @@ public record TextUpdateLine(string Text) : IUpdateLine
118132
{
119133
public void Draw()
120134
{
121-
ImGui.Text(Text);
135+
ImGui.TextWrapped(Text);
122136
}
123137
}
124138

@@ -128,7 +142,27 @@ public void Draw()
128142
{
129143
using (ImRaii.PushColor(ImGuiCol.Text, new Vector4(1f, 0.5f, 0.5f, 1f)))
130144
{
131-
ImGui.Text(Text);
145+
ImGui.TextWrapped(Text);
146+
}
147+
}
148+
}
149+
150+
public record LinkLine(string Label, string? Url = null, Vector4? Color = null) : IUpdateLine
151+
{
152+
public void Draw()
153+
{
154+
var url = Url ?? Label;
155+
// button
156+
using (ImRaii.PushColor(ImGuiCol.Button, Color ?? new Vector4(0.2f, 0.6f, 1f, 1f)))
157+
{
158+
if (ImGui.Button(Label))
159+
{
160+
Process.Start(new ProcessStartInfo
161+
{
162+
FileName = url,
163+
UseShellExecute = true
164+
});
165+
}
132166
}
133167
}
134168
}

0 commit comments

Comments
 (0)