Beispiel #1
0
 public static void PollFIcon(Int32 type)
 {
     EIcon.lastPollType = EIcon.PollType.EVENT_SCRIPT;
     EIcon.sFIconPolled = true;
     EIcon.sFIconType   = type;
     EIcon.CloseHereIcon();
 }
Beispiel #2
0
    public static void ProcessHereIcon(PosObj po)
    {
        EventEngine instance = PersistenSingleton <EventEngine> .Instance;

        if (instance.GetUserControl() && (ETb.KeyOn() & 1u) > 0u)
        {
            EIcon.sHereIconTimer = 60;
            EIcon.sHereIconForce = true;
            EIcon.hereIconShow   = false;
        }
        if (EIcon.sHereIconTimer > 0)
        {
            EIcon.sHereIconTimer--;
            if (EIcon.sHereIconTimer <= 0)
            {
                EIcon.sHereIconForce = false;
            }
            if (instance.gMode == 1 && !EIcon.hereIconShow && EIcon.lastPollType == EIcon.PollType.NONE && EIcon.sHereIconTimer > 0 && EIcon.sHereIconTimer < 58)
            {
                EIcon.ShowHereIcon(po);
            }
        }
        else
        {
            EIcon.CloseHereIcon();
        }
    }