Ejemplo n.º 1
0
        public override void DoWindowContents(Rect rect)
        {
            DrawPageTitle(rect);
            Rect mainRect = GetMainRect(rect);

            StorytellerUI.DrawStorytellerSelectionInterface(mainRect, ref storyteller, ref difficulty, selectedStorytellerInfoListing);
            string text   = null;
            Action midAct = null;

            if (!Prefs.ExtremeDifficultyUnlocked)
            {
                text   = "UnlockExtremeDifficulty".Translate();
                midAct = delegate
                {
                    OpenDifficultyUnlockConfirmation();
                };
            }
            Rect   rect2    = rect;
            string midLabel = text;

            DoBottomButtons(rect2, null, midLabel, midAct);
            float   xMax           = rect.xMax;
            Vector2 bottomButSize  = Page.BottomButSize;
            float   x              = xMax - bottomButSize.x - 200f - 6f;
            float   yMax           = rect.yMax;
            Vector2 bottomButSize2 = Page.BottomButSize;
            float   y              = yMax - bottomButSize2.y;
            Vector2 bottomButSize3 = Page.BottomButSize;
            Rect    rect3          = new Rect(x, y, 200f, bottomButSize3.y);

            Text.Font   = GameFont.Tiny;
            Text.Anchor = TextAnchor.MiddleRight;
            Widgets.Label(rect3, "CanChangeStorytellerSettingsDuringPlay".Translate());
            Text.Anchor = TextAnchor.UpperLeft;
        }
        public override void DoWindowContents(Rect rect)
        {
            base.DrawPageTitle(rect);
            Rect mainRect = base.GetMainRect(rect, 0f, false);

            StorytellerUI.DrawStorytellerSelectionInterface(mainRect, ref this.storyteller, ref this.difficulty, this.selectedStorytellerInfoListing);
            string text   = null;
            Action midAct = null;

            if (!Prefs.ExtremeDifficultyUnlocked)
            {
                text   = "UnlockExtremeDifficulty".Translate();
                midAct = delegate()
                {
                    this.OpenDifficultyUnlockConfirmation();
                };
            }
            Rect   rect2    = rect;
            string midLabel = text;

            base.DoBottomButtons(rect2, null, midLabel, midAct, true);
            Rect rect3 = new Rect(rect.xMax - Page.BottomButSize.x - 200f - 6f, rect.yMax - Page.BottomButSize.y, 200f, Page.BottomButSize.y);

            Text.Font   = GameFont.Tiny;
            Text.Anchor = TextAnchor.MiddleRight;
            Widgets.Label(rect3, "CanChangeStorytellerSettingsDuringPlay".Translate());
            Text.Anchor = TextAnchor.UpperLeft;
        }
Ejemplo n.º 3
0
        public override void DoWindowContents(Rect rect)
        {
            base.DrawPageTitle(rect);
            Rect mainRect = base.GetMainRect(rect, 0f, false);

            StorytellerUI.DrawStorytellerSelectionInterface(mainRect, ref this.storyteller, ref this.difficulty, this.selectedStorytellerInfoListing);
            base.DoBottomButtons(rect, null, null, null, true);
        }
Ejemplo n.º 4
0
        public override void DoWindowContents(Rect rect)
        {
            base.DrawPageTitle(rect);
            Rect           mainRect    = base.GetMainRect(rect, 0f, false);
            Storyteller    storyteller = Current.Game.storyteller;
            StorytellerDef def         = Current.Game.storyteller.def;

            StorytellerUI.DrawStorytellerSelectionInterface(mainRect, ref storyteller.def, ref storyteller.difficulty, this.selectedStorytellerInfoListing);
            if (storyteller.def != def)
            {
                storyteller.Notify_DefChanged();
            }
        }