18using namespace std::literals;
25 drawURL(
"FAQ",
strCat(
"file://", docDir,
"/manual/faq.html"));
26 drawURL(
"Setup Guide",
strCat(
"file://", docDir,
"/manual/setup.html"));
27 drawURL(
"User Manual",
strCat(
"file://", docDir,
"/manual/user.html"));
29 ImGui::MenuItem(
"Dear ImGui user guide",
nullptr, &showImGuiUserGuide);
31 ImGui::MenuItem(
"About openMSX",
nullptr, &showAboutOpenMSX);
32 ImGui::MenuItem(
"About Dear ImGui",
nullptr, &showAboutImGui);
38 if (showAboutOpenMSX) paintAbout();
39 if (showAboutImGui) ImGui::ShowAboutWindow(&showAboutImGui);
40 if (showImGuiUserGuide) {
41 im::Window(
"Dear ImGui User Guide", &showImGuiUserGuide, [&]{
42 ImGui::ShowUserGuide();
47void ImGuiHelp::paintAbout()
49 im::Window(
"About openMSX", &showAboutOpenMSX, [&]{
54 auto r = context.resolve(
"icons/openMSX-logo-256.png");
63 if (logo->texture.get()) {
64 ImGui::Image(logo->texture.getImGui(), logo->size);
70 im::Table(
"##table", 2, ImGuiTableFlags_SizingFixedFit, [&]{
89 drawURL(
"openMSX.org",
"https://openmsx.org");
void paint(MSXMotherBoard *motherBoard) override
void showMenu(MSXMotherBoard *motherBoard) override
static std::string full()
static const char *const COPYRIGHT
void TextUnformatted(const std::string &str)
void Table(const char *str_id, int column, ImGuiTableFlags flags, const ImVec2 &outer_size, float inner_width, std::invocable<> auto next)
void Window(const char *name, bool *p_open, ImGuiWindowFlags flags, std::invocable<> auto next)
bool Menu(const char *label, bool enabled, std::invocable<> auto next)
void Group(std::invocable<> auto next)
const string & getSystemDocDir()
Get system doc directory.
This file implemented 3 utility functions:
const FileContext & systemFileContext()
void drawURL(std::string_view text, zstring_view url)
gl::Texture loadTexture(const std::string &filename, ivec2 &size)