Example #1
0
        public static void AdviceBuilder(bool encumbranceRPR)
        {
            DaggerfallMessageBox msgBox = DaggerfallUI.UIManager.TopWindow as DaggerfallMessageBox;

            if (msgBox != null && msgBox.ExtraProceedBinding == InputManager.Instance.GetBinding(InputManager.Actions.Status))
            {
                // Setup next status info box.
                DaggerfallMessageBox newBox   = new DaggerfallMessageBox(DaggerfallUI.UIManager, msgBox);
                List <string>        messages = new List <string>();
                messages.Add(TxtClimate());
                if (!string.IsNullOrEmpty(TxtAdvice()))
                {
                    messages.Add(TxtAdvice());
                }
                messages.Add(string.Empty);
                if (encumbranceRPR)
                {
                    messages.Add(TxtEncumbrance());
                    if (!string.IsNullOrEmpty(TxtEncAdvice()))
                    {
                        messages.Add(TxtEncAdvice());
                    }
                    messages.Add(string.Empty);
                }
                if (!ClimateCalories.isVampire)
                {
                    messages.Add(TxtWater());
                    messages.Add(TxtFood());
                    messages.Add(string.Empty);
                    messages.Add(TxtSleep());
                }
                else
                {
                    messages.Add("You have no need for food or sleep.");
                }
                if (TavernWindow.drunk > playerEntity.Stats.LiveEndurance / 2)
                {
                    messages.Add(string.Empty);
                    if (TavernWindow.drunk > playerEntity.Stats.LiveEndurance - 10)
                    {
                        messages.Add("You are very drunk.");
                    }
                    else
                    {
                        messages.Add("You are drunk.");
                    }
                }

                newBox.SetText(messages.ToArray());

                newBox.ExtraProceedBinding  = InputManager.Instance.GetBinding(InputManager.Actions.Status); // set proceed binding
                newBox.ClickAnywhereToClose = true;
                msgBox.AddNextMessageBox(newBox);
                statusClosed = false;
            }
        }
Example #2
0
        void DisplayStatusInfo()
        {
            // Setup status info as the first message box.
            DaggerfallMessageBox statusBox = new DaggerfallMessageBox(Instance.uiManager, Instance.uiManager.TopWindow);

            statusBox.SetTextTokens(22);

            // Setup health info as the second message box.
            DaggerfallMessageBox healthBox = CreateHealthStatusBox(statusBox);

            statusBox.AddNextMessageBox(healthBox);

            statusBox.Show();
        }
        void DisplayStatusInfo()
        {
            // Setup status info as the first message box.
            DaggerfallMessageBox statusBox = new DaggerfallMessageBox(Instance.uiManager, Instance.uiManager.TopWindow);

            statusBox.SetTextTokens(22);

            // Setup health info as the second message box.
            DaggerfallMessageBox healthBox = new DaggerfallMessageBox(uiManager, statusBox);

            healthBox.SetTextTokens(18);    // TODO: Various diseases are in msgs 100-117
            healthBox.ClickAnywhereToClose = true;
            statusBox.AddNextMessageBox(healthBox);

            statusBox.Show();
        }
        void DisplayStatusInfo()
        {
            // Setup status info as the first message box.
            DaggerfallMessageBox statusBox = new DaggerfallMessageBox(Instance.uiManager, Instance.uiManager.TopWindow);

            statusBox.ExtraProceedBinding = InputManager.Instance.GetBinding(InputManager.Actions.Status); // set proceed binding for statusBox to key binding for status window
            statusBox.SetTextTokens(22);

            // Setup health info as the second message box.
            DaggerfallMessageBox healthBox = CreateHealthStatusBox(statusBox);

            healthBox.ExtraProceedBinding = InputManager.Instance.GetBinding(InputManager.Actions.Status); // set proceed binding for healthBox to key binding for status window
            statusBox.AddNextMessageBox(healthBox);

            statusBox.Show();
        }