Ejemplo n.º 1
0
        private void RecalculateAreas()
        {
            var headerHeight = headerExpanded ? HeaderHeightExpanded : HeaderHeightCompact;

            headerHeight *= Config.FontSize;
            headerHeight += 32.0f;

            headerArea.ChangeSizeBy(height: headerHeight);

            var commandLineAreaHeight = CommandLineAreaExpanded
                ? CommandLineAreaHeightExpanded
                : CommandLineAreaHeightCompact;

            consoleArea
            .OffsetBy(vertical: 16f + headerHeight)
            .ChangeSizeBy(height: -(commandLineAreaHeight + headerHeight + 16f));

            commandLineArea
            .OffsetRelative(vertical: 1f)
            .OffsetBy(vertical: -commandLineAreaHeight)
            .ChangeSizeBy(height: commandLineAreaHeight);
        }