@@ -137,12 +137,12 @@ void RenderInterface(GLFWwindow* window, Image& image, Config* config, Model& mo
137137 ImGui::EndMenu ();
138138 }
139139 if (ImGui::BeginMenu (" Help" )) {
140- if (ImGui::MenuItem (" About" )) {
141- config->aboutOpened = true ;
142- }
143140 if (ImGui::MenuItem (" Help" )) {
144141 config->helpOpened = true ;
145142 }
143+ if (ImGui::MenuItem (" About" )) {
144+ config->aboutOpened = true ;
145+ }
146146 ImGui::EndMenu ();
147147 }
148148 ImGui::EndMainMenuBar ();
@@ -261,51 +261,59 @@ void RenderInterface(GLFWwindow* window, Image& image, Config* config, Model& mo
261261 ImGui::PopStyleVar ();
262262 }
263263
264- ImVec2 center = ImGui::GetMainViewport ()->GetCenter ();
264+ const ImVec2 center = ImGui::GetMainViewport ()->GetCenter ();
265265 ImGui::SetNextWindowPos (center);
266266
267267 if (config->aboutOpened ) {
268268 ImGui::SetNextWindowPos (ImGui::GetMainViewport ()->GetCenter (), ImGuiCond_Appearing, ImVec2 (0 .5F , 0 .5F ));
269+ ImGui::SetNextWindowSize (ImVec2 (500 , 100 ));
269270
270- ImGui::Begin (" About" , &config->aboutOpened , ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse);
271- ImGui::Text (" A lithophane generation tool with 3D preview and customisation." );
271+ ImGui::Begin (" About" , &config->aboutOpened , ImGuiWindowFlags_NoCollapse);
272+ ImGui::TextWrapped (" A lithophane generation tool with 3D preview and customisation." );
272273 ImGui::Spacing ();
273- ImGui::Text (" Version: 1.0.0" );
274+ ImGui::TextWrapped (" Version: 1.0.0" );
274275 ImGui::TextLinkOpenURL (" Project GitHub" , " https://github.com/yellowatom/lithogen" );
275276 ImGui::End ();
276277 }
277278
278279 if (config->helpOpened ) {
279280 ImGui::SetNextWindowPos (ImGui::GetMainViewport ()->GetCenter (), ImGuiCond_Appearing, ImVec2 (0 .5F , 0 .5F ));
281+ ImGui::SetNextWindowSize (ImVec2 (500 , 500 ));
280282
281- ImGui::Begin (" Help" , &config->helpOpened , ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse);
283+ ImGui::Begin (" Help" , &config->helpOpened , ImGuiWindowFlags_NoCollapse);
284+
285+ if (ImGui::CollapsingHeader (" Controls" , ImGuiTreeNodeFlags_DefaultOpen)) {
286+ ImGui::TextWrapped (" Sliders can be control clicked to enter specific numbers manually.\n The 3D preview can "
287+ " be dragged to rotate the camera and mouse wheel will zoom in and out." );
288+ }
282289
283290 if (ImGui::CollapsingHeader (" Importing and Exporting" , ImGuiTreeNodeFlags_DefaultOpen)) {
284- ImGui::Text (" Under file, dialogues for loading images and saving models can be found." );
291+ ImGui::TextWrapped (" Under file, dialogues for loading images and saving models can be found." );
285292 }
286293
287294 if (ImGui::CollapsingHeader (" View Customisation" , ImGuiTreeNodeFlags_DefaultOpen)) {
288- ImGui::Text (
295+ ImGui::TextWrapped (
289296 " Under view, various checkboxes can be found to hide or adjust elements of the 3D model viewer." );
290297 }
291298
292299 if (ImGui::CollapsingHeader (" Settings Explanation" , ImGuiTreeNodeFlags_DefaultOpen)) {
293300 ImGui::SeparatorText (" Mesh Type" );
294- ImGui::Text (" Which shape the lithophane image will be placed on." );
301+ ImGui::TextWrapped (" Which shape the lithophane image will be placed on." );
295302
296303 ImGui::SeparatorText (" Dimensions" );
297- ImGui::Text (" The width and height of the final model in millimeters." );
304+ ImGui::TextWrapped (" The width and height of the final model in millimeters." );
298305
299306 ImGui::SeparatorText (" Thickness" );
300- ImGui::Text (
301- " The minium thickness will determine how much space is inbetween the back of the model and the\n "
302- " lowest point in the lithophane depth, the maximum thickness will be the highest point the\n "
307+ ImGui::TextWrapped (
308+ " The minium thickness will determine how much space is inbetween the back of the model and the "
309+ " lowest point in the lithophane depth, the maximum thickness will be the highest point the "
303310 " lithophane topology can reach." );
304311
305312 ImGui::SeparatorText (" Grayscale Preference" );
306- ImGui::Text (" This setting adjusts how red, green and blue are weighted when generating the single height\n "
307- " value per pixel, this should usually be left as default unless there is a specific reason to\n "
308- " change it." );
313+ ImGui::TextWrapped (
314+ " This setting adjusts how red, green and blue are weighted when generating the single height "
315+ " value per pixel, this should usually be left as default unless there is a specific reason to "
316+ " change it." );
309317 }
310318
311319 ImGui::End ();
0 commit comments