Go to the source code of this file.
◆ UnkStruct
Data Fields |
Gfx * |
displayList |
|
s16 |
x |
|
s16 |
y |
|
s16 |
width |
|
s16 |
height |
|
s32 |
unk_00 |
|
s32 |
unk_04 |
|
f32 |
unk_08 |
|
f32 |
unk_0C |
|
s32 |
unk_10 |
|
s32 |
unk_14 |
|
u8 |
unk_00 |
|
u8 |
unk_01 |
|
u8 |
unk_02 |
|
u8 |
unk_03 |
|
Gfx * |
unk_04 |
|
Gfx * |
unk_08 |
|
s32 |
unk_08 |
|
s8 |
unk_00 |
|
s8 |
unk_01 |
|
s16 |
unk_02 |
|
s16 |
unk_04 |
|
s16 |
unk_06 |
|
u8 |
sizeScale |
|
char |
unk_09[1] |
|
◆ shape_spell_appendGfx()
void shape_spell_appendGfx |
( |
void * | effect | ) |
|
Definition at line 150 of file shape_spell.c.
150 {
152 s32 isChild;
156 s32 primA;
163 s32 timeLeft;
167 s32 i;
169
173
182
183 if (isChild == 0) {
184 angle = timeLeft * 35;
187 } else {
188 angle = timeLeft * 25;
191 unk_10 *= unk_28;
192 }
193
194 for (i = 0; i < 3; i++) {
195 if (i > 0) {
196 if (!isChild) {
197 angle -= 70.0f;
198 unk_10 -= 2.0f * data->
unk_1C;
200 unk_18 -= 2.0f * data->
unk_24;
201 } else {
202 angle -= 50.0f;
203 unk_10 -= data->
unk_1C * (100.0 / 83) * 2.0;
204 }
205 primA = data->
unk_34 * 100 / 255;
206 }
207
210
212
216
217 angle += 120.0f;
219
224
225 angle += 120.0f;
227
232
234
236
237 for (
j = 0;
j < 3;
j++) {
243 primA);
248 255);
252 }
253
255 }
256
259
260 if (!isChild) {
262 } else {
264 }
265
268
270
271 if (!isChild) {
273 } else {
275
278
279 for (i = 0; i < 12; i++) {
282 }
283 }
284
287}
BSS s32 PopupMenu_SelectedIndex
#define VIRTUAL_TO_PHYSICAL(addr)
s32 func_E0024324(s32 arg0, s32 arg1)
s32 func_E00243BC(s32 arg0, s32 arg1)
DisplayContext * gDisplayContext
Referenced by shape_spell_render().
◆ shape_spell_init()
◆ shape_spell_update()
Definition at line 83 of file shape_spell.c.
83 {
86 s32 isChild;
87
91 }
92
95
96 if (
part->timeLeft < 0) {
98 return;
99 }
100
101 isChild =
part->isChild;
102
103 if (!isChild &&
part->timeLeft == 0) {
105 1,
109 0.0f, 0.0f, 0.0f, 0x18
112 }
113
114 if (isChild ==
TRUE) {
117 }
121}
struct ShapeSpellFXData * shapeSpell
EffectInstanceDataPtr data
@ FX_INSTANCE_FLAG_DISMISS
EffectInstance * shape_spell_main(s32 isChild, f32 x, f32 y, f32 z, f32 arg4, f32 arg5, f32 arg6, s32 arg7)
Referenced by shape_spell_main().
◆ shape_spell_render()
Definition at line 123 of file shape_spell.c.
123 {
126
131
134}
#define queue_render_task
@ RENDER_TASK_FLAG_REFLECT_FLOOR
@ RENDER_MODE_CLOUD_NO_ZCMP
void shape_spell_appendGfx(void *effect)
void(* appendGfx)(void *)
Referenced by shape_spell_main().
◆ shape_spell_main()
Definition at line 32 of file shape_spell.c.
32 {
37 s32 numParts = 1;
38
45
49
51
53 part->isChild = isChild;
59 if (!isChild) {
67 } else {
75 }
76
77 return effect;
78}
#define general_heap_malloc
#define create_effect_instance
#define ASSERT(condition)
void shape_spell_update(EffectInstance *effect)
void shape_spell_render(EffectInstance *effect)
void shape_spell_init(EffectInstance *effect)
Referenced by shape_spell_update().
◆ func_E0024324()
s32 func_E0024324 |
( |
s32 | arg0, |
|
|
s32 | arg1 ) |
◆ func_E00243BC()
s32 func_E00243BC |
( |
s32 | arg0, |
|
|
s32 | arg1 ) |
◆ D_09001080_33AFE0
◆ D_09001128_33B088
◆ D_09001150_33B0B0
◆ D_09001178_33B0D8
◆ D_090011A0_33B100
◆ D_090011C8_33B128
◆ D_090011F0_33B150
◆ D_E0024CC0