Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Courses
Scotty3D
Commits
6c09f13a
Commit
6c09f13a
authored
Mar 10, 2021
by
TheNumbat
Browse files
auto size save dialog
parent
3acc29f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gui/manager.cpp
View file @
6c09f13a
...
@@ -914,9 +914,8 @@ void Manager::UIsavefirst(Scene& scene, Undo& undo) {
...
@@ -914,9 +914,8 @@ void Manager::UIsavefirst(Scene& scene, Undo& undo) {
Vec2
center
=
window_dim
/
2.0
f
;
Vec2
center
=
window_dim
/
2.0
f
;
ImGui
::
SetNextWindowPos
(
Vec2
{
center
.
x
,
center
.
y
},
0
,
Vec2
{
0.5
f
,
0.5
f
});
ImGui
::
SetNextWindowPos
(
Vec2
{
center
.
x
,
center
.
y
},
0
,
Vec2
{
0.5
f
,
0.5
f
});
ImGui
::
SetNextWindowSize
(
Vec2
{
150.0
f
,
50.0
f
});
ImGui
::
Begin
(
"Save Changes?"
,
&
save_first_shown
,
ImGui
::
Begin
(
"Save Changes?"
,
&
save_first_shown
,
ImGuiWindowFlags_NoSavedSettings
|
ImGuiWindowFlags_NoResize
);
ImGuiWindowFlags_NoSavedSettings
|
ImGuiWindowFlags_NoResize
|
ImGuiWindowFlags_AlwaysAutoResize
);
if
(
ImGui
::
Button
(
"Yes"
))
{
if
(
ImGui
::
Button
(
"Yes"
))
{
save_first_shown
=
false
;
save_first_shown
=
false
;
after_save
(
save_scene
(
scene
,
undo
));
after_save
(
save_scene
(
scene
,
undo
));
...
...
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