Ejemplo n.º 1
0
        public override void PreOpen()
        {
            base.PreOpen();

            Text.Font   = GameFont.Small;
            Text.Anchor = TextAnchor.MiddleLeft;
            if (Settings.ShowRadePoints)
            {
                IIncidentTarget incidentTarget = Find.CurrentMap;
                if (incidentTarget != null)
                {
                    Find.CurrentMap?.wealthWatcher?.ForceRecount();
                    _raidPoints = "CurrentRaidPoints".Translate(
                        StorytellerUtility.DefaultThreatPointsNow(incidentTarget).ToString("F0"));
                }
            }
            Text.Anchor = TextAnchor.UpperLeft;

            _activeTab?.Update();
            _activeTab?.Sort(_sort1, _sort2);
        }
Ejemplo n.º 2
0
 private void SelectTab <T>() where T : ITab, new()
 {
     _activeTab = new T();
     _activeTab.Update();
     _activeTab.Sort(_sort1, _sort2);
 }