public Button(Text text) { Label = new Label(text); Frame = new Frame(new RectangleShape(), Color.Transparent); DefaultTextColor = new Color(242, 242, 242); TextHighlightColor = new Color(73, 73, 73); HoverSoundFilename = "sounds/buttonhover.wav"; UpdateFrame(); }
public GameScreen() { _game = new Game(); _view = new View(); // ms / f text var msFText = new Text { Font = new Font("fonts/Quicksand-Bold.ttf"), DisplayedString = " ms / frame: ", Color = Color.White, CharacterSize = 19 }; msFText.SetOriginAtCenter(); msFText.Position = new Vector2f(75, WindowConfig.WindowHeight - 25); _msFLabel = new Label(msFText); Widgets.Add(_msFLabel); }
public void SetLabel(Label label) { Label = label; UpdateFrame(); }