Ejemplo n.º 1
0
        public PGNConsole(PGNConsoleOptions options)
        {
            this.options = options;

            font = ResourceCache.Font("console");
            bufferHomePosition = new Point(this.options.TextInset, this.options.PanelHeight - (this.options.TextInset * 2));

            history = new CommandHistory(options.CommandHistory);
        }
Ejemplo n.º 2
0
        public MessageLog(SpriteFont font, int lineWrapWidth, Point bottomMessagePosition, int lineSpacing, PGNConsoleOptions options, World console)
        {
            this.font                  = font;
            this.wrapWidth             = lineWrapWidth;
            this.lineSpacing           = lineSpacing;
            this.bottomMessagePosition = bottomMessagePosition;
            this.console               = console;

            limit      = options.LogHistoryLimit;
            typeColors = new Dictionary <LogMessageTypes, Color> {
                { LogMessageTypes.Command, options.HistoryColor }, { LogMessageTypes.Info, options.InfoColor }, { LogMessageTypes.Error, options.ErrorColor }
            };

            allMessages     = new List <LogMessage>();
            messageEntities = new List <GameObject>();
        }