コード例 #1
0
        public WindowCommandReinforcements(
            Window_Command_Scroll window, Vector2 loc, List <Data_Unit> reinforcements)
            : base(window, loc, WIDTH, ROWS, reinforcement_commands(reinforcements))
        {
            set_text_color(0, "Blue");

            ReinforcementData = reinforcements;
            DetailWindow      = new ReinforcementDetailWindow();
            DetailWindow.loc  = new Vector2(WIDTH + 16, ROWS * 16 - 56);

            refresh_detail();
        }
コード例 #2
0
        public Window_Command_Scroll(Window_Command_Scroll window, Vector2 loc, int width, int rows, List <string> strs)
        {
            Rows = Math.Max(1, rows);
            initialize(loc, width, strs);
            if (window != null)
            {
                this.immediate_index = window.index;
                Scroll = window.Scroll;

                int target_y = 16 * Scroll;
                ScrollOffset.Y = target_y;
            }
        }
コード例 #3
0
 public Window_Command_Scroll_Arrow(
     Window_Command_Scroll window, Vector2 loc, int width, int rows, List <string> strs)
     : base(window, loc, width, rows, strs)
 {
 }