コード例 #1
0
ファイル: ExampleScript.cs プロジェクト: prens2/iFruitAddon2
    private void ContactAnswered(iFruitContact contact)
    {
        // The contact has answered, we can execute our code
        UI.Notify("The contact has answered.");

        // We need to close the phone at a moment.
        // We can close it as soon as the contact pick up calling _iFruit.Close().
        // Here, we will close the phone in 5 seconds (5000ms).
        _iFruit.Close(5000);
    }
コード例 #2
0
        private void docAnswered(iFruitContact contact)
        {
            Random random      = new Random();
            int    index       = random.Next(Dialogue.docPositive.Count);
            string docResponse = Dialogue.docPositive[index];

            newJobStartTick = Environment.TickCount + new Random().Next(NEW_JOB_MIN_TICKS, NEW_JOB_MAX_TICKS);
            _iFruit.Close(5000);
            currentSubtitle = "Doc: " + docResponse;
            subtitleEndTick = Environment.TickCount + 4000;
        }
コード例 #3
0
ファイル: HitmanContact.cs プロジェクト: iLLoReal/GTA5-Mods
 public void Contact_Answered(iFruitContact contact)
 {
     if (contact == this.contact)
     {
         this.startMission = !this.startMission;
         if (startMission)
         {
             Hitman.HitmanMission.hitmanNotify("Hey there, I got your call. Clients are always hungry !");
         }
         else
         {
             Hitman.HitmanMission.hitmanNotify("Okay. Clients will have to go get their pizzas themselves, i guess...");
         }
         phone.Close();
     }
 }