Пример #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());
			AddElement(btnSpeed = new HUDSpeedBaseButton());
		}