예제 #1
0
        public HUDSpeedSetButton(HUDSpeedBaseButton baseBtn, GameSpeedModes buttonSpeed)
        {
            speed      = buttonSpeed;
            baseButton = baseBtn;

            RelativePosition = baseButton.RelativePosition;
            Size             = baseButton.Size;
            Alignment        = baseButton.Alignment;

            OverrideEllipseSize = new FSize(REAL_DIAMETER, REAL_DIAMETER);
        }
예제 #2
0
 public GDGameHUD(GDGameScreen scrn) : base(scrn, Textures.HUDFontRegular)
 {
     AddElement(BtnPause = new HUDPauseButton(true, true, true));
     AddElement(BtnSpeed = new HUDSpeedBaseButton());
 }