diff --git a/imgui_old.ini b/imgui_old.ini new file mode 100644 index 0000000..0f40756 --- /dev/null +++ b/imgui_old.ini @@ -0,0 +1,22 @@ +[Window][Debug##Default] +Pos=60,60 +Size=400,400 +Collapsed=0 + +[Window][TextEditor] +Pos=1010,48 +Size=712,724 +Collapsed=0 + +[Window][Options] +Pos=120,205 +Size=375,362 +Collapsed=0 + +[Window][Shader] +Pos=642,262 +Size=1280,720 +Collapsed=0 + +[Docking][Data] + diff --git a/src/gui/Animator.cpp b/src/gui/Animator.cpp index e1dd5fe..d0a3e12 100644 --- a/src/gui/Animator.cpp +++ b/src/gui/Animator.cpp @@ -25,12 +25,12 @@ void Animator::Pulse(float *value, bool *tick) { } //template -void Animator::FadeIn(float &value) { - if (value < Max) - value += Speed; +void Animator::FadeIn(float *value) { + if (*value < Max) + *value += Speed; } //template -void Animator::FadeOut(float &value) { - if (value > Min) - value -= Speed; +void Animator::FadeOut(float *value) { + if (*value > Min) + *value -= Speed; }