remove pack from codes repo and apply some Alert Events and also Time Tracking Events ...

This commit is contained in:
2024-07-02 05:44:50 +03:30
parent 5febdf2f11
commit 5d2bb7b294
71 changed files with 32 additions and 71573 deletions
+32
View File
@@ -130,6 +130,9 @@ input bool x121EATerminalAlerts = false; // Terminal Alerts
//
// Local Variables ...
//
XTimeTracker x121EATimeTracker;
//
string x121EAUsedSymbols[];
XSCX121SetupEA *x121EA;
@@ -154,6 +157,10 @@ int OnInit()
return INIT_PARAMETERS_INCORRECT;
}
//
// Initializitation Succeed Message ...
x121EA.Alert("Initialized Successfully ...");
//
// Init Succeed ...
return INIT_SUCCEEDED;
@@ -182,12 +189,37 @@ void OnDeinit(const int reason)
//
delete x121EACTHelper;
delete x121EACCHelper;
//
// De Initialization Succeed ...
x121EA.Alert("De Initialized Successfully ...");
}
//
// On Tick Handler ...
void OnTick()
{
//
// Time Tracking ...
//
if (x121EATimeTracker.IsNewHour())
{
x121EA.Alert("New Hour ...");
}
//
if (x121EATimeTracker.IsNewDay())
{
x121EA.Alert("New Day ...");
}
//
if (x121EATimeTracker.IsNewMonth())
{
x121EA.Alert("New Mount ...");
}
//
x121EA.OnTick();