Skip to content

Commit

Permalink
[FIX] : fix the display of error/warning pane
Browse files Browse the repository at this point in the history
  • Loading branch information
aiekick committed Jul 21, 2024
1 parent 55b52db commit 55d99cd
Show file tree
Hide file tree
Showing 8 changed files with 251 additions and 275 deletions.
4 changes: 2 additions & 2 deletions src/Backends/MainBackend.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#include <Headers/RenderPackHeaders.h>
#include <Gui/GuiBackend.h>
#include <Renderer/RenderPack.h>
#include <Systems/Interfaces/MouseInterface.h>
#include <Systems/Interfaces/CameraInterface.h>
#include <Interfaces/MouseInterface.h>
#include <Interfaces/CameraInterface.h>

#include <unordered_set>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion src/Gui/MainFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ void MainFrame::Display(ct::ivec2 vSize) {
SettingsDlg::Instance()->DrawDialog();
VersionSystem::Instance()->DrawNewVersionDialog();
ShadertoyBackupFileImportDlg::Instance()->DrawDialog();
LayoutManager::Instance()->DrawDialogsAndPopups(0U, size);
LayoutManager::Instance()->DrawDialogsAndPopups(0U, ImRect(ImVec2(), size));

DrawErrorDialog();
DoAbout();
Expand Down
155 changes: 80 additions & 75 deletions src/Gui/MainToolBar.cpp

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/Headers/NoodlesPlateBuild.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#define NoodlesPlate_Prefix "NoodlesPlate"
#define NoodlesPlate_BuildNumber 782
#define NoodlesPlate_BuildNumber 786
#define NoodlesPlate_MinorNumber 7
#define NoodlesPlate_MajorNumber 0
#define NoodlesPlate_BuildId "0.7.782"
#define NoodlesPlate_BuildId "0.7.786"
2 changes: 1 addition & 1 deletion src/Panes/ConfigSwitcherPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ bool ConfigSwitcherPane::DrawPanes(const uint32_t& /*vCurrentFrame*/, bool* vOpe
return false;
}

bool ConfigSwitcherPane::DrawDialogsAndPopups(const uint32_t& /*vCurrentFrame*/, const ImVec2& /*vMaxSize*/, ImGuiContext* /*vContextPtr*/, void* /*vUserDatas*/) {
bool ConfigSwitcherPane::DrawDialogsAndPopups(const uint32_t& /*vCurrentFrame*/, const ImRect& vMaxRect /*vMaxSize*/, ImGuiContext* /*vContextPtr*/, void* /*vUserDatas*/) {
ShaderKeyConfigSwitcherUnified::Instance()->DrawDialog();
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Panes/ConfigSwitcherPane.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ConfigSwitcherPane : public AbstractPane, public conf::ConfigAbstract
bool Init() override;
void Unit() override;
bool DrawPanes(const uint32_t& /*vCurrentFrame*/, bool* vOpened, ImGuiContext* /*vContextPtr*/ = nullptr, void* vUserDatas = nullptr) override;
bool DrawDialogsAndPopups(const uint32_t& /*vCurrentFrame*/, const ImVec2& vMaxSize, ImGuiContext* vContextPtr = nullptr, void* vUserDatas = nullptr) override;
bool DrawDialogsAndPopups(const uint32_t& /*vCurrentFrame*/, const ImRect& vMaxRect, ImGuiContext* vContextPtr = nullptr, void* vUserDatas = nullptr) override;

// configuration
std::string getXml(const std::string& vOffset, const std::string& vUserDatas = "") override;
Expand Down
Loading

0 comments on commit 55d99cd

Please sign in to comment.