Ejemplo n.º 1
0
        //THE MAIN ACTION MENU  (THIS IS WHERE ALL THE ACTIONS ARE SHOWN)
        public int ActionMenuShow(int actionmenuscroller, int HomeworkAmount, PlayerData Player)
        {
            Color classC = Color.White;
            Color clrEat = Color.White;

            if (Player.Time.FullTime <= 1700 & Player.Time.FullTime >= 800 && Player.Time.DayOfWeek == 1 || Player.Time.DayOfWeek == 3 || Player.Time.DayOfWeek == 5) classC = Color.White;
            else classC = Color.Gray;

            if (Player.Time.FullTime >= 2100 || Player.Time.FullTime <= 400) clrEat = Color.Gray;
            else clrEat = Color.White;

            //Action Menu
            spriteBatch.Draw(action_menu, new Rectangle(actionmenuscroller, 120, 300, 400), Color.White);
            spriteBatch.DrawString(debugfont, "Action Select Menu", new Vector2(52 + actionmenuscroller, 160), Color.Black);
            spriteBatch.Draw(buttonup, new Rectangle(30 + actionmenuscroller, 220, 120, 30), Color.White);
            spriteBatch.Draw(buttonup, new Rectangle(160 + actionmenuscroller, 220, 120, 30), Color.White);
            spriteBatch.Draw(buttonup, new Rectangle(30 + actionmenuscroller, 260, 120, 30), Color.White);
            spriteBatch.Draw(buttonup, new Rectangle(160 + actionmenuscroller, 260, 120, 30), clrEat);
            spriteBatch.Draw(buttonup, new Rectangle(30 + actionmenuscroller, 300, 120, 30), Color.White);
            spriteBatch.Draw(buttonup, new Rectangle(160 + actionmenuscroller, 300, 120, 30), Color.White);
            spriteBatch.Draw(buttonup, new Rectangle(30 + actionmenuscroller, 340, 120, 30), Color.White);
            spriteBatch.Draw(buttonup, new Rectangle(160 + actionmenuscroller, 340, 120, 30), classC);
            spriteBatch.Draw(buttonup, new Rectangle(30 + actionmenuscroller, 380, 120, 30), Color.White);
            spriteBatch.Draw(buttonup, new Rectangle(160 + actionmenuscroller, 380, 120, 30), Color.White);
            spriteBatch.Draw(buttonup, new Rectangle(30 + actionmenuscroller, 420, 120, 30), Color.White);
            spriteBatch.Draw(buttonup, new Rectangle(160 + actionmenuscroller, 420, 120, 30), Color.White);
            if (Player.Schedule.totalHomework >= 1) spriteBatch.Draw(homeworkAlert, new Rectangle(268 + actionmenuscroller, 296, 24, 24), Color.White);

            //Text on buttons
            spriteBatch.DrawString(debugfont, "Sleep", new Vector2(60 + actionmenuscroller, 221), Color.White);
            spriteBatch.DrawString(debugfont, "Text", new Vector2(195 + actionmenuscroller, 221), Color.White);
            spriteBatch.DrawString(debugfont, "TV", new Vector2(78 + actionmenuscroller, 261), Color.White);
            spriteBatch.DrawString(debugfont, "Go Eat", new Vector2(188 + actionmenuscroller, 261), clrEat);
            spriteBatch.DrawString(debugfont, "Xbox", new Vector2(70 + actionmenuscroller, 301), Color.White);
            spriteBatch.DrawString(debugfont, "Homework", new Vector2(175 + actionmenuscroller, 301), Color.White);
            if (Player.Schedule.totalHomework >= 1) spriteBatch.DrawString(debugfontsmall, "" + Player.Schedule.totalHomework, new Vector2(278 + actionmenuscroller, 301), Color.White);
            spriteBatch.DrawString(debugfont, "Write", new Vector2(62 + actionmenuscroller, 341), Color.White);
            spriteBatch.DrawString(debugfont, "Class", new Vector2(192 + actionmenuscroller, 341), classC);
            spriteBatch.DrawString(debugfont, "Music", new Vector2(63 + actionmenuscroller, 381), Color.White);
            spriteBatch.DrawString(debugfont, "P**n Time", new Vector2(170 + actionmenuscroller, 381), Color.White);
            spriteBatch.DrawString(debugfont, "Walk", new Vector2(70 + actionmenuscroller, 421), Color.White);
            spriteBatch.DrawString(debugfont, "Save Game", new Vector2(170 + actionmenuscroller, 421), Color.White);

            /*
            if (bMenu == true & actionmenuscroller >= -20 & bGamePad == true)
            {
                spriteBatch.Draw(buttonselector, new Rectangle(SelectorPosX + actionmenuscroller, SelectorPosY, 120, 30), Color.White);
            }
            */
            return 0;
        }
Ejemplo n.º 2
0
        // All Events for going to class
        public string School(ref PlayerData Player)
        {
            string eventname = "0";

            #region Aria Events
            // Going to class for the first time
            if (Player.GameSwitches[6] == false)
            {
                eventname = "aria_MeetFirstTime";
                Player.GameSwitches[6] = true;
            }
            #endregion

            return eventname;
        }
Ejemplo n.º 3
0
        // All Events for Eating
        public string Eat(ref PlayerData Player)
        {
            string eventname = "0";

            #region Emi Events
            // Eat with Emi for first time
            if (Player.GameSwitches[3] & Player.GameSwitches[4] == false || Player.GameSwitches[5] & Player.GameSwitches[4] == false)
            {
                if (Player.GameVariables[10] + 1 <= Player.Time.Day)
                {
                    eventname = "eat_emi";
                    Player.addSocial(1);
                    //VC.addtime(100);
                    Player.GameSwitches[4] = true;
                }
            }
            #endregion

            return eventname;
        }
Ejemplo n.º 4
0
        // All Events for Walking
        public string WalkingEvents(ref PlayerData Player)
        {
            string eventname = "0";

            #region EMI Events
            // Time Emi is set to be running. (6 - 9 AM) OR (3 - 6 PM)
            if (Player.Time.FullTime >= 600 & Player.Time.FullTime <= 900 || Player.Time.FullTime >= 1500 & Player.Time.FullTime <= 1800)
            {
                // FIRST MEET WITH EMI
                if (!Player.GameSwitches[3])           //if you have already met her, you cannot get it again.
                {
                    Player.GameVariables[10] = Player.Time.Day;
                    eventname = "walk_meetemi";
                    Player.addSocial(1);
                    //VC.addtime(100);
                    Player.addHp(-2);
                    Player.addFat(-1);
                    Player.GameSwitches[3] = true;
                }

                // If you went for a walk, met Emi for first time AND ran away.
                if (Player.GameSwitches[5] == true & Player.GameSwitches[4] == false && Player.GameSwitches[1] == false)
                {
                    eventname = "walk_meetemi_2";
                    //VC.addtime(100);
                }

                // Standard Walk (AFTER ACCEPTING OVER PHONE)
                if (Player.GameSwitches[1])
                {
                    eventname = "emi_walk_basic";
                }
            }
            #endregion // All events for EMI

            return eventname;
        }