folderstructure change
This commit is contained in:
committed by
Steffen Schröder
parent
043c85fa97
commit
570b32fff8
4
application/core/Libs/FML/Script/Parts/Header.txt
Normal file
4
application/core/Libs/FML/Script/Parts/Header.txt
Normal file
@ -0,0 +1,4 @@
|
||||
/*********************************
|
||||
* FancyManiaLinks by steeffeen *
|
||||
* http://fml.steeffeen.com *
|
||||
*********************************/
|
34
application/core/Libs/FML/Script/Parts/Main.txt
Normal file
34
application/core/Libs/FML/Script/Parts/Main.txt
Normal file
@ -0,0 +1,34 @@
|
||||
Void Dummy() {}
|
||||
main() {
|
||||
declare FML_ScriptStart = Now;
|
||||
+++OnInit+++
|
||||
declare FML_LoopCounter = 0;
|
||||
declare FML_LastTick = 0;
|
||||
while (True) {
|
||||
yield;
|
||||
foreach (Event in PendingEvents) {
|
||||
switch (Event.Type) {
|
||||
case CMlEvent::Type::EntrySubmit: {
|
||||
+++EntrySubmit+++
|
||||
}
|
||||
case CMlEvent::Type::KeyPress: {
|
||||
+++KeyPress+++
|
||||
}
|
||||
case CMlEvent::Type::MouseClick: {
|
||||
+++MouseClick+++
|
||||
}
|
||||
case CMlEvent::Type::MouseOut: {
|
||||
+++MouseOut+++
|
||||
}
|
||||
case CMlEvent::Type::MouseOver: {
|
||||
+++MouseOver+++
|
||||
}
|
||||
}
|
||||
}
|
||||
FML_LoopCounter += 1;
|
||||
+++Loop+++
|
||||
if (FML_LastTick + 250 > Now) continue;
|
||||
FML_LastTick = Now;
|
||||
+++Tick+++
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user