Skip to content

Commit b026f81

Browse files
committed
Update title version to v6.0.0
1 parent cda6e1b commit b026f81

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/main.zig

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub fn main() !void {
2323
};
2424
defer zglfw.terminate();
2525

26-
const window = zglfw.Window.create(1600, 300, "Legacy Mod Converter 1.0 for Pre-Release 5.2", null) catch {
26+
const window = zglfw.Window.create(1600, 300, "Legacy Mod Converter v1.0 for CCCP v6.0.0", null) catch {
2727
std.log.err("Failed to create window.", .{});
2828
return;
2929
};
@@ -87,17 +87,17 @@ pub fn main() !void {
8787
// zgui.setNextWindowSize(.{ .w = 420, .h = 300, .cond = .always });
8888

8989
if (zgui.begin("invisible_title", .{ .flags = .{ .no_title_bar = true, .no_resize = true, .no_background = true } })) {
90-
zgui.setNextItemWidth(@max(zgui.calcTextSize(settings.input_folder_path, .{})[0], 585));
90+
const min_width = 855;
91+
92+
zgui.setNextItemWidth(@max(zgui.calcTextSize(settings.input_folder_path, .{})[0], min_width));
9193
if (zgui.inputTextWithHint("Input/ folder path", .{ .hint = "Copy-paste a path from File Explorer here", .buf = &input_folder_path_mut })) {
9294
settings.input_folder_path = std.mem.span(@as([*:0]u8, &input_folder_path_mut));
93-
std.debug.print("settings.input_folder_path is now '{s}'\n", .{settings.input_folder_path});
9495
try writeSettings(settings);
9596
}
9697

97-
zgui.setNextItemWidth(@max(zgui.calcTextSize(settings.output_folder_path, .{})[0], 585));
98+
zgui.setNextItemWidth(@max(zgui.calcTextSize(settings.output_folder_path, .{})[0], min_width));
9899
if (zgui.inputTextWithHint("Mods/ folder path", .{ .hint = "Copy-paste a path from File Explorer here", .buf = &output_folder_path_mut })) {
99100
settings.output_folder_path = std.mem.span(@as([*:0]u8, &output_folder_path_mut));
100-
std.debug.print("settings.output_folder_path is now '{s}'\n", .{settings.output_folder_path});
101101
try writeSettings(settings);
102102
}
103103

@@ -162,10 +162,9 @@ pub fn main() !void {
162162
std.debug.print("Done converting!\n", .{});
163163
}
164164

165-
zgui.setNextItemWidth(@max(zgui.calcTextSize(settings.game_executable_path, .{})[0], 585));
165+
zgui.setNextItemWidth(@max(zgui.calcTextSize(settings.game_executable_path, .{})[0], min_width));
166166
if (zgui.inputTextWithHint("Game .exe path", .{ .hint = "Copy-paste a path from File Explorer here", .buf = &game_executable_path_mut })) {
167167
settings.game_executable_path = std.mem.span(@as([*:0]u8, &game_executable_path_mut));
168-
std.debug.print("settings.game_executable_path is now '{s}'\n", .{settings.game_executable_path});
169168
try writeSettings(settings);
170169
}
171170

0 commit comments

Comments
 (0)