| 258 | |
| 259 | |
| 260 | void Viewer::DoSnapMessageNoFileBrowseModal(bool justPressed) |
| 261 | { |
| 262 | if (justPressed) |
| 263 | ImGui::OpenPopup("Snap Message##NoFileBrowse"); |
| 264 | |
| 265 | // The unused isMessage bool is just so we get a close button in ImGui. Returns false if popup not open. |
| 266 | bool isMessage = true; |
| 267 | if |
| 268 | ( |
| 269 | !ImGui::BeginPopupModal |
| 270 | ( |
| 271 | "Snap Message##NoFileBrowse", &isMessage, |
| 272 | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize |
| 273 | ) |
| 274 | ) |
| 275 | { |
| 276 | return; |
| 277 | } |
| 278 | |
| 279 | float buttonWidth = Gutil::GetUIParamScaled(76.0f, 2.5f); |
| 280 | ImGui::Text |
| 281 | ( |
| 282 | "The Snap version of Tacent View does not\n" |
| 283 | "support opening Nautilus or Dolphin.\n\n" |
| 284 | "Please use the deb install or build from\n" |
| 285 | "source if you need this feature on Linux." |
| 286 | ); |
| 287 | ImGui::NewLine(); |
| 288 | |
| 289 | float okOffset = Gutil::GetUIParamScaled(170.0f, 2.5f); |
| 290 | ImGui::SetCursorPosX(okOffset); |
| 291 | |
| 292 | if (ImGui::Button("OK", tVector2(buttonWidth, 0.0f))) |
| 293 | ImGui::CloseCurrentPopup(); |
| 294 | |
| 295 | ImGui::EndPopup(); |
| 296 | } |
| 297 | |
| 298 | |
| 299 | void Viewer::DoSnapMessageNoFrameTransModal(bool justPressed) |
nothing calls this directly
no outgoing calls
no test coverage detected