示例#1
0
            public WindowCornerColor(int x, int y, int corner, WindowColor owner)
                : base(x, y, WIDTH, HEIGHT)
            {
                Owner = owner;

                this.corner = corner;

                GetCornerColor(corner, out indicies[0], out indicies[1], out indicies[2]);
                GetCornerColor(corner, out indicies_orig[0], out indicies_orig[1], out indicies_orig[2]);
            }
示例#2
0
        public Main(SevenMenuState menuState, ScreenState screenState)
            : base(
                2,
                screenState.Height * 7 / 60,
                screenState.Width - 10,
                screenState.Height * 5 / 6)
        {
            MenuState = menuState;

            int x    = x_options + 300;
            int wc_y = Y + 15;
            int bs_y = wc_y + WindowColor.HEIGHT + 10;

            WindowColorMenu = new WindowColor(menuState, x, wc_y, this);
            BattleSpeedMenu = new BattleSpeed(menuState, x, bs_y, this);
        }
示例#3
0
            int x_spacing = (WIDTH - x0 * 2) / 13; // 13 comes from 10 options plus the color indicator plus two borders

            #endregion Fields

            #region Constructors

            public WindowCornerColor(int x, int y, int corner, WindowColor owner)
                : base(x, y, WIDTH, HEIGHT)
            {
                Owner = owner;

                this.corner = corner;

                GetCornerColor(corner, out indicies[0], out indicies[1], out indicies[2]);
                GetCornerColor(corner, out indicies_orig[0], out indicies_orig[1], out indicies_orig[2]);
            }