Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
5B320.c
Go to the documentation of this file.
1#include "common.h"
2#include "hud_element.h"
3#include "item_entity.h"
4#include "world/world.h"
5
6#if !VERSION_JP
7#define MSG_FullDesc_32 0
8#define MSG_ItemFullDesc_AutoJump 0
9#define MSG_ItemFullDesc_AutoMultibounce 0
10#define MSG_ItemFullDesc_AutoSmash 0
11#define MSG_ItemFullDesc_Berserker 0
12#define MSG_ItemFullDesc_CrazyHeart 0
13#define MSG_ItemFullDesc_EarthquakeJump 0
14#define MSG_ItemFullDesc_FlowerFanatic 0
15#define MSG_ItemFullDesc_ForestPass 0
16#define MSG_ItemFullDesc_HealthyHealthy 0
17#define MSG_ItemFullDesc_HustleDrink 0
18#define MSG_ItemFullDesc_InsecticideHerb 0
19#define MSG_ItemFullDesc_JumpCharge0 0
20#define MSG_ItemFullDesc_Kaiden 0
21#define MSG_ItemFullDesc_KootAltPhoto 0
22#define MSG_ItemFullDesc_KootShell 0
23#define MSG_ItemFullDesc_MegaHPDrain 0
24#define MSG_ItemFullDesc_MysteryScroll 0
25#define MSG_ItemFullDesc_PleaseComeBack 0
26#define MSG_ItemFullDesc_Screwdriver 0
27#define MSG_ItemFullDesc_ShellCrack 0
28#define MSG_ItemFullDesc_SmashCharge0 0
29#define MSG_ItemFullDesc_SuperFocus 0
30#define MSG_ItemFullDesc_SuperJump 0
31#define MSG_ItemFullDesc_SuperSmash 0
32#define MSG_ItemFullDesc_SuspiciousNote 0
33#define MSG_ItemFullDesc_ToadDoll 0
34#define MSG_ItemFullDesc_UnusedLetter 0
35#define MSG_ItemFullDesc_UnusedLetter02 0
36#define MSG_ItemFullDesc_UnusedLetter03 0
37#define MSG_ItemFullDesc_UnusedLetter04 0
38#define MSG_ItemFullDesc_UnusedLetter05 0
39#define MSG_ItemFullDesc_UnusedLetter06 0
40#define MSG_ItemName_Heart 0
41#define MSG_ItemName_Coin 0
42#define MSG_ItemName_HeartPiece 0
43#define MSG_ItemName_StarPoint 0
44#define MSG_ItemName_HeartPoint 0
45#define MSG_ItemName_FlowerPoint 0
46#define MSG_ItemName_Map 0
47#define MSG_ItemName_BigMap 0
48#define MSG_ItemName_AutoJump 0
49#define MSG_ItemName_AutoMultibounce 0
50#define MSG_ItemName_AutoSmash 0
51#define MSG_ItemName_Berserker 0
52#define MSG_ItemName_CrazyHeart 0
53#define MSG_ItemName_EarthquakeJump 0
54#define MSG_ItemName_FlowerFanatic 0
55#define MSG_ItemName_ForestPass 0
56#define MSG_ItemName_HealthyHealthy 0
57#define MSG_ItemName_HustleDrink 0
58#define MSG_ItemName_InsecticideHerb 0
59#define MSG_ItemName_JumpCharge0 0
60#define MSG_ItemName_Kaiden 0
61#define MSG_ItemName_KootAltPhoto 0
62#define MSG_ItemName_KootShell 0
63#define MSG_ItemName_MegaHPDrain 0
64#define MSG_ItemName_MysteryScroll 0
65#define MSG_ItemName_PleaseComeBack 0
66#define MSG_ItemName_Screwdriver 0
67#define MSG_ItemName_ShellCrack 0
68#define MSG_ItemName_SmashCharge0 0
69#define MSG_ItemName_SuperFocus 0
70#define MSG_ItemName_SuperJump 0
71#define MSG_ItemName_SuperSmash 0
72#define MSG_ItemName_SuspiciousNote 0
73#define MSG_ItemName_ToadDoll 0
74#define MSG_ItemName_UnusedLetter 0
75#define MSG_ItemName_UnusedLetter02 0
76#define MSG_ItemName_UnusedLetter03 0
77#define MSG_ItemName_UnusedLetter04 0
78#define MSG_ItemName_UnusedLetter05 0
79#define MSG_ItemName_UnusedLetter06 0
80#define MSG_ItemShortDesc_AutoJump 0
81#define MSG_ItemShortDesc_AutoMultibounce 0
82#define MSG_ItemShortDesc_AutoSmash 0
83#define MSG_ItemShortDesc_Berserker 0
84#define MSG_ItemShortDesc_CrazyHeart 0
85#define MSG_ItemShortDesc_EarthquakeJump 0
86#define MSG_ItemShortDesc_FlowerFanatic 0
87#define MSG_ItemShortDesc_ForestPass 0
88#define MSG_ItemShortDesc_HealthyHealthy 0
89#define MSG_ItemShortDesc_HustleDrink 0
90#define MSG_ItemShortDesc_InsecticideHerb 0
91#define MSG_ItemShortDesc_JumpCharge0 0
92#define MSG_ItemShortDesc_Kaiden 0
93#define MSG_ItemShortDesc_KootAltPhoto 0
94#define MSG_ItemShortDesc_KootShell 0
95#define MSG_ItemShortDesc_MegaHPDrain 0
96#define MSG_ItemShortDesc_MysteryScroll 0
97#define MSG_ItemShortDesc_PleaseComeBack 0
98#define MSG_ItemShortDesc_Screwdriver 0
99#define MSG_ItemShortDesc_ShellCrack 0
100#define MSG_ItemShortDesc_SmashCharge0 0
101#define MSG_ItemShortDesc_SuperFocus 0
102#define MSG_ItemShortDesc_SuperJump 0
103#define MSG_ItemShortDesc_SuperSmash 0
104#define MSG_ItemShortDesc_SuspiciousNote 0
105#define MSG_ItemShortDesc_ToadDoll 0
106#define MSG_ItemShortDesc_UnusedLetter 0
107#define MSG_ItemShortDesc_UnusedLetter02 0
108#define MSG_ItemShortDesc_UnusedLetter03 0
109#define MSG_ItemShortDesc_UnusedLetter04 0
110#define MSG_ItemShortDesc_UnusedLetter05 0
111#define MSG_ItemShortDesc_UnusedLetter06 0
112#define MSG_MoveName_32 0
113#define MSG_MoveName_AutoJump 0
114#define MSG_MoveName_AutoMultibounce 0
115#define MSG_MoveName_AutoSmash 0
116#define MSG_MoveName_Berserker 0
117#define MSG_MoveName_BumpAttack 0
118#define MSG_MoveName_CloseCall 0
119#define MSG_MoveName_CrazyHeart 0
120#define MSG_MoveName_DefendPlus 0
121#define MSG_MoveName_DizzyAttack 0
122#define MSG_MoveName_EarthquakeJump 0
123#define MSG_MoveName_FlowerFanatic 0
124#define MSG_MoveName_FlowerFinder 0
125#define MSG_MoveName_HealthyHealthy 0
126#define MSG_MoveName_HeartFinder 0
127#define MSG_MoveName_ISpy 0
128#define MSG_MoveName_JumpCharge0 0
129#define MSG_MoveName_LastStand 0
130#define MSG_MoveName_LuckyDay 0
131#define MSG_MoveName_MegaHPDrain 0
132#define MSG_MoveName_PowerRush 0
133#define MSG_MoveName_SmashCharge0 0
134#define MSG_MoveName_SpeedySpin 0
135#define MSG_MoveName_SpinAttack 0
136#define MSG_MoveName_SuperJump 0
137#define MSG_MoveName_SuperSmash 0
138#define MSG_PartnerDesc_Goombaria_Battle 0
139#define MSG_PartnerDesc_Goombaria_World 0
140#define MSG_PartnerDesc_Goompa_Battle 0
141#define MSG_PartnerDesc_Goompa_World 0
142#define MSG_PartnerDesc_Twink_Battle 0
143#define MSG_PartnerDesc_Twink_World 0
144#define MSG_ShortDesc_32 0
145
146// Use generic names for the different levels of partner moves
147#define MSG_PartnerMoveName_BellyFlop1 MSG_PartnerMoveName_BellyFlop
148#define MSG_PartnerMoveName_BellyFlop2 MSG_PartnerMoveName_BellyFlop
149#define MSG_PartnerMoveName_BellyFlop3 MSG_PartnerMoveName_BellyFlop
150#define MSG_PartnerMoveName_BodySlam1 MSG_PartnerMoveName_BodySlam
151#define MSG_PartnerMoveName_BodySlam2 MSG_PartnerMoveName_BodySlam
152#define MSG_PartnerMoveName_BodySlam3 MSG_PartnerMoveName_BodySlam
153#define MSG_PartnerMoveName_ElectroDash1 MSG_PartnerMoveName_ElectroDash
154#define MSG_PartnerMoveName_ElectroDash2 MSG_PartnerMoveName_ElectroDash
155#define MSG_PartnerMoveName_ElectroDash3 MSG_PartnerMoveName_ElectroDash
156#define MSG_PartnerMoveName_Headbonk1 MSG_PartnerMoveName_Headbonk
157#define MSG_PartnerMoveName_Headbonk2 MSG_PartnerMoveName_Headbonk
158#define MSG_PartnerMoveName_Headbonk3 MSG_PartnerMoveName_Headbonk
159#define MSG_PartnerMoveName_ShellToss1 MSG_PartnerMoveName_ShellToss
160#define MSG_PartnerMoveName_ShellToss2 MSG_PartnerMoveName_ShellToss
161#define MSG_PartnerMoveName_ShellToss3 MSG_PartnerMoveName_ShellToss
162#define MSG_PartnerMoveName_SkyDive1 MSG_PartnerMoveName_SkyDive
163#define MSG_PartnerMoveName_SkyDive2 MSG_PartnerMoveName_SkyDive
164#define MSG_PartnerMoveName_SkyDive3 MSG_PartnerMoveName_SkyDive
165#define MSG_PartnerMoveName_Smack1 MSG_PartnerMoveName_Smack
166#define MSG_PartnerMoveName_Smack2 MSG_PartnerMoveName_Smack
167#define MSG_PartnerMoveName_Smack3 MSG_PartnerMoveName_Smack
168#define MSG_PartnerMoveName_SpinyFlip1 MSG_PartnerMoveName_SpinyFlip
169#define MSG_PartnerMoveName_SpinyFlip2 MSG_PartnerMoveName_SpinyFlip
170#define MSG_PartnerMoveName_SpinyFlip3 MSG_PartnerMoveName_SpinyFlip
171#endif
172
176 hs_Loop
177 hs_SetTexelOffset(0, -1)
178 hs_SetIcon(1, anim_hand_0)
179 hs_SetTexelOffset(0, -1)
180 hs_SetIcon(1, anim_hand_0)
181 hs_SetTexelOffset(0, -1)
182 hs_SetIcon(1, anim_hand_0)
183 hs_SetTexelOffset(0, -1)
184 hs_SetIcon(1, anim_hand_0)
185 hs_SetTexelOffset(2, -1)
186 hs_SetIcon(1, anim_hand_1)
187 hs_SetTexelOffset(2, -1)
188 hs_SetIcon(1, anim_hand_2)
189 hs_SetTexelOffset(2, -1)
190 hs_SetIcon(4, anim_hand_3)
192 hs_SetIcon(1, anim_hand_1)
194 hs_SetIcon(1, anim_hand_0)
195 hs_SetTexelOffset(0, -1)
196 hs_SetIcon(14, anim_hand_4)
198 hs_End
199};
200
204 hs_SetTexelOffset(0, -1)
205 hs_SetIcon(1, anim_hand_0)
206 hs_SetTexelOffset(2, -1)
207 hs_SetIcon(1, anim_hand_1)
208 hs_SetTexelOffset(2, -1)
209 hs_SetIcon(1, anim_hand_2)
210 hs_SetTexelOffset(2, -1)
211 hs_SetIcon(4, anim_hand_3)
213 hs_SetIcon(1, anim_hand_1)
215 hs_SetIcon(1, anim_hand_0)
216 hs_SetTexelOffset(0, -1)
217 hs_SetIcon(2, anim_hand_4)
219 hs_Loop
220 hs_SetIcon(60, anim_hand_0)
222 hs_End
223};
224
233
237 hs_Loop
239 hs_SetIcon(1, anim_hand_5)
241 hs_SetIcon(1, anim_hand_5)
243 hs_SetIcon(1, anim_hand_5)
245 hs_SetIcon(1, anim_hand_5)
246 hs_SetTexelOffset(0, -1)
247 hs_SetIcon(1, anim_hand_6)
248 hs_SetTexelOffset(0, -1)
249 hs_SetIcon(1, anim_hand_7)
250 hs_SetTexelOffset(1, -3)
251 hs_SetIcon(4, anim_hand_8)
253 hs_SetIcon(1, anim_hand_6)
255 hs_SetIcon(1, anim_hand_5)
257 hs_SetIcon(14, anim_hand_9)
259 hs_End
260};
261
266 hs_SetIcon(1, anim_hand_5)
267 hs_SetTexelOffset(0, -1)
268 hs_SetIcon(1, anim_hand_6)
269 hs_SetTexelOffset(0, -1)
270 hs_SetIcon(1, anim_hand_7)
271 hs_SetTexelOffset(1, -3)
272 hs_SetIcon(4, anim_hand_8)
274 hs_SetIcon(1, anim_hand_6)
276 hs_SetIcon(1, anim_hand_5)
278 hs_SetIcon(2, anim_hand_9)
280 hs_Loop
281 hs_SetIcon(60, anim_hand_5)
283 hs_End
284};
285
294
295#include "item_data.inc.c"
296
297//TODO split for partner popup menu data?
298
299// "change partner" menu position -> partnerID
314
315// partnerID -> "change partner" menu position
317 [PARTNER_NONE] 0,
319 [PARTNER_KOOPER] 2,
322 [PARTNER_GOOMPA] 0,
323 [PARTNER_WATT] 6,
324 [PARTNER_SUSHIE] 7,
326 [PARTNER_BOW] 5,
328 [PARTNER_TWINK] 0,
329};
330
332 [PARTNER_NONE] {
333 (s32) "なし",
334 0,
335 MSG_NONE,
336 MSG_NONE,
337 },
339 MSG_Menus_Party_Goombario,
340 2,
341 MSG_PartnerDesc_Goombario_World,
342 MSG_PartnerDesc_Goombario_Battle,
343 },
345 MSG_Menus_Party_Kooper,
346 3,
347 MSG_PartnerDesc_Kooper_World,
348 MSG_PartnerDesc_Kooper_Battle,
349 },
351 MSG_Menus_Party_Bombette,
352 4,
353 MSG_PartnerDesc_Bombette_World,
354 MSG_PartnerDesc_Bombette_Battle,
355 },
357 MSG_Menus_Party_Parakarry,
358 5,
359 MSG_PartnerDesc_Parakarry_World,
360 MSG_PartnerDesc_Parakarry_Battle,
361 },
363 MSG_Menus_Party_Goompa,
364 1,
367 },
368 [PARTNER_WATT] {
369 MSG_Menus_Party_Watt,
370 7,
371 MSG_PartnerDesc_Watt_World,
372 MSG_PartnerDesc_Watt_Battle,
373 },
375 MSG_Menus_Party_Sushie,
376 8,
377 MSG_PartnerDesc_Sushie_World,
378 MSG_PartnerDesc_Sushie_Battle,
379 },
381 MSG_Menus_Party_Lakilester,
382 9,
383 MSG_PartnerDesc_Lakilester_World,
384 MSG_PartnerDesc_Lakilester_Battle,
385 },
386 [PARTNER_BOW] {
387 MSG_Menus_Party_Bow,
388 6,
389 MSG_PartnerDesc_Bow_World,
390 MSG_PartnerDesc_Bow_Battle,
391 },
393 MSG_Menus_Party_Goombaria,
394 1,
397 },
398 [PARTNER_TWINK] {
399 MSG_Menus_Party_Twink,
400 1,
403 }
404};
405
406//TODO padding
407s32 pad8[] = {
408 0x00000000, 0x00000000
409};
410
413extern HudScript HES_Kooper;
416extern HudScript HES_Watt;
417extern HudScript HES_Sushie;
420extern HudScript HES_Bow;
435
437 { .enabled = &HES_Partner0, .disabled = &HES_Partner0Disabled },
438 { .enabled = &HES_Goombario, .disabled = &HES_GoombarioDisabled },
439 { .enabled = &HES_Kooper, .disabled = &HES_KooperDisabled },
440 { .enabled = &HES_Bombette, .disabled = &HES_BombetteDisabled },
441 { .enabled = &HES_Parakarry, .disabled = &HES_ParakarryDisabled },
442 { .enabled = &HES_Bow, .disabled = &HES_BowDisabled },
443 { .enabled = &HES_Watt, .disabled = &HES_WattDisabled },
444 { .enabled = &HES_Sushie, .disabled = &HES_SushieDisabled },
445 { .enabled = &HES_Lakilester, .disabled = &HES_LakilesterDisabled },
446 { .enabled = &HES_Partner9, .disabled = &HES_Partner9Disabled },
447 { .enabled = &HES_PartnerA, .disabled = &HES_PartnerADisabled },
448 { .enabled = &HES_PartnerB, .disabled = &HES_PartnerBDisabled },
449 { .enabled = &HES_PartnerB, .disabled = &HES_PartnerBDisabled },
450};
451
452#include "move_data.inc.c"
453
454//TODO padding
456 0x00000000, 0x00000000, 0x00000000
457};
458
491
HudScript HES_HandPointLeftHeld
Definition 5B320.c:286
HudScript HES_BombetteDisabled
HudScript HES_PartnerBDisabled
HudScript HES_Partner9Disabled
#define MSG_PartnerDesc_Goombaria_Battle
Definition 5B320.c:138
HudScript HES_Parakarry
#define MSG_PartnerDesc_Goombaria_World
Definition 5B320.c:139
s32 PartnerIDFromMenuIndex[]
Definition 5B320.c:300
IMG_BIN ui_msg_frame_b_2_5_png[]
HudScript HES_HandPointDownLoop
Definition 5B320.c:173
HudScript HES_HandPointLeft
Definition 5B320.c:262
HudScript HES_HandPointLeftLoop
Definition 5B320.c:234
IMG_BIN ui_msg_frame_a_3_5_png[]
HudScript HES_PartnerADisabled
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[]
HudScript HES_BowDisabled
HudScript HES_LakilesterDisabled
IMG_BIN ui_msg_frame_b_2_1_png[]
HudScript HES_SushieDisabled
IMG_BIN ui_msg_frame_a_2_1_png[]
s32 pad8[]
Definition 5B320.c:407
IMG_BIN ui_msg_frame_a_5_2_png[]
HudScript HES_KooperDisabled
HudScript HES_GoombarioDisabled
IMG_BIN * gMessageBoxFrameParts[2][16]
Definition 5B320.c:492
#define MSG_PartnerDesc_Twink_Battle
Definition 5B320.c:142
HudScript HES_Partner9
HudScript HES_ParakarryDisabled
IMG_BIN ui_msg_frame_a_4_5_png[]
#define MSG_PartnerDesc_Goompa_Battle
Definition 5B320.c:140
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[]
IconHudScriptPair gPartnerIconHudScripts[]
Definition 5B320.c:436
IMG_BIN ui_msg_frame_b_3_1_png[]
#define MSG_PartnerDesc_Twink_World
Definition 5B320.c:143
s32 MenuIndexFromPartnerID[]
Definition 5B320.c:316
HudScript HES_Partner0Disabled
HudScript HES_WattDisabled
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[]
HudScript HES_Sushie
HudScript HES_PartnerB
IMG_BIN ui_msg_frame_a_5_3_png[]
IMG_BIN ui_msg_frame_b_5_3_png[]
HudScript HES_Partner0
IMG_BIN ui_msg_frame_a_5_5_png[]
HudScript HES_PartnerA
IMG_BIN ui_msg_frame_a_1_2_png[]
#define MSG_PartnerDesc_Goompa_World
Definition 5B320.c:141
IMG_BIN ui_msg_frame_a_1_5_png[]
HudScript HES_Kooper
s32 pad_after_move_table[]
Definition 5B320.c:455
IMG_BIN ui_msg_frame_a_4_1_png[]
PartnerPopupProperties gPartnerPopupProperties[]
Definition 5B320.c:331
HudScript HES_Watt
IMG_BIN ui_msg_frame_b_3_5_png[]
HudScript HES_HandPointDownHeld
Definition 5B320.c:225
HudScript HES_HandPointDown
Definition 5B320.c:201
HudScript HES_Lakilester
IMG_BIN ui_msg_frame_a_3_1_png[]
IMG_BIN ui_msg_frame_a_2_5_png[]
HudScript HES_Bow
HudScript HES_Bombette
HudScript HES_Goombario
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
@ PARTNER_NONE
Definition enums.h:2885
@ PARTNER_BOMBETTE
Definition enums.h:2888
@ PARTNER_LAKILESTER
Definition enums.h:2893
@ PARTNER_WATT
Definition enums.h:2891
@ PARTNER_BOW
Definition enums.h:2894
@ PARTNER_SUSHIE
Definition enums.h:2892
@ PARTNER_TWINK
Definition enums.h:2896
@ PARTNER_PARAKARRY
Definition enums.h:2889
@ PARTNER_GOOMBARIA
Definition enums.h:2895
@ PARTNER_GOOMPA
Definition enums.h:2890
@ PARTNER_KOOPER
Definition enums.h:2887
@ PARTNER_GOOMBARIO
Definition enums.h:2886
#define hs_SetTileSize(size)
#define hs_SetVisible
#define hs_End
#define hs_Restart
#define hs_Loop
#define hs_SetTexelOffset(x, y)
#define hs_SetIcon(time, icon)
@ HUD_ELEMENT_SIZE_24x24
Definition hud_element.h:47
s32 HudScript[]
Definition hud_element.h:9
HudScript * enabled