예제 #1
0
 // --- Constructors ---
 public Label(GameExt pmGame)
     : base(pmGame)
 {
     texStates=	new ControlStateItems<Texture2D>(null, this);
     bRenderText=	true;
     textAlignment=	TextAlignment.CenterVerticalAlign;
 }
예제 #2
0
        // --- Constructors ---
        public ProgressBar(GameExt pmGame)
            : base(pmGame)
        {
            progressColorStates=	new ControlStateItems<Color>(
                game.getColor("green"),
                this
            );
            backColorStates=	new ControlStateItems<Color>(
                game.getColor("#d4d4d4"),
                this
            );
            pProgress=	0f;
            bHorizontal=	true;
            bLeftToRight=	true;
            bRenderText=	true;
            eonProgressChanged=	null;
            eonOrientationChanged=	null;
            eonLeftToRightChanged=	null;

            setState(ControlState.Normal);
        }