6API_CALLABLE(N(UpdateTexturePanSmooth)) {
7 script->varTable[9] += script->varTable[1];
8 if (script->varTable[9] < 0) {
9 script->varTable[9] += script->varTable[13];
10 }
else if (script->varTable[9] > script->varTable[13]) {
11 script->varTable[9] -= script->varTable[13];
14 script->varTable[10] += script->varTable[2];
15 if (script->varTable[10] < 0) {
16 script->varTable[10] += script->varTable[13];
17 }
else if (script->varTable[10] > script->varTable[13]) {
18 script->varTable[10] -= script->varTable[13];
21 script->varTable[11] += script->varTable[3];
22 if (script->varTable[11] < 0) {
23 script->varTable[11] += script->varTable[13];
24 }
else if (script->varTable[11] > script->varTable[13]) {
25 script->varTable[11] -= script->varTable[13];
28 script->varTable[12] += script->varTable[4];
29 if (script->varTable[12] < 0) {
30 script->varTable[12] += script->varTable[13];
31 }
else if (script->varTable[12] > script->varTable[13]) {
32 script->varTable[12] -= script->varTable[13];
42API_CALLABLE(N(UpdateTexturePanStepped)) {
44 script->functionTemp[0] = 0;
45 script->functionTemp[1] = 0;
46 script->functionTemp[2] = 0;
47 script->functionTemp[3] = 0;
50 if (script->functionTemp[0] == 0) {
51 script->varTable[9] += script->varTable[1];
52 if (script->varTable[9] < 0) {
53 script->varTable[9] += script->varTable[13];
54 }
else if (script->varTable[9] > script->varTable[13]) {
55 script->varTable[9] -= script->varTable[13];
59 if (script->functionTemp[1] == 0) {
60 script->varTable[10] += script->varTable[2];
61 if (script->varTable[10] < 0) {
62 script->varTable[10] += script->varTable[13];
63 }
else if (script->varTable[10] > script->varTable[13]) {
64 script->varTable[10] -= script->varTable[13];
68 if (script->functionTemp[2] == 0) {
69 script->varTable[11] += script->varTable[3];
70 if (script->varTable[11] < 0) {
71 script->varTable[11] += script->varTable[13];
72 }
else if (script->varTable[11] > script->varTable[13]) {
73 script->varTable[11] -= script->varTable[13];
77 if (script->functionTemp[3] == 0) {
78 script->varTable[12] += script->varTable[4];
79 if (script->varTable[12] < 0) {
80 script->varTable[12] += script->varTable[13];
81 }
else if (script->varTable[12] > script->varTable[13]) {
82 script->varTable[12] -= script->varTable[13];
91 script->functionTemp[0]++;
92 script->functionTemp[1]++;
93 script->functionTemp[2]++;
94 script->functionTemp[3]++;
96 if (script->functionTemp[0] >= script->varTable[5]) {
97 script->functionTemp[0] = 0;
99 if (script->functionTemp[1] >= script->varTable[6]) {
100 script->functionTemp[1] = 0;
102 if (script->functionTemp[2] >= script->varTable[7]) {
103 script->functionTemp[2] = 0;
105 if (script->functionTemp[3] >= script->varTable[8]) {
106 script->functionTemp[3] = 0;
118 Call(N(UpdateTexturePanSmooth))
124 Call(N(UpdateTexturePanStepped))
void set_aux_pan_v(s32 texPannerID, s32 value)
void set_main_pan_u(s32 texPannerID, s32 value)
void set_aux_pan_u(s32 texPannerID, s32 value)
void set_main_pan_v(s32 texPannerID, s32 value)
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define EndIf
Marks the end of an if statement or an else block.
#define SetGroup(GROUP)
Sets the current thread's group. Group value meanings are currently not known.
#define IfEq(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR == RVAR.
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
#define Return
Kills the current EVT thread.