Example #1
0
 public DialogWindow(string title, GraphicResources graphicsResources)
     : base(title, graphicsResources)
 {
     _titleLabel = new Label(graphicsResources.SpriteBatch, graphicsResources.Font(FontSize.Normal), title);
     _textLabel = new AdvancedLabel(graphicsResources.SpriteBatch, graphicsResources.Font(FontSize.Normal));
     Selected += This_Selected;
 }
 public ColoredTextRenderingSystem(GraphicResources graphics)
     : base(typeof(Transform), typeof(ColoredText))
 {
     _spriteBatch = graphics.SpriteBatch;
     _windowRectangle = new Rectangle(0, 0, graphics.Window.Width, graphics.Window.Height);
     _viewRectangle = _windowRectangle;
     _font = graphics.Font(FontSize.Normal);
 }
Example #3
0
 public ListMenu(string title, GraphicResources graphicResources, FontSize fontSize)
     : base(title, graphicResources)
 {
     _titleLabel = new Label(graphicResources.SpriteBatch, graphicResources.Font(fontSize), title);
 }
Example #4
0
 public LabelBox(GraphicResources graphicResources, FontSize fontSize = FontSize.Normal)
     : base(graphicResources)
 {
     _label = new Label(graphicResources.SpriteBatch, graphicResources.Font(fontSize));
 }