﻿/// <reference path="../../../ClickAble.js" />
/// <reference path="../../Setting/GameSetup/GameLevel.js" />

var ButtonPanel = function () {
    var returnValue = new ClickAble();
    var base = new ClickAble();

    returnValue.backgroundImageUrl = GameSetting.AdvanceStageSetting.ButtonPanelImageUrl;
    returnValue.paddingLevel = 2;
    this.BuildObj(returnValue);
    var button = new SelectAble(GameContext.Game.CurrentSelectButtonGroup);
    button.backgroundImageUrl = GameSetting.AdvanceStageSetting.Button.BackgroundImageUrl;
    button.font = GameSetting.AdvanceStageSetting.Button.Font;
    button.fontAlpha = GameSetting.AdvanceStageSetting.Button.FontAlpha;
    button.fontStyle = GameSetting.AdvanceStageSetting.Button.FontStyle;
    button.top = GameSetting.AdvanceStageSetting.Button.Top;
    button.width = GameSetting.AdvanceStageSetting.Button.Width;
    button.height = GameSetting.AdvanceStageSetting.Button.Height;
    button.left = GameSetting.AdvanceStageSetting.Button.Left;
    button.textStartOffsetTop = GameSetting.AdvanceStageSetting.Button.TextOffsetTop;
    button.text = "技能";
    button.OnSelected = function () {

    }
    this.AddChild(button);

    button = new SelectAble(GameContext.Game.CurrentSelectButtonGroup);
    button.backgroundImageUrl = GameSetting.AdvanceStageSetting.Button.BackgroundImageUrl;
    button.font = GameSetting.AdvanceStageSetting.Button.Font;
    button.fontAlpha = GameSetting.AdvanceStageSetting.Button.FontAlpha;
    button.fontStyle = GameSetting.AdvanceStageSetting.Button.FontStyle;
    button.top = GameSetting.AdvanceStageSetting.Button.Top;
    button.width = GameSetting.AdvanceStageSetting.Button.Width;
    button.height = GameSetting.AdvanceStageSetting.Button.Height;
    button.left = GameSetting.AdvanceStageSetting.Button.Left + GameSetting.AdvanceStageSetting.Button.VDistance;
    button.textStartOffsetTop = GameSetting.AdvanceStageSetting.Button.TextOffsetTop;
    button.text = "队伍";
    button.OnSelected = function () {
        GameContext.Game.CurrentGameCenter.ChangeToStage("TeamSetting");
    }
    this.AddChild(button);

    button = new SelectAble(GameContext.Game.CurrentSelectButtonGroup);
    button.backgroundImageUrl = GameSetting.AdvanceStageSetting.Button.BackgroundImageUrl;
    button.font = GameSetting.AdvanceStageSetting.Button.Font;
    button.fontAlpha = GameSetting.AdvanceStageSetting.Button.FontAlpha;
    button.fontStyle = GameSetting.AdvanceStageSetting.Button.FontStyle;
    button.top = GameSetting.AdvanceStageSetting.Button.Top;
    button.width = GameSetting.AdvanceStageSetting.Button.Width;
    button.height = GameSetting.AdvanceStageSetting.Button.Height;
    button.left = GameSetting.AdvanceStageSetting.Button.Left + GameSetting.AdvanceStageSetting.Button.VDistance * 2;
    button.textStartOffsetTop = GameSetting.AdvanceStageSetting.Button.TextOffsetTop;
    button.text = "系统";
    button.OnSelected = function () {

    }
    this.AddChild(button);
}
ButtonPanel.prototype = ClickAble.prototype;