MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / ModalDialog

Class ModalDialog

extensions/olcPGEX_QuickGUI.h:367–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365
366
367 class ModalDialog : public olc::PGEX
368 {
369 public:
370 ModalDialog();
371
372 public:
373 void ShowFileOpen(const std::string& sPath);
374
375 protected:
376 virtual bool OnBeforeUserUpdate(float& fElapsedTime) override;
377
378 private:
379 bool m_bShowDialog = false;
380
381 Manager m_manFileSelect;
382 ListBox* m_listVolumes = nullptr;
383 ListBox* m_listDirectory = nullptr;
384 ListBox* m_listFiles = nullptr;
385
386 std::vector<std::string> m_vVolumes;
387 std::vector<std::string> m_vDirectory;
388 std::vector<std::string> m_vFiles;
389 std::filesystem::path m_path;
390 };
391}
392
393

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected