Libwiigui window prompt help January 09, 2010 08:19AM | Registered: 14 years ago Posts: 5 |
Re: Libwiigui window prompt help January 09, 2010 12:43PM | Registered: 15 years ago Posts: 405 |
int WindowPrompt(const char *title, const char *msg, const char *btn1Label, const char *btn2Label)
Re: Libwiigui window prompt help January 09, 2010 09:10PM | Registered: 14 years ago Posts: 5 |
Re: Libwiigui window prompt help January 10, 2010 03:19AM | Registered: 14 years ago Posts: 234 |
Re: Libwiigui window prompt help January 10, 2010 09:14AM | Registered: 14 years ago Posts: 5 |
Re: Libwiigui window prompt help January 10, 2010 10:56AM | Registered: 14 years ago Posts: 234 |
GuiImageData *data[number_of_players] = NULL; data[0] = new guiimagedata player1data(blabla); data[1] = new guiimagedata player2data(blabla); GuiImage image(NULL); image.SetImage(data[windowprompt("pick a character","text","player 1 name","player 2 name")-1]);
Re: Libwiigui window prompt help January 16, 2010 03:57AM | Registered: 14 years ago Posts: 5 |
Re: Libwiigui window prompt help January 16, 2010 07:10AM | Registered: 14 years ago Posts: 234 |
guiwindow w(screenwidth, screenheight); create all your buttons and images haltgui(); append a button and whatever else to the guiwindow w.append(& image); mainwindow->append(&w); resumegui(); while(menu!=menu_exit) { if(aButton.getState()==STATE_CLICKED) { image.SetImage(data[windowprompt("pick a character","text","player 1 name","player 2 name")-1]); aButton.ResetState(); } //the rest of your loop is here } haltgui(); mainwindow->remove(&w); resumegui(); return menu;
Re: Libwiigui window prompt help January 17, 2010 06:58AM | Registered: 14 years ago Posts: 5 |
Re: Libwiigui window prompt help January 18, 2010 05:54AM | Registered: 14 years ago Posts: 234 |