示例#1
0
    public void Events()
    {
        if (world.turn >= 80 && world.didMorningPlanning == false)
        {
            //gameUI.BNextEventSet(9999);
            world.didAEvent          = true;
            world.didMorningPlanning = true;
            gameUI.HideAll();
            gameUI.ShowBaseEvent();
            gameUI.ImagesShow();
            gameUI.TSet("You eat a nice breakfeast. EventsHouse-Events-if 8+");
            gameUI.ShowImage("mllhild/Kuro/Day03", 1);
            gameUI.TAdd("\n but are still half asleep as you get your hair brushed.");
            gameUI.ShowImage("Images/Standard Images/Backgrounds/tn_Kennels - Gustaf Home Day", 0);
            gameUI.BPlanning(true, "Planning");
            gameUI.HouseMenuShow();
        }
        if (world.turn >= 180 && world.didEveningPlanning == false)
        {
            //gameUI.BNextEventSet(9999);
            world.didAEvent          = true;
            world.didEveningPlanning = true;
            gameUI.HideAll();
            gameUI.ShowBaseEvent();

            gameUI.ImagesShow();
            gameUI.TSet("You eat a nice dinner. EventsHouse-Events-if 18+");
            gameUI.ShowImage("mllhild/Kuro/family", 1);
            gameUI.TAdd("\n Afterwards there is a family reunion as you are all tired and beat for the day.");
            gameUI.ShowImage("Images/Standard Images/Backgrounds/tn_Kennels - Gustaf Home Evening", 0);

            gameUI.HouseMenuShow();
            gameUI.BNext(true, "Relax for the Evening");
        }
        if (world.turn >= 230 && world.didGoSleep == false)
        {
            //gameUI.BNextEventSet(9999);
            world.didAEvent  = true;
            world.didGoSleep = true;
            gameUI.HideAll();
            gameUI.ShowBaseEvent();

            gameUI.ImagesShow();
            gameUI.TSet("Its late at night. EventsHouse-Events-if 23+");
            gameUI.ShowImage("mllhild/Kuro/Day01", 1);
            gameUI.TAdd("\n Time to go to bed and sleep.");
            gameUI.ShowImage("Images/Standard Images/Backgrounds/tn_Kennels - Gustaf Home Night", 0);

            gameUI.HouseMenuShow();
            gameUI.BNext(true, "Sleep");
        }
    }
示例#2
0
    public void Events()
    {
        if (world.turn == 60)
        {
            //gameUI.BNextEventSet(9999);

            world.didAEvent = true;
            gameUI.ShowBaseEvent();
            gameUI.ImagesShow();
            gameUI.TSet("Its Morning. Events06Morning-Events-if 6");
            gameUI.ShowImage("mllhild/Kuro/Day02", 1);
            gameUI.TBlancLine();
            //gameUI.TSpeak(gameUI.sm.name1, "Is it really morning already?");
            gameUI.ShowImage("Images/Standard Images/Backgrounds/tn_Kennels - Millie's Room", 0);
            gameUI.BNext(true, "Next");
        }

        //if (world.hour == 7)
        //{
        //    Debug.Log("Entered ");
        //    //world.continueGame = false;
        //    //menus.UITextBoxEvent.SetActive(true);
        //    //gameUI.textBoxBG.gameObject.SetActive(false);
        //    //menus.UITextBoxEvent.SetActive(true);
        //    //gameUI.statScreenB1Nr1.gameObject.SetActive(true);
        //    ////gameUI.statScreenB1Nr2.GetComponent<Sprite>(). =
        //    //gameUI.statScreenB1Nr1.sprite = Resources.Load<Sprite>("UI/Texture/woodBackground");
        //    ////gameUI.sliderB1N1S1./
        //    //statsbar.statName.text = "helloo";
        //    //gameUI.TextboxSet("its breakfeast time");
        //    //gameUI.statsbarsCollumn[3].value.text = gameUI.statsbarsCollumn[3].slider.value.ToString();
        //}
    }
示例#3
0
 public void Events()
 {
     if (world.hour == 12)
     {
         // gameUI.BNextEventSet(9998);
         gameUI.ShowBase();
         gameUI.ImagesShow();
         gameUI.TSet("You eat a nice lunch. EventsTown-Events-if12");
         gameUI.ShowImage("Images/Standard Images/Backgrounds/tn_Kitchen 1", 0);
         //world.continueGame = false;
         gameUI.BNext(true, "Leave Town");
         Debug.LogFormat("game did not stop aat {0}", world.hour);
     }
 }
示例#4
0
 public void Events()
 {
     if (world.hour == 18)
     {
         //gameUI.BNextEventSet(9999);
         world.didAEvent = true;
         gameUI.HideAll();
         gameUI.ShowBaseEvent();
         gameUI.ImagesShow();
         gameUI.TSet("A letter seems to be waiting for you at home. Events18Evening-Events-if18");
         gameUI.TAdd(" Yet it doesnt seem to be addressed at you, better not to open it now.");
         gameUI.ShowImage("UI/Items/Books/envelope", 1);
         gameUI.ShowImage("Images/Standard Images/Backgrounds/tn_Lake 2", 0);
         gameUI.BNext(true, "Next");
     }
 }
示例#5
0
    public void Events()
    {
        if (world.turn == 130)
        {
            //gameUI.BNextEventSet(9998);
            world.didAEvent = true;
            gameUI.HideAll();
            gameUI.ShowBaseEvent();
            gameUI.ImagesShow();
            gameUI.TSet("You sit down to eat a nice lunch. Events12Midday-Events-if 13");
            gameUI.TAdd("\n Afterwards a bit of walking would do good..");
            gameUI.GoldUpdate(-10);
            gameUI.ShowImage("mllhild/food (1)", 1);
            gameUI.ShowImage("Images/Standard Images/Backgrounds/tn_Lake 2", 0);
            int id    = 1000;                                  //test id
            int index = 1;
            world.smaker[world.turn + 1] = id * 10000 + index; // declare the next event to happen, if you dont want a direct call
            gameUI.BNext(true, "Walk a bit");
        }


        //if (world.hour == 7)
        //{
        //    Debug.Log("Entered ");
        //    //world.continueGame = false;
        //    //menus.UITextBoxEvent.SetActive(true);
        //    //gameUI.textBoxBG.gameObject.SetActive(false);
        //    //menus.UITextBoxEvent.SetActive(true);
        //    //gameUI.statScreenB1Nr1.gameObject.SetActive(true);
        //    ////gameUI.statScreenB1Nr2.GetComponent<Sprite>(). =
        //    //gameUI.statScreenB1Nr1.sprite = Resources.Load<Sprite>("UI/Texture/woodBackground");
        //    ////gameUI.sliderB1N1S1./
        //    //statsbar.statName.text = "helloo";
        //    //gameUI.TextboxSet("its breakfeast time");
        //    //gameUI.statsbarsCollumn[3].value.text = gameUI.statsbarsCollumn[3].slider.value.ToString();
        //}
    }