コード例 #1
0
ファイル: DialogWindow.cs プロジェクト: nicojans/FinalQuest
 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;
 }
コード例 #2
0
 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);
 }
コード例 #3
0
ファイル: ListMenu.cs プロジェクト: nicojans/FinalQuest
 public ListMenu(string title, GraphicResources graphicResources, FontSize fontSize)
     : base(title, graphicResources)
 {
     _titleLabel = new Label(graphicResources.SpriteBatch, graphicResources.Font(fontSize), title);
 }
コード例 #4
0
ファイル: LabelBox.cs プロジェクト: nicojans/FinalQuest
 public LabelBox(GraphicResources graphicResources, FontSize fontSize = FontSize.Normal)
     : base(graphicResources)
 {
     _label = new Label(graphicResources.SpriteBatch, graphicResources.Font(fontSize));
 }