Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
msg_img.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4INCLUDE_IMG("ui/msg/bubble_left.png", ui_msg_bubble_left_png);
5INCLUDE_IMG("ui/msg/bubble_mid.png", ui_msg_bubble_mid_png);
6INCLUDE_IMG("ui/msg/bubble_right.png", ui_msg_bubble_right_png);
7INCLUDE_IMG("ui/msg/arrow.png", ui_msg_arrow_png);
8INCLUDE_IMG("ui/msg/frame_a_1_1.png", ui_msg_frame_a_1_1_png);
9INCLUDE_IMG("ui/msg/frame_a_1_2.png", ui_msg_frame_a_1_2_png);
10INCLUDE_IMG("ui/msg/frame_a_1_3.png", ui_msg_frame_a_1_3_png);
11INCLUDE_IMG("ui/msg/frame_a_1_4.png", ui_msg_frame_a_1_4_png);
12INCLUDE_IMG("ui/msg/frame_a_1_5.png", ui_msg_frame_a_1_5_png);
13INCLUDE_IMG("ui/msg/frame_a_2_1.png", ui_msg_frame_a_2_1_png);
14INCLUDE_IMG("ui/msg/frame_a_2_5.png", ui_msg_frame_a_2_5_png);
15INCLUDE_IMG("ui/msg/frame_a_3_1.png", ui_msg_frame_a_3_1_png);
16INCLUDE_IMG("ui/msg/frame_a_3_5.png", ui_msg_frame_a_3_5_png);
17INCLUDE_IMG("ui/msg/frame_a_4_1.png", ui_msg_frame_a_4_1_png);
18INCLUDE_IMG("ui/msg/frame_a_4_5.png", ui_msg_frame_a_4_5_png);
19INCLUDE_IMG("ui/msg/frame_a_5_1.png", ui_msg_frame_a_5_1_png);
20INCLUDE_IMG("ui/msg/frame_a_5_2.png", ui_msg_frame_a_5_2_png);
21INCLUDE_IMG("ui/msg/frame_a_5_3.png", ui_msg_frame_a_5_3_png);
22INCLUDE_IMG("ui/msg/frame_a_5_4.png", ui_msg_frame_a_5_4_png);
23INCLUDE_IMG("ui/msg/frame_a_5_5.png", ui_msg_frame_a_5_5_png);
24INCLUDE_IMG("ui/msg/frame_b_1_1.png", ui_msg_frame_b_1_1_png);
25INCLUDE_IMG("ui/msg/frame_b_1_2.png", ui_msg_frame_b_1_2_png);
26INCLUDE_IMG("ui/msg/frame_b_1_3.png", ui_msg_frame_b_1_3_png);
27INCLUDE_IMG("ui/msg/frame_b_1_4.png", ui_msg_frame_b_1_4_png);
28INCLUDE_IMG("ui/msg/frame_b_1_5.png", ui_msg_frame_b_1_5_png);
29INCLUDE_IMG("ui/msg/frame_b_2_1.png", ui_msg_frame_b_2_1_png);
30INCLUDE_IMG("ui/msg/frame_b_2_5.png", ui_msg_frame_b_2_5_png);
31INCLUDE_IMG("ui/msg/frame_b_3_1.png", ui_msg_frame_b_3_1_png);
32INCLUDE_IMG("ui/msg/frame_b_3_5.png", ui_msg_frame_b_3_5_png);
33INCLUDE_IMG("ui/msg/frame_b_4_1.png", ui_msg_frame_b_4_1_png);
34INCLUDE_IMG("ui/msg/frame_b_4_5.png", ui_msg_frame_b_4_5_png);
35INCLUDE_IMG("ui/msg/frame_b_5_1.png", ui_msg_frame_b_5_1_png);
36INCLUDE_IMG("ui/msg/frame_b_5_2.png", ui_msg_frame_b_5_2_png);
37INCLUDE_IMG("ui/msg/frame_b_5_3.png", ui_msg_frame_b_5_3_png);
38INCLUDE_IMG("ui/msg/frame_b_5_4.png", ui_msg_frame_b_5_4_png);
39INCLUDE_IMG("ui/msg/frame_b_5_5.png", ui_msg_frame_b_5_5_png);
40
41// TODO: make assets
42unsigned char ui_msg_palettes[16][32] = {
43 {115,158,255,255,247,187,231,57,222,245,198,47,156,229,123,221,189,239,222,247,156,229,115,157,0,1,0,1,0,1,0,1},
44 {115,158,231,59,222,249,214,183,206,117,181,175,140,101,107,93,173,109,206,117,140,101,99,27,0,1,0,1,0,1,0,1},
45 {115,158,255,255,246,245,246,113,245,171,204,229,172,97,131,155,197,173,230,181,164,163,115,157,0,1,0,1,0,1,0,1},
46 {115,158,255,255,214,189,198,63,181,191,156,245,140,107,115,161,181,177,214,185,148,169,115,157,0,1,0,1,0,1,0,1},
47 {115,158,255,255,247,179,247,169,247,95,206,29,165,29,123,219,198,43,231,51,165,35,115,157,0,1,0,1,0,1,0,1},
48 {115,158,231,57,246,159,139,79,171,207,180,85,213,89,171,209,168,63,168,63,168,63,168,63,168,63,122,3,65,1,0,1},
49 {115,158,231,57,246,159,188,81,168,63,180,85,213,89,168,63,168,63,168,63,168,63,168,63,168,63,122,3,65,1,0,1},
50 {115,158,231,57,246,159,131,13,168,63,180,19,213,89,168,63,168,63,168,63,168,63,168,63,168,63,122,3,65,1,0,1},
51 {115,158,255,255,247,187,231,57,222,245,198,47,156,229,123,221,189,239,222,247,156,229,115,157,0,1,0,1,0,1,0,1},
52 {115,158,66,15,132,29,181,171,214,179,181,171,123,221,66,15,66,15,66,15,66,15,115,157,0,1,0,1,0,1,0,1},
53 {115,158,255,255,247,57,238,247,230,115,197,107,172,97,131,155,197,173,230,181,164,163,115,157,0,1,0,1,0,1,0,1},
54 {115,158,255,255,231,61,214,187,206,121,173,113,140,107,115,161,181,177,214,185,148,169,115,157,0,1,0,1,0,1,0,1},
55 {115,158,255,255,247,183,239,115,231,45,198,39,165,31,123,219,198,43,231,51,165,35,115,157,0,1,0,1,0,1,0,1},
56 {115,158,231,57,230,29,147,143,188,21,196,79,213,87,171,209,168,63,168,63,168,63,168,63,168,63,130,137,65,1,0,1},
57 {115,158,231,57,230,29,172,83,172,19,196,79,213,87,163,141,168,63,168,63,168,63,168,63,168,63,130,137,65,1,0,1},
58 {115,158,231,57,230,29,155,75,168,63,196,79,205,23,168,63,168,63,168,63,168,63,168,63,168,63,130,137,65,1,0,1},
59};
60
61INCLUDE_IMG("ui/msg/sign_corner_topleft.png", ui_msg_sign_corner_topleft_png);
62INCLUDE_IMG("ui/msg/sign_corner_topright.png", ui_msg_sign_corner_topright_png);
63INCLUDE_IMG("ui/msg/sign_corner_bottomleft.png", ui_msg_sign_corner_bottomleft_png);
64INCLUDE_IMG("ui/msg/sign_corner_bottomright.png", ui_msg_sign_corner_bottomright_png);
65INCLUDE_IMG("ui/msg/lamppost_corner_bottomright.png", ui_msg_lamppost_corner_bottomright_png);
66INCLUDE_IMG("ui/msg/sign_side_top.png", ui_msg_sign_side_top_png);
67INCLUDE_IMG("ui/msg/sign_side_left.png", ui_msg_sign_side_left_png);
68INCLUDE_IMG("ui/msg/sign_side_right.png", ui_msg_sign_side_right_png);
69INCLUDE_IMG("ui/msg/sign_side_bottom.png", ui_msg_sign_side_bottom_png);
70INCLUDE_IMG("ui/msg/sign_fill.png", ui_msg_sign_fill_png);
71INCLUDE_PAL("ui/msg/sign_corner_topleft.pal", ui_msg_sign_pal);
72INCLUDE_PAL("ui/msg/lamppost_corner_bottomright.pal", ui_msg_lamppost_pal);
73INCLUDE_IMG("ui/msg/background.png", ui_msg_background_png);
74INCLUDE_IMG("ui/msg/rewind_arrow.png", ui_msg_rewind_arrow_png);
75INCLUDE_PAL("ui/msg/rewind_arrow.pal", ui_msg_rewind_arrow_pal);
76INCLUDE_IMG("ui/msg/star.png", ui_msg_star_png);
77INCLUDE_IMG("ui/msg/star_silhouette.png", ui_msg_star_silhouette_png);
78
79#if VERSION_JP
82// in JP button icons uses this, which has smaller size to store the credits subtitle character set. What's going on here?
87// in JP kanji chars also uses this
89#else
94#endif
IMG_BIN ui_msg_frame_b_2_5_png[]
IMG_BIN ui_msg_frame_a_3_5_png[]
IMG_BIN ui_msg_frame_b_5_1_png[]
IMG_BIN ui_msg_frame_a_1_4_png[]
IMG_BIN ui_msg_frame_b_5_2_png[]
IMG_BIN ui_msg_frame_a_5_4_png[]
IMG_BIN ui_msg_frame_b_2_1_png[]
IMG_BIN ui_msg_frame_a_2_1_png[]
IMG_BIN ui_msg_frame_a_5_2_png[]
IMG_BIN ui_msg_frame_a_4_5_png[]
IMG_BIN ui_msg_frame_b_1_3_png[]
IMG_BIN ui_msg_frame_b_5_4_png[]
IMG_BIN ui_msg_frame_b_1_5_png[]
IMG_BIN ui_msg_frame_b_3_1_png[]
IMG_BIN ui_msg_frame_b_1_4_png[]
IMG_BIN ui_msg_frame_b_1_1_png[]
IMG_BIN ui_msg_frame_b_4_5_png[]
IMG_BIN ui_msg_frame_a_5_3_png[]
IMG_BIN ui_msg_frame_b_5_3_png[]
IMG_BIN ui_msg_frame_a_5_5_png[]
IMG_BIN ui_msg_frame_a_1_2_png[]
IMG_BIN ui_msg_frame_a_1_5_png[]
IMG_BIN ui_msg_frame_a_4_1_png[]
IMG_BIN ui_msg_frame_b_3_5_png[]
IMG_BIN ui_msg_frame_a_3_1_png[]
IMG_BIN ui_msg_frame_a_2_5_png[]
IMG_BIN ui_msg_frame_a_5_1_png[]
IMG_BIN ui_msg_frame_b_4_1_png[]
IMG_BIN ui_msg_frame_a_1_3_png[]
IMG_BIN ui_msg_frame_b_5_5_png[]
IMG_BIN ui_msg_frame_a_1_1_png[]
IMG_BIN ui_msg_frame_b_1_2_png[]
#define IMG_BIN
#define PAL_BIN
PAL_BIN D_802F4560[80][8]
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
IMG_BIN ui_msg_rewind_arrow_png[]
PAL_BIN ui_msg_rewind_arrow_pal[]
IMG_BIN ui_msg_star_png[]
IMG_BIN ui_msg_star_silhouette_png[]
IMG_BIN MsgCharImgLatin[]
IMG_BIN MsgCharImgMenuKana[]
IMG_BIN MsgCharImgMenuLatin[]
IMG_BIN MsgCharImgKana[]
IMG_BIN ui_msg_bubble_mid_png[]
IMG_BIN ui_msg_lamppost_corner_bottomright_png[]
IMG_BIN ui_msg_sign_side_top_png[]
PAL_BIN ui_msg_lamppost_pal[]
IMG_BIN ui_msg_sign_corner_topright_png[]
IMG_BIN ui_msg_bubble_right_png[]
IMG_BIN ui_msg_sign_fill_png[]
IMG_BIN ui_msg_background_png[]
PAL_BIN ui_msg_sign_pal[]
IMG_BIN ui_msg_sign_side_bottom_png[]
IMG_BIN ui_msg_sign_side_right_png[]
IMG_BIN ui_msg_sign_corner_bottomleft_png[]
IMG_BIN ui_msg_sign_corner_bottomright_png[]
IMG_BIN ui_msg_bubble_left_png[]
IMG_BIN ui_msg_sign_corner_topleft_png[]
IMG_BIN ui_msg_arrow_png[]
IMG_BIN ui_msg_sign_side_left_png[]
BSS IMG_BIN MsgCharImgNormal[0x5100]
Definition msg_img.c:91
unsigned char ui_msg_palettes[16][32]
Definition msg_img.c:42
BSS IMG_BIN MsgCharImgTitle[0xF60]
Definition msg_img.c:90
BSS IMG_BIN MsgCharImgSubtitle[0xB88]
Definition msg_img.c:92
#define BSS
Definition macros.h:7
#define ALIGNED(x)
Definition macros.h:10