aboutsummaryrefslogtreecommitdiff
path: root/Src/resources/data/freeform/xml/about/about.m
blob: bd25dfc0f1f04e28927e24febf4466a777401531 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#include <lib/std.mi>

Global Text section2;
Global Text section1;
Global Text codername2;
Global Text codername1;
Global Timer Timer6;
Global Int count = 0;
Global Int Int8;
Global Int Int9;
Global Int Int10;
Global Int Int11;
Global Layer llamaanim;
Global Double smidge;

System.onScriptLoaded()
{
	Group sg = System.getScriptGroup();
	llamaanim = sg.findObject(( "logo"));
	llamaanim.fx_setBgFx(0);
	llamaanim.fx_setWrap(1);
	llamaanim.fx_setBilinear(1);
	llamaanim.fx_setAlphaMode(0);
	llamaanim.fx_setGridSize(1, 1);
	llamaanim.fx_setRect(0);
	llamaanim.fx_setClear(1);
	llamaanim.fx_setLocalized(1);
	llamaanim.fx_setRealtime(1);
	llamaanim.fx_setSpeed(50);
	llamaanim.fx_setEnabled(1);
	section2 = sg.findObject(( "txth1"));
	section1 = sg.findObject(( "txth2"));
	codername2 = sg.findObject(( "txtm1"));
	codername1 = sg.findObject(( "txtm2"));
	Int9 = section1.getGuiX();
	Int8 = section1.getGuiW();
	Int10 = section1.getGuiW();
	Int11 = section1.getGuiH();
	Timer6 = ( new Timer);
	Timer6.setDelay(3000);
	Timer6.start();
}

System.onScriptUnloading()
{
	delete Timer6;
}

Timer6.onTimer()
{
	String section;
	GuiObject GuiObject61;
	GuiObject GuiObject59;
	String codername;
	GuiObject GuiObject60;
	GuiObject GuiObject62;

	if(( count == 0)) {
		section1.setXmlParam(( "x"), System.integerToString(( - Int8)));
	}
	count ++;
	if(( count == 1)) {
		section = ( "Main Development");
		codername = ( "Ben Allison");
	}
	if(( count == 2)) {
		section = ( "Development");
		codername = ( "Martin Poehlmann");
	}
	if(( count == 3)) {
		section = ( "Product Management");
		codername = ( "Matt Callaway");
	}
	if(( count == 4)) {
		section = ( "Engineering Management");
		codername = ( "Ben London");
	}
	if(( count == 5)) {
		section = ( "Bento Skin");
		codername = ( "Martin Poehlmann, Taber Buhl");
	}
	if(( count == 6)) {
		section = ( "Modern Skin");
		codername = ( "Sven Kistner");
	}
	if(( count == 7)) {
		section = ( "Documentation");
		codername = ( "Ghislain Lacroix");
	}
	if(( count == 8)) {
		section = ( "Former Architecture Development");
		codername = ( "B Underwood, F Gastellu");
	}
	if(( count == 9)) {
		section = ( "Former Development");
		codername = ( "C Thibault, J Frankel, M Gerard");
	}
	if(( count == 10)) {
		count = 0;
		section = ( "Powered by");
		codername = ( "Nullsoft Wasabi");
	}
	GuiObject59 = Null;
	GuiObject60 = Null;
	GuiObject61 = Null;
	GuiObject62 = Null;

	if(( System.frac(( count / 2)) != 0)) {
		GuiObject59 = section2;
		GuiObject60 = section1;
		GuiObject61 = codername2;
		GuiObject62 = codername1;
		section1.setText(section);
		codername1.setText(codername);
	} else {
		GuiObject59 = section1;
		GuiObject60 = section2;
		GuiObject61 = codername1;
		GuiObject62 = codername2;
		section2.setText(section);
		codername2.setText(codername);
	}

	GuiObject60.setTargetX(Int9);
	GuiObject59.setTargetX(( - Int8));
	GuiObject62.setTargetA(255);
	GuiObject61.setTargetA(0);
	GuiObject62.setTargetSpeed(2);
	GuiObject61.setTargetSpeed(2);
	GuiObject60.setTargetSpeed(2);
	GuiObject59.setTargetSpeed(2);
	GuiObject62.gotoTarget();
	GuiObject61.gotoTarget();
	GuiObject60.gotoTarget();
	GuiObject59.gotoTarget();
}

llamaanim.fx_onGetPixelR(double r, double d, double x, double y)
{
	return ( r + ( System.cos(smidge) * ( 0.5)));
}

llamaanim.fx_onFrame()
{
	smidge = ( smidge + ( 0.100000001490116));
}