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; }
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); }
public override void DoWindowContents(Rect rect) { DrawPageTitle(rect); StorytellerUI.DrawStorytellerSelectionInterface_NewTemp(GetMainRect(rect), ref storyteller, ref difficulty, ref difficultyValues, selectedStorytellerInfoListing); DoBottomButtons(rect); Rect rect2 = 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(rect2, "CanChangeStorytellerSettingsDuringPlay".Translate()); Text.Anchor = TextAnchor.UpperLeft; }
public override void PreOpen() { base.PreOpen(); if (storyteller == null) { storyteller = (from d in DefDatabase <StorytellerDef> .AllDefs where d.listVisible orderby d.listOrder select d).First(); } StorytellerUI.ResetStorytellerSelectionInterface(); }
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(); } }
public override void DoWindowContents(Rect rect) { DrawPageTitle(rect); Rect mainRect = GetMainRect(rect); Storyteller storyteller = Current.Game.storyteller; StorytellerDef def = Current.Game.storyteller.def; StorytellerUI.DrawStorytellerSelectionInterface_NewTemp(mainRect, ref storyteller.def, ref storyteller.difficulty, ref storyteller.difficultyValues, selectedStorytellerInfoListing); if (storyteller.def != def) { storyteller.Notify_DefChanged(); } }
public override void PreOpen() { base.PreOpen(); StorytellerUI.ResetStorytellerSelectionInterface(); }