update images
@ -40,12 +40,64 @@ extern const u32 icon_settings_png_size;
|
|||||||
extern const u8 icon_home_png[];
|
extern const u8 icon_home_png[];
|
||||||
extern const u32 icon_home_png_size;
|
extern const u32 icon_home_png_size;
|
||||||
|
|
||||||
|
extern const u8 icon_game_cheats_png[];
|
||||||
|
extern const u32 icon_game_cheats_png_size;
|
||||||
|
extern const u8 icon_game_controllers_png[];
|
||||||
|
extern const u32 icon_game_controllers_png_size;
|
||||||
|
extern const u8 icon_game_load_png[];
|
||||||
|
extern const u32 icon_game_load_png_size;
|
||||||
|
extern const u8 icon_game_save_png[];
|
||||||
|
extern const u32 icon_game_save_png_size;
|
||||||
|
extern const u8 icon_game_reset_png[];
|
||||||
|
extern const u32 icon_game_reset_png_size;
|
||||||
|
|
||||||
|
extern const u8 icon_settings_wiimote_png[];
|
||||||
|
extern const u32 icon_settings_wiimote_png_size;
|
||||||
|
extern const u8 icon_settings_classic_png[];
|
||||||
|
extern const u32 icon_settings_classic_png_size;
|
||||||
|
extern const u8 icon_settings_gamecube_png[];
|
||||||
|
extern const u32 icon_settings_gamecube_png_size;
|
||||||
|
extern const u8 icon_settings_nunchuk_png[];
|
||||||
|
extern const u32 icon_settings_nunchuk_png_size;
|
||||||
|
|
||||||
|
extern const u8 icon_settings_snescontroller_png[];
|
||||||
|
extern const u32 icon_settings_snescontroller_png_size;
|
||||||
|
extern const u8 icon_settings_superscope_png[];
|
||||||
|
extern const u32 icon_settings_superscope_png_size;
|
||||||
|
extern const u8 icon_settings_justifier_png[];
|
||||||
|
extern const u32 icon_settings_justifier_png_size;
|
||||||
|
extern const u8 icon_settings_mouse_png[];
|
||||||
|
extern const u32 icon_settings_mouse_png_size;
|
||||||
|
|
||||||
|
extern const u8 icon_settings_file_png[];
|
||||||
|
extern const u32 icon_settings_file_png_size;
|
||||||
|
extern const u8 icon_settings_mappings_png[];
|
||||||
|
extern const u32 icon_settings_mappings_png_size;
|
||||||
|
extern const u8 icon_settings_menu_png[];
|
||||||
|
extern const u32 icon_settings_menu_png_size;
|
||||||
|
extern const u8 icon_settings_network_png[];
|
||||||
|
extern const u32 icon_settings_network_png_size;
|
||||||
|
extern const u8 icon_settings_video_png[];
|
||||||
|
extern const u32 icon_settings_video_png_size;
|
||||||
|
|
||||||
extern const u8 button_png[];
|
extern const u8 button_png[];
|
||||||
extern const u32 button_png_size;
|
extern const u32 button_png_size;
|
||||||
|
|
||||||
extern const u8 button_over_png[];
|
extern const u8 button_over_png[];
|
||||||
extern const u32 button_over_png_size;
|
extern const u32 button_over_png_size;
|
||||||
|
|
||||||
|
extern const u8 button_small_png[];
|
||||||
|
extern const u32 button_small_png_size;
|
||||||
|
|
||||||
|
extern const u8 button_small_over_png[];
|
||||||
|
extern const u32 button_small_over_png_size;
|
||||||
|
|
||||||
|
extern const u8 button_large_png[];
|
||||||
|
extern const u32 button_large_png_size;
|
||||||
|
|
||||||
|
extern const u8 button_large_over_png[];
|
||||||
|
extern const u32 button_large_over_png_size;
|
||||||
|
|
||||||
extern const u8 button_arrow_left_png[];
|
extern const u8 button_arrow_left_png[];
|
||||||
extern const u32 button_arrow_left_png_size;
|
extern const u32 button_arrow_left_png_size;
|
||||||
|
|
||||||
@ -70,18 +122,6 @@ extern const u32 button_arrow_up_over_png_size;
|
|||||||
extern const u8 button_arrow_down_over_png[];
|
extern const u8 button_arrow_down_over_png[];
|
||||||
extern const u32 button_arrow_down_over_png_size;
|
extern const u32 button_arrow_down_over_png_size;
|
||||||
|
|
||||||
extern const u8 button_close_png[];
|
|
||||||
extern const u32 button_close_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_close_over_png[];
|
|
||||||
extern const u32 button_close_over_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_large_png[];
|
|
||||||
extern const u32 button_large_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_large_over_png[];
|
|
||||||
extern const u32 button_large_over_png_size;
|
|
||||||
|
|
||||||
extern const u8 button_gamesave_png[];
|
extern const u8 button_gamesave_png[];
|
||||||
extern const u32 button_gamesave_png_size;
|
extern const u32 button_gamesave_png_size;
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.9 KiB |
BIN
source/ngc/images/button_small.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
source/ngc/images/button_small_over.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.5 KiB |
BIN
source/ngc/images/icon_game_cheats.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
source/ngc/images/icon_game_controllers.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
source/ngc/images/icon_game_load.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
source/ngc/images/icon_game_reset.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
source/ngc/images/icon_game_save.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
source/ngc/images/icon_settings_classic.png
Normal file
After Width: | Height: | Size: 7.5 KiB |
BIN
source/ngc/images/icon_settings_file.png
Normal file
After Width: | Height: | Size: 7.0 KiB |
BIN
source/ngc/images/icon_settings_gamecube.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
source/ngc/images/icon_settings_justifier.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
source/ngc/images/icon_settings_mappings.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
source/ngc/images/icon_settings_menu.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
source/ngc/images/icon_settings_mouse.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
source/ngc/images/icon_settings_network.png
Normal file
After Width: | Height: | Size: 7.0 KiB |
BIN
source/ngc/images/icon_settings_nunchuk.png
Normal file
After Width: | Height: | Size: 9.4 KiB |
BIN
source/ngc/images/icon_settings_snescontroller.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
source/ngc/images/icon_settings_superscope.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
source/ngc/images/icon_settings_video.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
source/ngc/images/icon_settings_wiimote.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 888 B After Width: | Height: | Size: 777 B |
@ -123,7 +123,7 @@ WindowPrompt(const char *title, const char *msg, const char *btn1Label, const ch
|
|||||||
GuiImageData dialogBox(dialogue_box_png);
|
GuiImageData dialogBox(dialogue_box_png);
|
||||||
GuiImage dialogBoxImg(&dialogBox);
|
GuiImage dialogBoxImg(&dialogBox);
|
||||||
|
|
||||||
GuiText titleTxt(title, 26, (GXColor){255, 255, 255, 255});
|
GuiText titleTxt(title, 26, (GXColor){70, 70, 10, 255});
|
||||||
titleTxt.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
titleTxt.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
titleTxt.SetPosition(0,14);
|
titleTxt.SetPosition(0,14);
|
||||||
GuiText msgTxt(msg, 26, (GXColor){0, 0, 0, 255});
|
GuiText msgTxt(msg, 26, (GXColor){0, 0, 0, 255});
|
||||||
@ -325,7 +325,7 @@ ProgressWindow(char *title, char *msg)
|
|||||||
throbberImg.SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE);
|
throbberImg.SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE);
|
||||||
throbberImg.SetPosition(0, 40);
|
throbberImg.SetPosition(0, 40);
|
||||||
|
|
||||||
GuiText titleTxt(title, 26, (GXColor){255, 255, 255, 255});
|
GuiText titleTxt(title, 26, (GXColor){70, 70, 10, 255});
|
||||||
titleTxt.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
titleTxt.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
titleTxt.SetPosition(0,14);
|
titleTxt.SetPosition(0,14);
|
||||||
GuiText msgTxt(msg, 26, (GXColor){0, 0, 0, 255});
|
GuiText msgTxt(msg, 26, (GXColor){0, 0, 0, 255});
|
||||||
@ -590,7 +590,7 @@ SettingWindow(const char * title, GuiWindow * w)
|
|||||||
GuiImageData dialogBox(dialogue_box_png);
|
GuiImageData dialogBox(dialogue_box_png);
|
||||||
GuiImage dialogBoxImg(&dialogBox);
|
GuiImage dialogBoxImg(&dialogBox);
|
||||||
|
|
||||||
GuiText titleTxt(title, 26, (GXColor){255, 255, 255, 255});
|
GuiText titleTxt(title, 26, (GXColor){70, 70, 10, 255});
|
||||||
titleTxt.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
titleTxt.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
titleTxt.SetPosition(0,14);
|
titleTxt.SetPosition(0,14);
|
||||||
|
|
||||||
@ -873,7 +873,7 @@ static int MenuGameSelection()
|
|||||||
|
|
||||||
HaltGui();
|
HaltGui();
|
||||||
btnLogo->SetAlignment(ALIGN_RIGHT, ALIGN_TOP);
|
btnLogo->SetAlignment(ALIGN_RIGHT, ALIGN_TOP);
|
||||||
btnLogo->SetPosition(-30, 30);
|
btnLogo->SetPosition(-30, 24);
|
||||||
mainWindow->Append(&titleTxt);
|
mainWindow->Append(&titleTxt);
|
||||||
mainWindow->Append(&gameBrowser);
|
mainWindow->Append(&gameBrowser);
|
||||||
mainWindow->Append(&buttonWindow);
|
mainWindow->Append(&buttonWindow);
|
||||||
@ -1030,10 +1030,16 @@ static int MenuGame()
|
|||||||
GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, SOUND_PCM);
|
GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, SOUND_PCM);
|
||||||
GuiImageData btnOutline(button_png);
|
GuiImageData btnOutline(button_png);
|
||||||
GuiImageData btnOutlineOver(button_over_png);
|
GuiImageData btnOutlineOver(button_over_png);
|
||||||
GuiImageData btnCloseOutline(button_close_png);
|
GuiImageData btnCloseOutline(button_small_png);
|
||||||
GuiImageData btnCloseOutlineOver(button_close_over_png);
|
GuiImageData btnCloseOutlineOver(button_small_over_png);
|
||||||
GuiImageData btnLargeOutline(button_large_png);
|
GuiImageData btnLargeOutline(button_large_png);
|
||||||
GuiImageData btnLargeOutlineOver(button_large_over_png);
|
GuiImageData btnLargeOutlineOver(button_large_over_png);
|
||||||
|
GuiImageData iconCheats(icon_game_cheats_png);
|
||||||
|
GuiImageData iconController(icon_game_controllers_png);
|
||||||
|
GuiImageData iconLoad(icon_game_load_png);
|
||||||
|
GuiImageData iconSave(icon_game_save_png);
|
||||||
|
GuiImageData iconReset(icon_game_reset_png);
|
||||||
|
|
||||||
GuiImageData battery(battery_png);
|
GuiImageData battery(battery_png);
|
||||||
GuiImageData batteryRed(battery_red_png);
|
GuiImageData batteryRed(battery_red_png);
|
||||||
GuiImageData batteryBar(battery_bar_png);
|
GuiImageData batteryBar(battery_bar_png);
|
||||||
@ -1050,12 +1056,14 @@ static int MenuGame()
|
|||||||
GuiText saveBtnTxt("Save", 24, (GXColor){0, 0, 0, 255});
|
GuiText saveBtnTxt("Save", 24, (GXColor){0, 0, 0, 255});
|
||||||
GuiImage saveBtnImg(&btnLargeOutline);
|
GuiImage saveBtnImg(&btnLargeOutline);
|
||||||
GuiImage saveBtnImgOver(&btnLargeOutlineOver);
|
GuiImage saveBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage saveBtnIcon(&iconSave);
|
||||||
GuiButton saveBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton saveBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
saveBtn.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
|
saveBtn.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
|
||||||
saveBtn.SetPosition(50, 120);
|
saveBtn.SetPosition(50, 120);
|
||||||
saveBtn.SetLabel(&saveBtnTxt);
|
saveBtn.SetLabel(&saveBtnTxt);
|
||||||
saveBtn.SetImage(&saveBtnImg);
|
saveBtn.SetImage(&saveBtnImg);
|
||||||
saveBtn.SetImageOver(&saveBtnImgOver);
|
saveBtn.SetImageOver(&saveBtnImgOver);
|
||||||
|
saveBtn.SetIcon(&saveBtnIcon);
|
||||||
saveBtn.SetSoundOver(&btnSoundOver);
|
saveBtn.SetSoundOver(&btnSoundOver);
|
||||||
saveBtn.SetTrigger(&trigA);
|
saveBtn.SetTrigger(&trigA);
|
||||||
saveBtn.SetEffectGrow();
|
saveBtn.SetEffectGrow();
|
||||||
@ -1063,12 +1071,14 @@ static int MenuGame()
|
|||||||
GuiText loadBtnTxt("Load", 24, (GXColor){0, 0, 0, 255});
|
GuiText loadBtnTxt("Load", 24, (GXColor){0, 0, 0, 255});
|
||||||
GuiImage loadBtnImg(&btnLargeOutline);
|
GuiImage loadBtnImg(&btnLargeOutline);
|
||||||
GuiImage loadBtnImgOver(&btnLargeOutlineOver);
|
GuiImage loadBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage loadBtnIcon(&iconLoad);
|
||||||
GuiButton loadBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton loadBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
loadBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
loadBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
loadBtn.SetPosition(0, 120);
|
loadBtn.SetPosition(0, 120);
|
||||||
loadBtn.SetLabel(&loadBtnTxt);
|
loadBtn.SetLabel(&loadBtnTxt);
|
||||||
loadBtn.SetImage(&loadBtnImg);
|
loadBtn.SetImage(&loadBtnImg);
|
||||||
loadBtn.SetImageOver(&loadBtnImgOver);
|
loadBtn.SetImageOver(&loadBtnImgOver);
|
||||||
|
loadBtn.SetIcon(&loadBtnIcon);
|
||||||
loadBtn.SetSoundOver(&btnSoundOver);
|
loadBtn.SetSoundOver(&btnSoundOver);
|
||||||
loadBtn.SetTrigger(&trigA);
|
loadBtn.SetTrigger(&trigA);
|
||||||
loadBtn.SetEffectGrow();
|
loadBtn.SetEffectGrow();
|
||||||
@ -1076,12 +1086,14 @@ static int MenuGame()
|
|||||||
GuiText resetBtnTxt("Reset", 24, (GXColor){0, 0, 0, 255});
|
GuiText resetBtnTxt("Reset", 24, (GXColor){0, 0, 0, 255});
|
||||||
GuiImage resetBtnImg(&btnLargeOutline);
|
GuiImage resetBtnImg(&btnLargeOutline);
|
||||||
GuiImage resetBtnImgOver(&btnLargeOutlineOver);
|
GuiImage resetBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage resetBtnIcon(&iconReset);
|
||||||
GuiButton resetBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton resetBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
resetBtn.SetAlignment(ALIGN_RIGHT, ALIGN_TOP);
|
resetBtn.SetAlignment(ALIGN_RIGHT, ALIGN_TOP);
|
||||||
resetBtn.SetPosition(-50, 120);
|
resetBtn.SetPosition(-50, 120);
|
||||||
resetBtn.SetLabel(&resetBtnTxt);
|
resetBtn.SetLabel(&resetBtnTxt);
|
||||||
resetBtn.SetImage(&resetBtnImg);
|
resetBtn.SetImage(&resetBtnImg);
|
||||||
resetBtn.SetImageOver(&resetBtnImgOver);
|
resetBtn.SetImageOver(&resetBtnImgOver);
|
||||||
|
resetBtn.SetIcon(&resetBtnIcon);
|
||||||
resetBtn.SetSoundOver(&btnSoundOver);
|
resetBtn.SetSoundOver(&btnSoundOver);
|
||||||
resetBtn.SetTrigger(&trigA);
|
resetBtn.SetTrigger(&trigA);
|
||||||
resetBtn.SetEffectGrow();
|
resetBtn.SetEffectGrow();
|
||||||
@ -1089,12 +1101,14 @@ static int MenuGame()
|
|||||||
GuiText controllerBtnTxt("Controller", 24, (GXColor){0, 0, 0, 255});
|
GuiText controllerBtnTxt("Controller", 24, (GXColor){0, 0, 0, 255});
|
||||||
GuiImage controllerBtnImg(&btnLargeOutline);
|
GuiImage controllerBtnImg(&btnLargeOutline);
|
||||||
GuiImage controllerBtnImgOver(&btnLargeOutlineOver);
|
GuiImage controllerBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage controllerBtnIcon(&iconController);
|
||||||
GuiButton controllerBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton controllerBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
controllerBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
controllerBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
controllerBtn.SetPosition(-125, 250);
|
controllerBtn.SetPosition(-125, 250);
|
||||||
controllerBtn.SetLabel(&controllerBtnTxt);
|
controllerBtn.SetLabel(&controllerBtnTxt);
|
||||||
controllerBtn.SetImage(&controllerBtnImg);
|
controllerBtn.SetImage(&controllerBtnImg);
|
||||||
controllerBtn.SetImageOver(&controllerBtnImgOver);
|
controllerBtn.SetImageOver(&controllerBtnImgOver);
|
||||||
|
controllerBtn.SetIcon(&controllerBtnIcon);
|
||||||
controllerBtn.SetSoundOver(&btnSoundOver);
|
controllerBtn.SetSoundOver(&btnSoundOver);
|
||||||
controllerBtn.SetTrigger(&trigA);
|
controllerBtn.SetTrigger(&trigA);
|
||||||
controllerBtn.SetEffectGrow();
|
controllerBtn.SetEffectGrow();
|
||||||
@ -1102,12 +1116,14 @@ static int MenuGame()
|
|||||||
GuiText cheatsBtnTxt("Cheats", 24, (GXColor){0, 0, 0, 255});
|
GuiText cheatsBtnTxt("Cheats", 24, (GXColor){0, 0, 0, 255});
|
||||||
GuiImage cheatsBtnImg(&btnLargeOutline);
|
GuiImage cheatsBtnImg(&btnLargeOutline);
|
||||||
GuiImage cheatsBtnImgOver(&btnLargeOutlineOver);
|
GuiImage cheatsBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage cheatsBtnIcon(&iconCheats);
|
||||||
GuiButton cheatsBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton cheatsBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
cheatsBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
cheatsBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
cheatsBtn.SetPosition(125, 250);
|
cheatsBtn.SetPosition(125, 250);
|
||||||
cheatsBtn.SetLabel(&cheatsBtnTxt);
|
cheatsBtn.SetLabel(&cheatsBtnTxt);
|
||||||
cheatsBtn.SetImage(&cheatsBtnImg);
|
cheatsBtn.SetImage(&cheatsBtnImg);
|
||||||
cheatsBtn.SetImageOver(&cheatsBtnImgOver);
|
cheatsBtn.SetImageOver(&cheatsBtnImgOver);
|
||||||
|
cheatsBtn.SetIcon(&cheatsBtnIcon);
|
||||||
cheatsBtn.SetSoundOver(&btnSoundOver);
|
cheatsBtn.SetSoundOver(&btnSoundOver);
|
||||||
cheatsBtn.SetTrigger(&trigA);
|
cheatsBtn.SetTrigger(&trigA);
|
||||||
cheatsBtn.SetEffectGrow();
|
cheatsBtn.SetEffectGrow();
|
||||||
@ -1376,8 +1392,8 @@ static int MenuGameSaves(int action)
|
|||||||
GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, SOUND_PCM);
|
GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, SOUND_PCM);
|
||||||
GuiImageData btnOutline(button_png);
|
GuiImageData btnOutline(button_png);
|
||||||
GuiImageData btnOutlineOver(button_over_png);
|
GuiImageData btnOutlineOver(button_over_png);
|
||||||
GuiImageData btnCloseOutline(button_close_png);
|
GuiImageData btnCloseOutline(button_small_png);
|
||||||
GuiImageData btnCloseOutlineOver(button_close_over_png);
|
GuiImageData btnCloseOutlineOver(button_small_over_png);
|
||||||
|
|
||||||
GuiTrigger trigA;
|
GuiTrigger trigA;
|
||||||
if(GCSettings.WiimoteOrientation)
|
if(GCSettings.WiimoteOrientation)
|
||||||
@ -1638,8 +1654,8 @@ static int MenuGameCheats()
|
|||||||
GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, SOUND_PCM);
|
GuiSound btnSoundOver(button_over_pcm, button_over_pcm_size, SOUND_PCM);
|
||||||
GuiImageData btnOutline(button_png);
|
GuiImageData btnOutline(button_png);
|
||||||
GuiImageData btnOutlineOver(button_over_png);
|
GuiImageData btnOutlineOver(button_over_png);
|
||||||
GuiImageData btnCloseOutline(button_close_png);
|
GuiImageData btnCloseOutline(button_small_png);
|
||||||
GuiImageData btnCloseOutlineOver(button_close_over_png);
|
GuiImageData btnCloseOutlineOver(button_small_over_png);
|
||||||
|
|
||||||
GuiTrigger trigA;
|
GuiTrigger trigA;
|
||||||
if(GCSettings.WiimoteOrientation)
|
if(GCSettings.WiimoteOrientation)
|
||||||
@ -1748,6 +1764,11 @@ static int MenuSettings()
|
|||||||
GuiImageData btnOutlineOver(button_over_png);
|
GuiImageData btnOutlineOver(button_over_png);
|
||||||
GuiImageData btnLargeOutline(button_large_png);
|
GuiImageData btnLargeOutline(button_large_png);
|
||||||
GuiImageData btnLargeOutlineOver(button_large_over_png);
|
GuiImageData btnLargeOutlineOver(button_large_over_png);
|
||||||
|
GuiImageData iconFile(icon_settings_file_png);
|
||||||
|
GuiImageData iconMappings(icon_settings_mappings_png);
|
||||||
|
GuiImageData iconMenu(icon_settings_menu_png);
|
||||||
|
GuiImageData iconNetwork(icon_settings_network_png);
|
||||||
|
GuiImageData iconVideo(icon_settings_video_png);
|
||||||
|
|
||||||
GuiTrigger trigA;
|
GuiTrigger trigA;
|
||||||
if(GCSettings.WiimoteOrientation)
|
if(GCSettings.WiimoteOrientation)
|
||||||
@ -1759,12 +1780,14 @@ static int MenuSettings()
|
|||||||
mappingBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
mappingBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
||||||
GuiImage mappingBtnImg(&btnLargeOutline);
|
GuiImage mappingBtnImg(&btnLargeOutline);
|
||||||
GuiImage mappingBtnImgOver(&btnLargeOutlineOver);
|
GuiImage mappingBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage mappingBtnIcon(&iconMappings);
|
||||||
GuiButton mappingBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton mappingBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
mappingBtn.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
|
mappingBtn.SetAlignment(ALIGN_LEFT, ALIGN_TOP);
|
||||||
mappingBtn.SetPosition(50, 120);
|
mappingBtn.SetPosition(50, 120);
|
||||||
mappingBtn.SetLabel(&mappingBtnTxt);
|
mappingBtn.SetLabel(&mappingBtnTxt);
|
||||||
mappingBtn.SetImage(&mappingBtnImg);
|
mappingBtn.SetImage(&mappingBtnImg);
|
||||||
mappingBtn.SetImageOver(&mappingBtnImgOver);
|
mappingBtn.SetImageOver(&mappingBtnImgOver);
|
||||||
|
mappingBtn.SetIcon(&mappingBtnIcon);
|
||||||
mappingBtn.SetSoundOver(&btnSoundOver);
|
mappingBtn.SetSoundOver(&btnSoundOver);
|
||||||
mappingBtn.SetTrigger(&trigA);
|
mappingBtn.SetTrigger(&trigA);
|
||||||
mappingBtn.SetEffectGrow();
|
mappingBtn.SetEffectGrow();
|
||||||
@ -1773,12 +1796,14 @@ static int MenuSettings()
|
|||||||
videoBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
videoBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
||||||
GuiImage videoBtnImg(&btnLargeOutline);
|
GuiImage videoBtnImg(&btnLargeOutline);
|
||||||
GuiImage videoBtnImgOver(&btnLargeOutlineOver);
|
GuiImage videoBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage videoBtnIcon(&iconVideo);
|
||||||
GuiButton videoBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton videoBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
videoBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
videoBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
videoBtn.SetPosition(0, 120);
|
videoBtn.SetPosition(0, 120);
|
||||||
videoBtn.SetLabel(&videoBtnTxt);
|
videoBtn.SetLabel(&videoBtnTxt);
|
||||||
videoBtn.SetImage(&videoBtnImg);
|
videoBtn.SetImage(&videoBtnImg);
|
||||||
videoBtn.SetImageOver(&videoBtnImgOver);
|
videoBtn.SetImageOver(&videoBtnImgOver);
|
||||||
|
videoBtn.SetIcon(&videoBtnIcon);
|
||||||
videoBtn.SetSoundOver(&btnSoundOver);
|
videoBtn.SetSoundOver(&btnSoundOver);
|
||||||
videoBtn.SetTrigger(&trigA);
|
videoBtn.SetTrigger(&trigA);
|
||||||
videoBtn.SetEffectGrow();
|
videoBtn.SetEffectGrow();
|
||||||
@ -1790,6 +1815,7 @@ static int MenuSettings()
|
|||||||
savingBtnTxt3.SetPosition(0, +20);
|
savingBtnTxt3.SetPosition(0, +20);
|
||||||
GuiImage savingBtnImg(&btnLargeOutline);
|
GuiImage savingBtnImg(&btnLargeOutline);
|
||||||
GuiImage savingBtnImgOver(&btnLargeOutlineOver);
|
GuiImage savingBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage fileBtnIcon(&iconFile);
|
||||||
GuiButton savingBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton savingBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
savingBtn.SetAlignment(ALIGN_RIGHT, ALIGN_TOP);
|
savingBtn.SetAlignment(ALIGN_RIGHT, ALIGN_TOP);
|
||||||
savingBtn.SetPosition(-50, 120);
|
savingBtn.SetPosition(-50, 120);
|
||||||
@ -1798,6 +1824,7 @@ static int MenuSettings()
|
|||||||
savingBtn.SetLabel(&savingBtnTxt3, 2);
|
savingBtn.SetLabel(&savingBtnTxt3, 2);
|
||||||
savingBtn.SetImage(&savingBtnImg);
|
savingBtn.SetImage(&savingBtnImg);
|
||||||
savingBtn.SetImageOver(&savingBtnImgOver);
|
savingBtn.SetImageOver(&savingBtnImgOver);
|
||||||
|
savingBtn.SetIcon(&fileBtnIcon);
|
||||||
savingBtn.SetSoundOver(&btnSoundOver);
|
savingBtn.SetSoundOver(&btnSoundOver);
|
||||||
savingBtn.SetTrigger(&trigA);
|
savingBtn.SetTrigger(&trigA);
|
||||||
savingBtn.SetEffectGrow();
|
savingBtn.SetEffectGrow();
|
||||||
@ -1806,12 +1833,14 @@ static int MenuSettings()
|
|||||||
menuBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
menuBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
||||||
GuiImage menuBtnImg(&btnLargeOutline);
|
GuiImage menuBtnImg(&btnLargeOutline);
|
||||||
GuiImage menuBtnImgOver(&btnLargeOutlineOver);
|
GuiImage menuBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage menuBtnIcon(&iconMenu);
|
||||||
GuiButton menuBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton menuBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
menuBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
menuBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
menuBtn.SetPosition(-125, 250);
|
menuBtn.SetPosition(-125, 250);
|
||||||
menuBtn.SetLabel(&menuBtnTxt);
|
menuBtn.SetLabel(&menuBtnTxt);
|
||||||
menuBtn.SetImage(&menuBtnImg);
|
menuBtn.SetImage(&menuBtnImg);
|
||||||
menuBtn.SetImageOver(&menuBtnImgOver);
|
menuBtn.SetImageOver(&menuBtnImgOver);
|
||||||
|
menuBtn.SetIcon(&menuBtnIcon);
|
||||||
menuBtn.SetSoundOver(&btnSoundOver);
|
menuBtn.SetSoundOver(&btnSoundOver);
|
||||||
menuBtn.SetTrigger(&trigA);
|
menuBtn.SetTrigger(&trigA);
|
||||||
menuBtn.SetEffectGrow();
|
menuBtn.SetEffectGrow();
|
||||||
@ -1820,12 +1849,14 @@ static int MenuSettings()
|
|||||||
networkBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
networkBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
||||||
GuiImage networkBtnImg(&btnLargeOutline);
|
GuiImage networkBtnImg(&btnLargeOutline);
|
||||||
GuiImage networkBtnImgOver(&btnLargeOutlineOver);
|
GuiImage networkBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage networkBtnIcon(&iconNetwork);
|
||||||
GuiButton networkBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton networkBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
networkBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
networkBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
networkBtn.SetPosition(125, 250);
|
networkBtn.SetPosition(125, 250);
|
||||||
networkBtn.SetLabel(&networkBtnTxt);
|
networkBtn.SetLabel(&networkBtnTxt);
|
||||||
networkBtn.SetImage(&networkBtnImg);
|
networkBtn.SetImage(&networkBtnImg);
|
||||||
networkBtn.SetImageOver(&networkBtnImgOver);
|
networkBtn.SetImageOver(&networkBtnImgOver);
|
||||||
|
networkBtn.SetIcon(&networkBtnIcon);
|
||||||
networkBtn.SetSoundOver(&btnSoundOver);
|
networkBtn.SetSoundOver(&btnSoundOver);
|
||||||
networkBtn.SetTrigger(&trigA);
|
networkBtn.SetTrigger(&trigA);
|
||||||
networkBtn.SetEffectGrow();
|
networkBtn.SetEffectGrow();
|
||||||
@ -1943,6 +1974,10 @@ static int MenuSettingsMappings()
|
|||||||
GuiImageData btnOutlineOver(button_over_png);
|
GuiImageData btnOutlineOver(button_over_png);
|
||||||
GuiImageData btnLargeOutline(button_large_png);
|
GuiImageData btnLargeOutline(button_large_png);
|
||||||
GuiImageData btnLargeOutlineOver(button_large_over_png);
|
GuiImageData btnLargeOutlineOver(button_large_over_png);
|
||||||
|
GuiImageData iconSNESController(icon_settings_snescontroller_png);
|
||||||
|
GuiImageData iconSuperscope(icon_settings_superscope_png);
|
||||||
|
GuiImageData iconJustifier(icon_settings_justifier_png);
|
||||||
|
GuiImageData iconMouse(icon_settings_mouse_png);
|
||||||
|
|
||||||
GuiTrigger trigA;
|
GuiTrigger trigA;
|
||||||
if(GCSettings.WiimoteOrientation)
|
if(GCSettings.WiimoteOrientation)
|
||||||
@ -1954,12 +1989,14 @@ static int MenuSettingsMappings()
|
|||||||
snesBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
snesBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
||||||
GuiImage snesBtnImg(&btnLargeOutline);
|
GuiImage snesBtnImg(&btnLargeOutline);
|
||||||
GuiImage snesBtnImgOver(&btnLargeOutlineOver);
|
GuiImage snesBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage snesBtnIcon(&iconSNESController);
|
||||||
GuiButton snesBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton snesBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
snesBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
snesBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
snesBtn.SetPosition(-125, 120);
|
snesBtn.SetPosition(-125, 120);
|
||||||
snesBtn.SetLabel(&snesBtnTxt);
|
snesBtn.SetLabel(&snesBtnTxt);
|
||||||
snesBtn.SetImage(&snesBtnImg);
|
snesBtn.SetImage(&snesBtnImg);
|
||||||
snesBtn.SetImageOver(&snesBtnImgOver);
|
snesBtn.SetImageOver(&snesBtnImgOver);
|
||||||
|
snesBtn.SetIcon(&snesBtnIcon);
|
||||||
snesBtn.SetSoundOver(&btnSoundOver);
|
snesBtn.SetSoundOver(&btnSoundOver);
|
||||||
snesBtn.SetTrigger(&trigA);
|
snesBtn.SetTrigger(&trigA);
|
||||||
snesBtn.SetEffectGrow();
|
snesBtn.SetEffectGrow();
|
||||||
@ -1968,12 +2005,14 @@ static int MenuSettingsMappings()
|
|||||||
superscopeBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
superscopeBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
||||||
GuiImage superscopeBtnImg(&btnLargeOutline);
|
GuiImage superscopeBtnImg(&btnLargeOutline);
|
||||||
GuiImage superscopeBtnImgOver(&btnLargeOutlineOver);
|
GuiImage superscopeBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage superscopeBtnIcon(&iconSuperscope);
|
||||||
GuiButton superscopeBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton superscopeBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
superscopeBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
superscopeBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
superscopeBtn.SetPosition(125, 120);
|
superscopeBtn.SetPosition(125, 120);
|
||||||
superscopeBtn.SetLabel(&superscopeBtnTxt);
|
superscopeBtn.SetLabel(&superscopeBtnTxt);
|
||||||
superscopeBtn.SetImage(&superscopeBtnImg);
|
superscopeBtn.SetImage(&superscopeBtnImg);
|
||||||
superscopeBtn.SetImageOver(&superscopeBtnImgOver);
|
superscopeBtn.SetImageOver(&superscopeBtnImgOver);
|
||||||
|
superscopeBtn.SetIcon(&superscopeBtnIcon);
|
||||||
superscopeBtn.SetSoundOver(&btnSoundOver);
|
superscopeBtn.SetSoundOver(&btnSoundOver);
|
||||||
superscopeBtn.SetTrigger(&trigA);
|
superscopeBtn.SetTrigger(&trigA);
|
||||||
superscopeBtn.SetEffectGrow();
|
superscopeBtn.SetEffectGrow();
|
||||||
@ -1982,12 +2021,14 @@ static int MenuSettingsMappings()
|
|||||||
mouseBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
mouseBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
||||||
GuiImage mouseBtnImg(&btnLargeOutline);
|
GuiImage mouseBtnImg(&btnLargeOutline);
|
||||||
GuiImage mouseBtnImgOver(&btnLargeOutlineOver);
|
GuiImage mouseBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage mouseBtnIcon(&iconMouse);
|
||||||
GuiButton mouseBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton mouseBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
mouseBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
mouseBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
mouseBtn.SetPosition(-125, 250);
|
mouseBtn.SetPosition(-125, 250);
|
||||||
mouseBtn.SetLabel(&mouseBtnTxt);
|
mouseBtn.SetLabel(&mouseBtnTxt);
|
||||||
mouseBtn.SetImage(&mouseBtnImg);
|
mouseBtn.SetImage(&mouseBtnImg);
|
||||||
mouseBtn.SetImageOver(&mouseBtnImgOver);
|
mouseBtn.SetImageOver(&mouseBtnImgOver);
|
||||||
|
mouseBtn.SetIcon(&mouseBtnIcon);
|
||||||
mouseBtn.SetSoundOver(&btnSoundOver);
|
mouseBtn.SetSoundOver(&btnSoundOver);
|
||||||
mouseBtn.SetTrigger(&trigA);
|
mouseBtn.SetTrigger(&trigA);
|
||||||
mouseBtn.SetEffectGrow();
|
mouseBtn.SetEffectGrow();
|
||||||
@ -1995,12 +2036,14 @@ static int MenuSettingsMappings()
|
|||||||
GuiText justifierBtnTxt("Justifier", 24, (GXColor){0, 0, 0, 255});
|
GuiText justifierBtnTxt("Justifier", 24, (GXColor){0, 0, 0, 255});
|
||||||
GuiImage justifierBtnImg(&btnLargeOutline);
|
GuiImage justifierBtnImg(&btnLargeOutline);
|
||||||
GuiImage justifierBtnImgOver(&btnLargeOutlineOver);
|
GuiImage justifierBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage justifierBtnIcon(&iconJustifier);
|
||||||
GuiButton justifierBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton justifierBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
justifierBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
justifierBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
justifierBtn.SetPosition(125, 250);
|
justifierBtn.SetPosition(125, 250);
|
||||||
justifierBtn.SetLabel(&justifierBtnTxt);
|
justifierBtn.SetLabel(&justifierBtnTxt);
|
||||||
justifierBtn.SetImage(&justifierBtnImg);
|
justifierBtn.SetImage(&justifierBtnImg);
|
||||||
justifierBtn.SetImageOver(&justifierBtnImgOver);
|
justifierBtn.SetImageOver(&justifierBtnImgOver);
|
||||||
|
justifierBtn.SetIcon(&justifierBtnIcon);
|
||||||
justifierBtn.SetSoundOver(&btnSoundOver);
|
justifierBtn.SetSoundOver(&btnSoundOver);
|
||||||
justifierBtn.SetTrigger(&trigA);
|
justifierBtn.SetTrigger(&trigA);
|
||||||
justifierBtn.SetEffectGrow();
|
justifierBtn.SetEffectGrow();
|
||||||
@ -2087,6 +2130,10 @@ static int MenuSettingsMappingsController()
|
|||||||
GuiImageData btnOutlineOver(button_over_png);
|
GuiImageData btnOutlineOver(button_over_png);
|
||||||
GuiImageData btnLargeOutline(button_large_png);
|
GuiImageData btnLargeOutline(button_large_png);
|
||||||
GuiImageData btnLargeOutlineOver(button_large_over_png);
|
GuiImageData btnLargeOutlineOver(button_large_over_png);
|
||||||
|
GuiImageData iconWiimote(icon_settings_wiimote_png);
|
||||||
|
GuiImageData iconClassic(icon_settings_classic_png);
|
||||||
|
GuiImageData iconGamecube(icon_settings_gamecube_png);
|
||||||
|
GuiImageData iconNunchuk(icon_settings_nunchuk_png);
|
||||||
|
|
||||||
GuiTrigger trigA;
|
GuiTrigger trigA;
|
||||||
if(GCSettings.WiimoteOrientation)
|
if(GCSettings.WiimoteOrientation)
|
||||||
@ -2098,12 +2145,14 @@ static int MenuSettingsMappingsController()
|
|||||||
gamecubeBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
gamecubeBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
||||||
GuiImage gamecubeBtnImg(&btnLargeOutline);
|
GuiImage gamecubeBtnImg(&btnLargeOutline);
|
||||||
GuiImage gamecubeBtnImgOver(&btnLargeOutlineOver);
|
GuiImage gamecubeBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage gamecubeBtnIcon(&iconGamecube);
|
||||||
GuiButton gamecubeBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton gamecubeBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
gamecubeBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
gamecubeBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
gamecubeBtn.SetPosition(-125, 120);
|
gamecubeBtn.SetPosition(-125, 120);
|
||||||
gamecubeBtn.SetLabel(&gamecubeBtnTxt);
|
gamecubeBtn.SetLabel(&gamecubeBtnTxt);
|
||||||
gamecubeBtn.SetImage(&gamecubeBtnImg);
|
gamecubeBtn.SetImage(&gamecubeBtnImg);
|
||||||
gamecubeBtn.SetImageOver(&gamecubeBtnImgOver);
|
gamecubeBtn.SetImageOver(&gamecubeBtnImgOver);
|
||||||
|
gamecubeBtn.SetIcon(&gamecubeBtnIcon);
|
||||||
gamecubeBtn.SetSoundOver(&btnSoundOver);
|
gamecubeBtn.SetSoundOver(&btnSoundOver);
|
||||||
gamecubeBtn.SetTrigger(&trigA);
|
gamecubeBtn.SetTrigger(&trigA);
|
||||||
gamecubeBtn.SetEffectGrow();
|
gamecubeBtn.SetEffectGrow();
|
||||||
@ -2111,12 +2160,14 @@ static int MenuSettingsMappingsController()
|
|||||||
GuiText wiimoteBtnTxt("Wiimote", 24, (GXColor){0, 0, 0, 255});
|
GuiText wiimoteBtnTxt("Wiimote", 24, (GXColor){0, 0, 0, 255});
|
||||||
GuiImage wiimoteBtnImg(&btnLargeOutline);
|
GuiImage wiimoteBtnImg(&btnLargeOutline);
|
||||||
GuiImage wiimoteBtnImgOver(&btnLargeOutlineOver);
|
GuiImage wiimoteBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage wiimoteBtnIcon(&iconWiimote);
|
||||||
GuiButton wiimoteBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton wiimoteBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
wiimoteBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
wiimoteBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
wiimoteBtn.SetPosition(125, 120);
|
wiimoteBtn.SetPosition(125, 120);
|
||||||
wiimoteBtn.SetLabel(&wiimoteBtnTxt);
|
wiimoteBtn.SetLabel(&wiimoteBtnTxt);
|
||||||
wiimoteBtn.SetImage(&wiimoteBtnImg);
|
wiimoteBtn.SetImage(&wiimoteBtnImg);
|
||||||
wiimoteBtn.SetImageOver(&wiimoteBtnImgOver);
|
wiimoteBtn.SetImageOver(&wiimoteBtnImgOver);
|
||||||
|
wiimoteBtn.SetIcon(&wiimoteBtnIcon);
|
||||||
wiimoteBtn.SetSoundOver(&btnSoundOver);
|
wiimoteBtn.SetSoundOver(&btnSoundOver);
|
||||||
wiimoteBtn.SetTrigger(&trigA);
|
wiimoteBtn.SetTrigger(&trigA);
|
||||||
wiimoteBtn.SetEffectGrow();
|
wiimoteBtn.SetEffectGrow();
|
||||||
@ -2125,26 +2176,35 @@ static int MenuSettingsMappingsController()
|
|||||||
classicBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
classicBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
||||||
GuiImage classicBtnImg(&btnLargeOutline);
|
GuiImage classicBtnImg(&btnLargeOutline);
|
||||||
GuiImage classicBtnImgOver(&btnLargeOutlineOver);
|
GuiImage classicBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage classicBtnIcon(&iconClassic);
|
||||||
GuiButton classicBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton classicBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
classicBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
classicBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
classicBtn.SetPosition(-125, 250);
|
classicBtn.SetPosition(-125, 250);
|
||||||
classicBtn.SetLabel(&classicBtnTxt);
|
classicBtn.SetLabel(&classicBtnTxt);
|
||||||
classicBtn.SetImage(&classicBtnImg);
|
classicBtn.SetImage(&classicBtnImg);
|
||||||
classicBtn.SetImageOver(&classicBtnImgOver);
|
classicBtn.SetImageOver(&classicBtnImgOver);
|
||||||
|
classicBtn.SetIcon(&classicBtnIcon);
|
||||||
classicBtn.SetSoundOver(&btnSoundOver);
|
classicBtn.SetSoundOver(&btnSoundOver);
|
||||||
classicBtn.SetTrigger(&trigA);
|
classicBtn.SetTrigger(&trigA);
|
||||||
classicBtn.SetEffectGrow();
|
classicBtn.SetEffectGrow();
|
||||||
|
|
||||||
GuiText nunchukBtnTxt("Wiimote Nunchuk", 24, (GXColor){0, 0, 0, 255});
|
GuiText nunchukBtnTxt1("Wiimote", 24, (GXColor){0, 0, 0, 255});
|
||||||
nunchukBtnTxt.SetMaxWidth(btnLargeOutline.GetWidth()-30);
|
GuiText nunchukBtnTxt2("&", 18, (GXColor){0, 0, 0, 255});
|
||||||
|
GuiText nunchukBtnTxt3("Nunchuk", 24, (GXColor){0, 0, 0, 255});
|
||||||
|
nunchukBtnTxt1.SetPosition(0, -20);
|
||||||
|
nunchukBtnTxt3.SetPosition(0, +20);
|
||||||
GuiImage nunchukBtnImg(&btnLargeOutline);
|
GuiImage nunchukBtnImg(&btnLargeOutline);
|
||||||
GuiImage nunchukBtnImgOver(&btnLargeOutlineOver);
|
GuiImage nunchukBtnImgOver(&btnLargeOutlineOver);
|
||||||
|
GuiImage nunchukBtnIcon(&iconNunchuk);
|
||||||
GuiButton nunchukBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
GuiButton nunchukBtn(btnLargeOutline.GetWidth(), btnLargeOutline.GetHeight());
|
||||||
nunchukBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
nunchukBtn.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
nunchukBtn.SetPosition(125, 250);
|
nunchukBtn.SetPosition(125, 250);
|
||||||
nunchukBtn.SetLabel(&nunchukBtnTxt);
|
nunchukBtn.SetLabel(&nunchukBtnTxt1, 0);
|
||||||
|
nunchukBtn.SetLabel(&nunchukBtnTxt2, 1);
|
||||||
|
nunchukBtn.SetLabel(&nunchukBtnTxt3, 2);
|
||||||
nunchukBtn.SetImage(&nunchukBtnImg);
|
nunchukBtn.SetImage(&nunchukBtnImg);
|
||||||
nunchukBtn.SetImageOver(&nunchukBtnImgOver);
|
nunchukBtn.SetImageOver(&nunchukBtnImgOver);
|
||||||
|
nunchukBtn.SetIcon(&nunchukBtnIcon);
|
||||||
nunchukBtn.SetSoundOver(&btnSoundOver);
|
nunchukBtn.SetSoundOver(&btnSoundOver);
|
||||||
nunchukBtn.SetTrigger(&trigA);
|
nunchukBtn.SetTrigger(&trigA);
|
||||||
nunchukBtn.SetEffectGrow();
|
nunchukBtn.SetEffectGrow();
|
||||||
@ -2239,7 +2299,7 @@ ButtonMappingWindow()
|
|||||||
GuiImageData dialogBox(dialogue_box_png);
|
GuiImageData dialogBox(dialogue_box_png);
|
||||||
GuiImage dialogBoxImg(&dialogBox);
|
GuiImage dialogBoxImg(&dialogBox);
|
||||||
|
|
||||||
GuiText titleTxt("Button Mapping", 26, (GXColor){255, 255, 255, 255});
|
GuiText titleTxt("Button Mapping", 26, (GXColor){70, 70, 10, 255});
|
||||||
titleTxt.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
titleTxt.SetAlignment(ALIGN_CENTRE, ALIGN_TOP);
|
||||||
titleTxt.SetPosition(0,14);
|
titleTxt.SetPosition(0,14);
|
||||||
|
|
||||||
@ -3272,9 +3332,10 @@ MainMenu (int menu)
|
|||||||
GuiImage logoImgOver(&logoOver);
|
GuiImage logoImgOver(&logoOver);
|
||||||
GuiText logoTxt(APPVERSION, 18, (GXColor){255, 255, 255, 255});
|
GuiText logoTxt(APPVERSION, 18, (GXColor){255, 255, 255, 255});
|
||||||
logoTxt.SetAlignment(ALIGN_RIGHT, ALIGN_TOP);
|
logoTxt.SetAlignment(ALIGN_RIGHT, ALIGN_TOP);
|
||||||
|
logoTxt.SetPosition(0, 4);
|
||||||
btnLogo = new GuiButton(logoImg.GetWidth(), logoImg.GetHeight());
|
btnLogo = new GuiButton(logoImg.GetWidth(), logoImg.GetHeight());
|
||||||
btnLogo->SetAlignment(ALIGN_RIGHT, ALIGN_TOP);
|
btnLogo->SetAlignment(ALIGN_RIGHT, ALIGN_TOP);
|
||||||
btnLogo->SetPosition(-30, 30);
|
btnLogo->SetPosition(-30, 24);
|
||||||
btnLogo->SetImage(&logoImg);
|
btnLogo->SetImage(&logoImg);
|
||||||
btnLogo->SetImageOver(&logoImgOver);
|
btnLogo->SetImageOver(&logoImgOver);
|
||||||
btnLogo->SetLabel(&logoTxt);
|
btnLogo->SetLabel(&logoTxt);
|
||||||
|
@ -47,7 +47,7 @@ void UpdateCheck()
|
|||||||
|
|
||||||
snprintf(url, 128, "http://snes9x-gx.googlecode.com/svn/trunk/update.xml");
|
snprintf(url, 128, "http://snes9x-gx.googlecode.com/svn/trunk/update.xml");
|
||||||
|
|
||||||
u8 * tmpbuffer = (u8 *)malloc(32768);
|
u8 * tmpbuffer = (u8 *)memalign(32,32768);
|
||||||
memset(tmpbuffer, 0, 32768);
|
memset(tmpbuffer, 0, 32768);
|
||||||
retval = http_request(url, NULL, tmpbuffer, 32768);
|
retval = http_request(url, NULL, tmpbuffer, 32768);
|
||||||
memset(url, 0, 128);
|
memset(url, 0, 128);
|
||||||
|
@ -356,7 +356,7 @@ main(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUG_WII
|
#ifdef DEBUG_WII
|
||||||
DEBUG_Init(GDBSTUB_DEVICE_USB, 1); // init debugging
|
//DEBUG_Init(GDBSTUB_DEVICE_USB, 1); // init debugging
|
||||||
//_break();
|
//_break();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|