@@ -23,7 +23,7 @@ pub fn main() !void {
23
23
};
24
24
defer zglfw .terminate ();
25
25
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 {
27
27
std .log .err ("Failed to create window." , .{});
28
28
return ;
29
29
};
@@ -87,17 +87,17 @@ pub fn main() !void {
87
87
// zgui.setNextWindowSize(.{ .w = 420, .h = 300, .cond = .always });
88
88
89
89
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 ));
91
93
if (zgui .inputTextWithHint ("Input/ folder path" , .{ .hint = "Copy-paste a path from File Explorer here" , .buf = & input_folder_path_mut })) {
92
94
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 });
94
95
try writeSettings (settings );
95
96
}
96
97
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 ));
98
99
if (zgui .inputTextWithHint ("Mods/ folder path" , .{ .hint = "Copy-paste a path from File Explorer here" , .buf = & output_folder_path_mut })) {
99
100
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 });
101
101
try writeSettings (settings );
102
102
}
103
103
@@ -162,10 +162,9 @@ pub fn main() !void {
162
162
std .debug .print ("Done converting!\n " , .{});
163
163
}
164
164
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 ));
166
166
if (zgui .inputTextWithHint ("Game .exe path" , .{ .hint = "Copy-paste a path from File Explorer here" , .buf = & game_executable_path_mut })) {
167
167
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 });
169
168
try writeSettings (settings );
170
169
}
171
170
0 commit comments