Plutonium
Plutonium copied to clipboard
Help with new CreateShowDialog?
In previous builds you have this at the end of CreateShowdialog: std::string &icon_path = ""
I can just put in the path for an Icon and it works fine.
Now you changed in new plutonium builds - sdl2::TextureHandle::Ref icon = {}
This obviously break my code now as I need to changed it bacause it's no longer a sting path, I had a look in your example, but you didn't show how to now load that graphic file. Can you post an example please.
Previous code would look like this:
std::string fail = "romfs:/images/icons/fail.png";
inst::ui::mainApp->CreateShowDialog("inst.info_page.failed"_lang + inst::util::shortenString(ourTitleList[titleItr].filename().string(), 42, true) + "!", "inst.info_page.failed_desc"_lang + "\n\n" + (std::string)e.what(), { "common.ok"_lang }, true, fail);
How can I now load that icon as a texture so it works with the new code?