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
33a61d41
Commit
33a61d41
authored
Jul 07, 2020
by
Gauthier Quesnel
Browse files
gui: reorder windows
parent
120a815f
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/gui/node-editor.cpp
View file @
33a61d41
...
...
@@ -2090,6 +2090,7 @@ editor::show_editor() noexcept
ImGuiWindowFlags
windows_flags
=
0
;
windows_flags
|=
ImGuiWindowFlags_MenuBar
;
ImGui
::
SetNextWindowPos
(
ImVec2
(
500
,
50
),
ImGuiCond_FirstUseEver
);
ImGui
::
SetNextWindowSize
(
ImVec2
(
500
,
500
),
ImGuiCond_Once
);
if
(
!
ImGui
::
Begin
(
name
.
c_str
(),
&
show
,
windows_flags
))
{
ImGui
::
End
();
...
...
@@ -2417,7 +2418,8 @@ show_simulation_box(bool* show_simulation)
{
static
editor_id
current_editor_id
=
static_cast
<
editor_id
>
(
0
);
ImGui
::
SetNextWindowSize
(
ImVec2
(
250
,
400
),
ImGuiCond_Once
);
ImGui
::
SetNextWindowPos
(
ImVec2
(
50
,
50
),
ImGuiCond_FirstUseEver
);
ImGui
::
SetNextWindowSize
(
ImVec2
(
250
,
350
),
ImGuiCond_Once
);
if
(
!
ImGui
::
Begin
(
"Simulation"
,
show_simulation
))
{
ImGui
::
End
();
return
;
...
...
@@ -2578,6 +2580,7 @@ show_simulation_box(bool* show_simulation)
static
void
show_settings_window
(
bool
*
is_open
)
{
ImGui
::
SetNextWindowPos
(
ImVec2
(
300
,
300
),
ImGuiCond_FirstUseEver
);
ImGui
::
SetNextWindowSize
(
ImVec2
(
350
,
400
),
ImGuiCond_Once
);
if
(
!
ImGui
::
Begin
(
"Settings"
,
is_open
))
{
ImGui
::
End
();
...
...
@@ -2629,7 +2632,8 @@ node_editor_initialize()
void
show_plot_box
(
bool
*
show_plot
)
{
ImGui
::
SetNextWindowSize
(
ImVec2
(
600
,
400
),
ImGuiCond_Once
);
ImGui
::
SetNextWindowPos
(
ImVec2
(
50
,
400
),
ImGuiCond_FirstUseEver
);
ImGui
::
SetNextWindowSize
(
ImVec2
(
600
,
350
),
ImGuiCond_Once
);
if
(
!
ImGui
::
Begin
(
"Plot"
,
show_plot
))
{
ImGui
::
End
();
return
;
...
...
@@ -2675,7 +2679,7 @@ node_editor_show()
static
bool
show_log
=
true
;
static
bool
show_simulation
=
true
;
static
bool
show_demo
=
false
;
static
bool
show_plot
=
fals
e
;
static
bool
show_plot
=
tru
e
;
static
bool
show_settings
=
false
;
bool
ret
=
true
;
...
...
app/gui/window-logger.cpp
View file @
33a61d41
...
...
@@ -56,7 +56,8 @@ window_logger::log(const int level, const char* fmt, va_list args)
void
window_logger
::
show
(
bool
*
is_show
)
{
ImGui
::
SetNextWindowSize
(
ImVec2
(
500
,
400
),
ImGuiCond_FirstUseEver
);
ImGui
::
SetNextWindowPos
(
ImVec2
(
70
,
450
),
ImGuiCond_FirstUseEver
);
ImGui
::
SetNextWindowSize
(
ImVec2
(
400
,
300
),
ImGuiCond_FirstUseEver
);
if
(
!
ImGui
::
Begin
(
"Log"
,
is_show
))
{
ImGui
::
End
();
...
...
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