MCPcopy Create free account
hub / github.com/bluescan/tacentview / DoSnapMessageNoFrameTransModal

Method DoSnapMessageNoFrameTransModal

Src/Dialogs.cpp:299–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297
298
299void Viewer::DoSnapMessageNoFrameTransModal(bool justPressed)
300{
301 if (justPressed)
302 ImGui::OpenPopup("Snap Message##NoTransparentWorkArea");
303
304 // The unused isMessage bool is just so we get a close button in ImGui. Returns false if popup not open.
305 bool isMessage = true;
306 if
307 (
308 !ImGui::BeginPopupModal
309 (
310 "Snap Message##NoTransparentWorkArea", &isMessage,
311 ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize
312 )
313 )
314 {
315 return;
316 }
317
318 float buttonWidth = Gutil::GetUIParamScaled(76.0f, 2.5f);
319 ImGui::Text
320 (
321 "The Snap version of Tacent View does not\n"
322 "support transparent work area.\n\n"
323 "Please use the deb install or build from\n"
324 "source if you need this feature on Linux."
325 );
326 ImGui::NewLine();
327
328 float okOffset = Gutil::GetUIParamScaled(170.0f, 2.5f);
329 ImGui::SetCursorPosX(okOffset);
330 if (ImGui::Button("OK", tVector2(buttonWidth, 0.0f)))
331 ImGui::CloseCurrentPopup();
332
333 ImGui::EndPopup();
334}
335
336
337int Viewer::Rename_InputText_Callback(ImGuiInputTextCallbackData* data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected