20 lines
630 B
C++
20 lines
630 B
C++
![]() |
#include "gui.h"
|
||
|
#include "imgui.h"
|
||
|
#include "IconsFontAwesome4.h"
|
||
|
#include "misc/cpp/imgui_stdlib.h"
|
||
|
|
||
|
void FurnaceGUI::drawFindReplace() {
|
||
|
if (nextWindow==GUI_WINDOW_FIND) {
|
||
|
findOpen=true;
|
||
|
ImGui::SetNextWindowFocus();
|
||
|
nextWindow=GUI_WINDOW_NOTHING;
|
||
|
}
|
||
|
if (!findOpen) return;
|
||
|
ImGui::SetNextWindowSizeConstraints(ImVec2(64.0f*dpiScale,32.0f*dpiScale),ImVec2(scrW*dpiScale,scrH*dpiScale));
|
||
|
if (ImGui::Begin("Find/Replace",&findOpen,globalWinFlags)) {
|
||
|
ImGui::Text("What am I gonna do with you?");
|
||
|
}
|
||
|
if (ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows)) curWindow=GUI_WINDOW_FIND;
|
||
|
ImGui::End();
|
||
|
}
|