static void _on_crash() { int res = IupAlarm("Pic2MCMap has Crashed!", "Unfortunately, the program has crashed.\nIf this is the first time you see this message, trying repeating the same steps you made to get this " "message.\nIf this message reappears, please submit an issue to the project's GitHub page.\n\nThe program will now close.", "Open GitHub Page", "Exit", NULL); if(res == 1) IupHelp("https://github.com/wooky/pic2mcmap/issues"); exit(-1); }
static int iLinkButton_CB(Ihandle* ih, int button, int pressed, int x, int y, char* status) { if (button==IUP_BUTTON1 && pressed) { IFns cb = (IFns)IupGetCallback(ih, "ACTION"); char* url = iupAttribGetStr(ih, "URL"); if (cb) { int ret = cb(ih, url); if (ret == IUP_CLOSE) IupExitLoop(); else if (ret == IUP_DEFAULT && url) IupHelp(url); } else IupHelp(url); } (void)x; (void)y; (void)status; return IUP_DEFAULT; }
int item_help_action_cb(void) { IupHelp("http://www.tecgraf.puc-rio.br/iup"); return IUP_DEFAULT; }
//Open up the wiki page int _wiki(Ihandle* self) { #define WIKI_URL "https://github.com/wooky/pic2mcmap/wiki" IupHelp(WIKI_URL); return IUP_DEFAULT; }
static int Help(lua_State *L) { const char *url = luaL_checkstring(L,1); IupHelp(url); return 0; }
void HelpTest(void) { IupHelp("http://www.tecgraf.puc-rio.br/iup"); //IupHelp("..\\html\\index.html"); }
static void Help(void) { IupHelp(luaL_check_string(1)); }