コード例 #1
0
        private void DrawSelectionOverlayOnGUI(Pawn colonist, Rect rect)
        {
            Thing obj = colonist;

            if (colonist.Dead)
            {
                obj = colonist.Corpse;
            }
            float num = 0.4f * ColonistBar.Scale;

            SelectionDrawerUtility.CalculateSelectionBracketPositionsUI <object>(textureSize: new Vector2((float)SelectionDrawerUtility.SelectedTexGUI.width * num, (float)SelectionDrawerUtility.SelectedTexGUI.height * num), bracketLocs: bracketLocs, obj: (object)obj, rect: rect, selectTimes: SelectionDrawer.SelectTimes, jumpDistanceFactor: 20f * ColonistBar.Scale);
            DrawSelectionOverlayOnGUI(bracketLocs, num);
        }
コード例 #2
0
        private void DrawSelectionOverlayOnGUI(Pawn colonist, Rect rect)
        {
            Thing obj = colonist;

            if (colonist.Dead)
            {
                obj = colonist.Corpse;
            }
            float   num         = 0.4f * this.ColonistBar.Scale;
            Vector2 textureSize = new Vector2((float)SelectionDrawerUtility.SelectedTexGUI.width * num, (float)SelectionDrawerUtility.SelectedTexGUI.height * num);

            SelectionDrawerUtility.CalculateSelectionBracketPositionsUI <object>(ColonistBarColonistDrawer.bracketLocs, obj, rect, SelectionDrawer.SelectTimes, textureSize, 20f * this.ColonistBar.Scale);
            this.DrawSelectionOverlayOnGUI(ColonistBarColonistDrawer.bracketLocs, num);
        }