mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-07 16:12:31 +00:00
GUI: remove unused function
This commit is contained in:
parent
3a0fd28165
commit
0f5adae785
2 changed files with 0 additions and 47 deletions
|
@ -2845,8 +2845,6 @@ class FurnaceGUI {
|
|||
void pushToggleColors(bool status);
|
||||
void popToggleColors();
|
||||
|
||||
void highlightWindow(const char* winName);
|
||||
|
||||
FurnaceGUIImage* getImage(FurnaceGUIImages image);
|
||||
FurnaceGUITexture* getTexture(FurnaceGUIImages image, FurnaceGUIBlendMode blendMode=GUI_BLEND_MODE_BLEND);
|
||||
void drawImage(ImDrawList* dl, FurnaceGUIImages image, const ImVec2& pos, const ImVec2& scale, double rotate, const ImVec2& uvMin, const ImVec2& uvMax, const ImVec4& imgColor);
|
||||
|
|
|
@ -886,51 +886,6 @@ void FurnaceGUI::drawTutorial() {
|
|||
}
|
||||
}
|
||||
|
||||
// helper functions
|
||||
|
||||
void FurnaceGUI::highlightWindow(const char* winName) {
|
||||
ImDrawList* dl=ImGui::GetWindowDrawList();
|
||||
ImU32 col=ImGui::GetColorU32(uiColors[GUI_COLOR_MODAL_BACKDROP]);
|
||||
|
||||
ImGuiWindow* win=ImGui::FindWindowByName(winName);
|
||||
if (win!=NULL) {
|
||||
ImVec2 start=win->Pos;
|
||||
ImVec2 end=ImVec2(
|
||||
start.x+win->Size.x,
|
||||
start.y+win->Size.y
|
||||
);
|
||||
|
||||
dl->AddRectFilled(
|
||||
ImVec2(0,0),
|
||||
ImVec2(start.x,canvasH),
|
||||
col
|
||||
);
|
||||
dl->AddRectFilled(
|
||||
ImVec2(start.x,0),
|
||||
ImVec2(canvasW,start.y),
|
||||
col
|
||||
);
|
||||
dl->AddRectFilled(
|
||||
ImVec2(end.x,start.y),
|
||||
ImVec2(canvasW,canvasH),
|
||||
col
|
||||
);
|
||||
dl->AddRectFilled(
|
||||
ImVec2(start.x,end.y),
|
||||
ImVec2(end.x,canvasH),
|
||||
col
|
||||
);
|
||||
|
||||
dl->AddRect(start,end,ImGui::GetColorU32(uiColors[GUI_COLOR_TEXT]),0,0,3.0f*dpiScale);
|
||||
} else {
|
||||
dl->AddRectFilled(
|
||||
ImVec2(0,0),
|
||||
ImVec2(canvasW,canvasH),
|
||||
col
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// CV
|
||||
// 320x224
|
||||
|
||||
|
|
Loading…
Reference in a new issue