コード例 #1
0
        public ConsoleView(AbstractConsole console, float width, float height)
            : base(console.Capacity, width, height)
        {
            m_console = console;

            this.ConsoleDelegate = this;
            this.DataSource      = this;
            this.Delegate        = this;

            m_textMeasure = CreateTextMeasure();

            m_filteredDelegate = new ConsoleFilteredDelegate(this);

            ReloadData();
        }
コード例 #2
0
ファイル: ConsoleView.cs プロジェクト: mswf/game-a-week
        public ConsoleView(AbstractConsole console, float width, float height)
            : base(console.Capacity, width, height)
        {
            m_console = console;

            this.ConsoleDelegate = this;
            this.DataSource = this;
            this.Delegate = this;

            m_textMeasure = CreateTextMeasure();

            m_filteredDelegate = new ConsoleFilteredDelegate(this);

            ReloadData();
        }
コード例 #3
0
        private void SetFilteredDelegate(ConsoleFilteredDelegate del, bool needReload = true)
        {
            if (del == null || !del.HasFilters)
            {
                this.Delegate      = this;
                this.DataSource    = this;
                m_console.Delegate = this;
            }
            else
            {
                this.Delegate      = del;
                this.DataSource    = del;
                m_console.Delegate = del;
            }

            if (needReload)
            {
                ReloadData();
            }
        }
コード例 #4
0
        private void SetFilteredDelegate(ConsoleFilteredDelegate del, bool needReload = true)
        {
            if (del == null || !del.HasFilters)
            {
                this.Delegate = this;
                this.DataSource = this;
                m_console.Delegate = this;
            }
            else
            {
                this.Delegate = del;
                this.DataSource = del;
                m_console.Delegate = del;
            }

            if (needReload)
            {
                ReloadData();
            }
        }