Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gauthier Quesnel
irritator
Commits
777ea135
Commit
777ea135
authored
Apr 28, 2020
by
Gauthier Quesnel
Browse files
gui: add default window size for both editor and simulation
parent
35726dd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/gui/node-editor.cpp
View file @
777ea135
...
...
@@ -809,6 +809,7 @@ struct editor
ImGuiWindowFlags
windows_flags
=
0
;
windows_flags
|=
ImGuiWindowFlags_MenuBar
;
ImGui
::
SetNextWindowSize
(
ImVec2
(
500
,
500
),
ImGuiCond_Once
);
if
(
!
ImGui
::
Begin
(
name
.
c_str
(),
&
show
,
windows_flags
))
{
ImGui
::
End
();
return
true
;
...
...
@@ -1237,6 +1238,7 @@ show_simulation_box(bool* show_simulation)
{
static
editor_id
current_editor_id
=
static_cast
<
editor_id
>
(
0
);
ImGui
::
SetNextWindowSize
(
ImVec2
(
250
,
400
),
ImGuiCond_Always
);
if
(
!
ImGui
::
Begin
(
"Simulation"
,
show_simulation
))
{
ImGui
::
End
();
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment