- Moved FML into core folder
- Endurance plugin - map class nbCheckpoints - added script callbacks registration
This commit is contained in:
27
application/core/FML/Script/Templates/Main.txt
Normal file
27
application/core/FML/Script/Templates/Main.txt
Normal file
@ -0,0 +1,27 @@
|
||||
|
||||
main() {
|
||||
+++OnInit+++
|
||||
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+++
|
||||
}
|
||||
}
|
||||
}
|
||||
+++Loop+++
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
if (C_FML_TooltipIds.existskey(Event.ControlId)) {
|
||||
declare TooltipControl <=> Page.GetFirstChild(C_FML_TooltipIds[Event.ControlId]);
|
||||
if (TooltipControl != Null) {
|
||||
TooltipControl.Hide();
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
if (C_FML_TooltipIds.existskey(Event.ControlId)) {
|
||||
declare TooltipControl <=> Page.GetFirstChild(C_FML_TooltipIds[Event.ControlId]);
|
||||
if (TooltipControl != Null) {
|
||||
TooltipControl.Show();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user