Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
entity_model_icons.c
Go to the documentation of this file.
1#include "common.h"
2#include "entity.h"
3#include "include_asset.h"
4
9
10INCLUDE_IMG("ui/battle/cursor_hand.png", ui_battle_cursor_hand_png);
11INCLUDE_PAL("ui/battle/cursor_hand.pal", ui_battle_cursor_hand_pal);
12
14 {{{ -22, -6, 0 }, 0, { 1024, 1024 }, { 0, 0, 0, 255 }}},
15 {{{ 9, -6, 0 }, 0, { 0, 1024 }, { 0, 0, 0, 255 }}},
16 {{{ 9, 25, 0 }, 0, { 0, 0 }, { 0, 0, 0, 255 }}},
17 {{{ -22, 25, 0 }, 0, { 1024, 0 }, { 0, 0, 0, 255 }}},
18};
19
21 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
22 gsDPPipeSync(),
23 gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
24 gsDPSetTexturePersp(G_TP_PERSP),
25 gsDPSetTextureDetail(G_TD_CLAMP),
26 gsDPSetTextureLOD(G_TL_TILE),
27 gsDPSetTextureLUT(G_TT_NONE),
28 gsDPSetTextureFilter(G_TF_AVERAGE),
29 gsDPSetTextureConvert(G_TC_FILT),
30 gsDPSetTextureLUT(G_TT_RGBA16),
31 gsDPLoadTLUT_pal16(0, ui_battle_cursor_hand_pal),
32 gsDPLoadTextureTile_4b(ui_battle_cursor_hand_png, G_IM_FMT_CI, 32, 0, 0, 0, 31, 31, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD),
33 gsSPClearGeometryMode(G_LIGHTING),
34 gsSPClearGeometryMode(G_SHADING_SMOOTH),
35 gsSPVertex(BtlCursorModelVtx, 4, 0),
36 gsSP1Triangle(0, 1, 2, 0),
37 gsSP1Triangle(0, 2, 3, 0),
38 gsSPEndDisplayList(),
39};
40
42
44 {{{ -16, -16, 0 }, 0, { 0, 0 }, { 0, 0, 0, 255 }}},
45 {{{ 15, -16, 0 }, 0, { 1024, 0 }, { 0, 0, 0, 255 }}},
46 {{{ 15, 15, 0 }, 0, { 1024, 1024 }, { 0, 0, 0, 255 }}},
47 {{{ -16, 15, 0 }, 0, { 0, 1024 }, { 0, 0, 0, 255 }}},
48};
49
51 gsDPPipeSync(),
52 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
53 gsDPSetCombineMode(PM_CC_01, PM_CC_02),
54 gsDPSetTexturePersp(G_TP_PERSP),
55 gsDPSetTextureDetail(G_TD_CLAMP),
56 gsDPSetTextureLOD(G_TL_TILE),
57 gsDPSetTextureLUT(G_TT_NONE),
58 gsDPSetTextureFilter(G_TF_AVERAGE),
59 gsDPSetTextureConvert(G_TC_FILT),
60 gsDPSetTextureLUT(G_TT_RGBA16),
61 gsDPLoadTLUT_pal16(0, ui_battle_menu_spirits_pal),
62 gsDPLoadTextureTile_4b(ui_battle_menu_spirits_png, G_IM_FMT_CI, 32, 0, 0, 0, 31, 31, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD),
63 gsSPClearGeometryMode(G_LIGHTING),
64 gsSPClearGeometryMode(G_SHADING_SMOOTH),
65 gsSPVertex(BtlBonkModelVtx, 4, 0),
66 gsSP1Triangle(0, 1, 2, 0),
67 gsSP1Triangle(0, 2, 3, 0),
68 gsDPPipeSync(),
69 gsSPEndDisplayList(),
70};
71
73
75 {{{ -16, -16, 0 }, 0, { 0, 1024 }, { 0, 0, 0, 255 }}},
76 {{{ 15, -16, 0 }, 0, { 1024, 1024 }, { 0, 0, 0, 255 }}},
77 {{{ 15, 15, 0 }, 0, { 1024, 0 }, { 0, 0, 0, 255 }}},
78 {{{ -16, 15, 0 }, 0, { 0, 0 }, { 0, 0, 0, 255 }}},
79};
80
82 gsDPPipeSync(),
83 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
84 gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
85 gsDPSetTexturePersp(G_TP_PERSP),
86 gsDPSetTextureDetail(G_TD_CLAMP),
87 gsDPSetTextureLOD(G_TL_TILE),
88 gsDPSetTextureLUT(G_TT_NONE),
89 gsDPSetTextureFilter(G_TF_AVERAGE),
90 gsDPSetTextureConvert(G_TC_FILT),
91 gsDPSetTextureLUT(G_TT_RGBA16),
92 gsDPLoadTLUT_pal16(0, ui_battle_solid_star_pal),
93 gsDPLoadTextureTile_4b(ui_battle_solid_star_png, G_IM_FMT_CI, 32, 0, 0, 0, 31, 31, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD),
94 gsSPClearGeometryMode(G_LIGHTING),
95 gsSPClearGeometryMode(G_SHADING_SMOOTH),
96 gsSPVertex(BtlStarModelVtx, 4, 0),
97 gsSP1Triangle(0, 1, 2, 0),
98 gsSP1Triangle(0, 2, 3, 0),
99 gsDPPipeSync(),
100 gsSPEndDisplayList(),
101};
102
#define IMG_BIN
#define PAL_BIN
s32 EntityModelScript[]
Definition entity.h:7
#define STANDARD_ENTITY_MODEL_SCRIPT(gfx, renderMode)
Definition entity.h:56
Gfx BtlStarModelGfx[]
EntityModelScript EMS_CursorIcon
PAL_BIN ui_battle_solid_star_pal[]
Vtx BtlCursorModelVtx[]
Gfx BtlCursorModelGfx[]
EntityModelScript EMS_BonkIcon
IMG_BIN ui_battle_menu_spirits_png[]
PAL_BIN ui_battle_menu_spirits_pal[]
IMG_BIN ui_battle_solid_star_png[]
Vtx BtlStarModelVtx[]
Vtx BtlBonkModelVtx[]
Gfx BtlBonkModelGfx[]
EntityModelScript EMS_StarIcon
@ RENDER_MODE_ALPHATEST
Definition enums.h:3276
@ RENDER_MODE_CLOUD_NO_ZCMP
Definition enums.h:3311
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
#define PM_CC_01
Definition macros.h:276
#define PM_CC_02
Definition macros.h:277