Skip to content

Commit

Permalink
to my loyal friend
Browse files Browse the repository at this point in the history
until we meet again
  • Loading branch information
bucanero committed Jan 28, 2023
1 parent 4edaa11 commit a259457
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
Binary file added data/leon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/tag_net.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions include/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ enum menu_screen_ids
//Textures
enum texture_index
{
leon_png_index,
bgimg_png_index,
column_1_png_index,
column_2_png_index,
Expand Down
2 changes: 1 addition & 1 deletion source/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ void drawSplashLogo(int mode)
u8 logo_a = (u8)logo_a_t;

//App description
DrawTextureCentered(&menu_textures[buk_scr_png_index], 424, 256, 0, 323, 242, 0xFFFFFF00 | logo_a);
DrawTextureCentered(&menu_textures[buk_scr_png_index], 424, 256, 0, menu_textures[buk_scr_png_index].texture.width/2, menu_textures[buk_scr_png_index].texture.height/2, 0xFFFFFF00 | logo_a);

tiny3d_Flip();
}
Expand Down
4 changes: 3 additions & 1 deletion source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ static void LoadTextures_Menu()
// TTFUnloadFont();

//Init Main Menu textures
load_menu_texture(leon, png);
load_menu_texture(bgimg, png);
load_menu_texture(cheat, png);

Expand Down Expand Up @@ -438,7 +439,7 @@ static void registerSpecialChars()
RegisterSpecialCharacter(CHAR_TAG_APPLY, 2, 1.1, &menu_textures[tag_apply_png_index]);
RegisterSpecialCharacter(CHAR_TAG_ZIP, 0, 1.2, &menu_textures[tag_zip_png_index]);
RegisterSpecialCharacter(CHAR_TAG_TRANSFER, 0, 1.2, &menu_textures[tag_transfer_png_index]);
RegisterSpecialCharacter(CHAR_TAG_NET, 2, 1.1, &menu_textures[tag_net_png_index]);
RegisterSpecialCharacter(CHAR_TAG_NET, 1, 1.2, &menu_textures[tag_net_png_index]);

// Register button icons
RegisterSpecialCharacter(CHAR_BTN_X, 0, 1.2, &menu_textures[footer_ico_cross_png_index]);
Expand Down Expand Up @@ -489,6 +490,7 @@ s32 main(s32 argc, const char* argv[])
unzip_app_data(APOLLO_LOCAL_CACHE "appdata.zip");
}

menu_textures[buk_scr_png_index] = menu_textures[leon_png_index];
// Splash screen logo (fade-in)
drawSplashLogo(1);

Expand Down

0 comments on commit a259457

Please sign in to comment.