Skip to content

Commit 4806336

Browse files
committed
New UI version
1 parent 1486c33 commit 4806336

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

BasicUI_MonoGame/GameUILibrary/GeneratedUI/BasicUI.xaml.cs

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace EmptyKeys.UserInterface.Generated {
1919
using Microsoft.Xna.Framework.Graphics;
2020

2121

22-
[GeneratedCodeAttribute("Empty Keys UI Generator", "1.4.0.0")]
22+
[GeneratedCodeAttribute("Empty Keys UI Generator", "1.5.0.0")]
2323
public partial class BasicUI : UIRoot {
2424

2525
private Grid e_0;
@@ -137,6 +137,7 @@ private void InitializeComponent() {
137137
this.combo.Name = "combo";
138138
this.combo.Width = 200F;
139139
this.combo.Margin = new Thickness(5F, 5F, 5F, 5F);
140+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
140141
this.combo.ItemsSource = this.Get_combo_Items();
141142
// button1 element
142143
this.button1 = new Button();
@@ -145,6 +146,7 @@ private void InitializeComponent() {
145146
this.button1.Height = 30F;
146147
this.button1.Width = 200F;
147148
this.button1.Margin = new Thickness(5F, 5F, 5F, 5F);
149+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
148150
this.button1.Content = "1";
149151
this.button1.CommandParameter = "Click Button 1";
150152
Binding binding_button1_Command = new Binding("ButtonCommand");
@@ -156,6 +158,7 @@ private void InitializeComponent() {
156158
this.button2.Height = 30F;
157159
this.button2.Width = 200F;
158160
this.button2.Margin = new Thickness(5F, 5F, 5F, 5F);
161+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
159162
this.button2.Content = "2";
160163
this.button2.CommandParameter = "Click Button 2";
161164
Binding binding_button2_Command = new Binding("ButtonCommand");
@@ -168,6 +171,7 @@ private void InitializeComponent() {
168171
this.button3.Height = 30F;
169172
this.button3.Width = 200F;
170173
this.button3.Margin = new Thickness(5F, 5F, 5F, 5F);
174+
FontManager.Instance.AddFont("Segoe UI", 20F, FontStyle.Bold, "Segoe_UI_15_Bold");
171175
this.button3.FontFamily = new FontFamily("Segoe UI");
172176
this.button3.FontSize = 20F;
173177
this.button3.FontStyle = FontStyle.Bold;
@@ -182,6 +186,7 @@ private void InitializeComponent() {
182186
this.button4.Height = 30F;
183187
this.button4.Width = 200F;
184188
this.button4.Margin = new Thickness(5F, 5F, 5F, 5F);
189+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
185190
this.button4.Content = "4";
186191
this.button4.CommandParameter = "Click Button 4";
187192
Binding binding_button4_IsEnabled = new Binding("ButtonEnabled");
@@ -193,13 +198,15 @@ private void InitializeComponent() {
193198
this.e_3.Children.Add(this.buttonResult);
194199
this.buttonResult.Name = "buttonResult";
195200
this.buttonResult.HorizontalAlignment = HorizontalAlignment.Center;
201+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
196202
Binding binding_buttonResult_Text = new Binding("ButtonResult");
197203
this.buttonResult.SetBinding(TextBlock.TextProperty, binding_buttonResult_Text);
198204
// slider element
199205
this.slider = new Slider();
200206
this.e_3.Children.Add(this.slider);
201207
this.slider.Name = "slider";
202208
this.slider.Width = 200F;
209+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
203210
this.slider.Minimum = 5F;
204211
this.slider.Maximum = 20F;
205212
Binding binding_slider_Value = new Binding("SliderValue");
@@ -210,6 +217,7 @@ private void InitializeComponent() {
210217
this.textBox.Name = "textBox";
211218
this.textBox.Width = 200F;
212219
this.textBox.Margin = new Thickness(5F, 5F, 5F, 5F);
220+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
213221
Binding binding_textBox_Text = new Binding("TextBoxText");
214222
this.textBox.SetBinding(TextBox.TextProperty, binding_textBox_Text);
215223
// checkBox element
@@ -218,13 +226,15 @@ private void InitializeComponent() {
218226
this.checkBox.Name = "checkBox";
219227
this.checkBox.Margin = new Thickness(5F, 5F, 5F, 5F);
220228
this.checkBox.HorizontalAlignment = HorizontalAlignment.Center;
229+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
221230
this.checkBox.Content = "Check Box";
222231
// e_4 element
223232
this.e_4 = new TabControl();
224233
this.e_3.Children.Add(this.e_4);
225234
this.e_4.Name = "e_4";
226235
this.e_4.Height = 130F;
227236
this.e_4.Width = 360F;
237+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
228238
this.e_4.ItemsSource = this.Get_e_4_Items();
229239
// e_16 element
230240
this.e_16 = new ProgressBar();
@@ -233,6 +243,7 @@ private void InitializeComponent() {
233243
this.e_16.Height = 30F;
234244
this.e_16.Width = 400F;
235245
this.e_16.Margin = new Thickness(5F, 5F, 5F, 5F);
246+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
236247
Binding binding_e_16_Value = new Binding("ProgressValue");
237248
this.e_16.SetBinding(ProgressBar.ValueProperty, binding_e_16_Value);
238249
// imageButton element
@@ -248,6 +259,7 @@ private void InitializeComponent() {
248259
imageButton_Background.ImageSource = imageButton_Background_bm;
249260
imageButton_Background.Stretch = Stretch.None;
250261
this.imageButton.Background = imageButton_Background;
262+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
251263
// e_17 element
252264
this.e_17 = new StackPanel();
253265
this.e_0.Children.Add(this.e_17);
@@ -258,24 +270,28 @@ private void InitializeComponent() {
258270
this.animButton1 = new Button();
259271
this.e_17.Children.Add(this.animButton1);
260272
this.animButton1.Name = "animButton1";
273+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
261274
this.animButton1.Content = "Mouse Over me!";
262275
this.animButton1.SetResourceReference(Button.StyleProperty, "buttonAnimStyle");
263276
// animButton2 element
264277
this.animButton2 = new Button();
265278
this.e_17.Children.Add(this.animButton2);
266279
this.animButton2.Name = "animButton2";
280+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
267281
this.animButton2.Content = "Mouse Over me!";
268282
this.animButton2.SetResourceReference(Button.StyleProperty, "buttonAnimStyle");
269283
// animButton3 element
270284
this.animButton3 = new Button();
271285
this.e_17.Children.Add(this.animButton3);
272286
this.animButton3.Name = "animButton3";
287+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
273288
this.animButton3.Content = "Mouse Over me!";
274289
this.animButton3.SetResourceReference(Button.StyleProperty, "buttonAnimStyle");
275290
// animButton4 element
276291
this.animButton4 = new Button();
277292
this.e_17.Children.Add(this.animButton4);
278293
this.animButton4.Name = "animButton4";
294+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
279295
this.animButton4.Content = "Mouse Over me!";
280296
this.animButton4.SetResourceReference(Button.StyleProperty, "buttonAnimStyle");
281297
// e_18 element
@@ -357,16 +373,19 @@ private System.Collections.ObjectModel.ObservableCollection<object> Get_combo_It
357373
// item1 element
358374
ComboBoxItem item1 = new ComboBoxItem();
359375
item1.Name = "item1";
376+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
360377
item1.Content = "Item 1";
361378
items.Add(item1);
362379
// item2 element
363380
ComboBoxItem item2 = new ComboBoxItem();
364381
item2.Name = "item2";
382+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
365383
item2.Content = "Item 2";
366384
items.Add(item2);
367385
// item3 element
368386
ComboBoxItem item3 = new ComboBoxItem();
369387
item3.Name = "item3";
388+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
370389
item3.Content = "Item 3";
371390
items.Add(item3);
372391
return items;
@@ -378,29 +397,34 @@ private System.Collections.ObjectModel.ObservableCollection<object> Get_e_4_Item
378397
TabItem e_5 = new TabItem();
379398
e_5.Name = "e_5";
380399
e_5.HorizontalContentAlignment = HorizontalAlignment.Stretch;
400+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
381401
e_5.Header = "Tab 1";
382402
// e_6 element
383403
ListBox e_6 = new ListBox();
384404
e_5.Content = e_6;
385405
e_6.Name = "e_6";
386406
e_6.Height = 100F;
407+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
387408
e_6.ItemsSource = this.Get_e_6_Items();
388409
items.Add(e_5);
389410
// e_13 element
390411
TabItem e_13 = new TabItem();
391412
e_13.Name = "e_13";
413+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
392414
e_13.Content = "Tab 2 Content";
393415
e_13.Header = "Tab 2";
394416
items.Add(e_13);
395417
// e_14 element
396418
TabItem e_14 = new TabItem();
397419
e_14.Name = "e_14";
420+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
398421
e_14.Content = "Tab 3 Content";
399422
e_14.Header = "Tab 3";
400423
items.Add(e_14);
401424
// e_15 element
402425
TabItem e_15 = new TabItem();
403426
e_15.Name = "e_15";
427+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
404428
e_15.Content = "Tab 4 Content";
405429
e_15.Header = "Tab 4";
406430
items.Add(e_15);
@@ -412,31 +436,37 @@ private System.Collections.ObjectModel.ObservableCollection<object> Get_e_6_Item
412436
// e_7 element
413437
ListBoxItem e_7 = new ListBoxItem();
414438
e_7.Name = "e_7";
439+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
415440
e_7.Content = "Selection 1";
416441
items.Add(e_7);
417442
// e_8 element
418443
ListBoxItem e_8 = new ListBoxItem();
419444
e_8.Name = "e_8";
445+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
420446
e_8.Content = "Selection 2";
421447
items.Add(e_8);
422448
// e_9 element
423449
ListBoxItem e_9 = new ListBoxItem();
424450
e_9.Name = "e_9";
451+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
425452
e_9.Content = "Selection 3";
426453
items.Add(e_9);
427454
// e_10 element
428455
ListBoxItem e_10 = new ListBoxItem();
429456
e_10.Name = "e_10";
457+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
430458
e_10.Content = "Selection 4";
431459
items.Add(e_10);
432460
// e_11 element
433461
ListBoxItem e_11 = new ListBoxItem();
434462
e_11.Name = "e_11";
463+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
435464
e_11.Content = "Selection 5";
436465
items.Add(e_11);
437466
// e_12 element
438467
ListBoxItem e_12 = new ListBoxItem();
439468
e_12.Name = "e_12";
469+
FontManager.Instance.AddFont("Segoe UI", 12F, FontStyle.Regular, "Segoe_UI_9_Regular");
440470
e_12.Content = "Selection 6";
441471
items.Add(e_12);
442472
return items;

BasicUI_MonoGame/GameUILibrary/GeneratedUI/Dictionary.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace EmptyKeys.UserInterface.Generated {
1919
using Microsoft.Xna.Framework.Graphics;
2020

2121

22-
[GeneratedCodeAttribute("Empty Keys UI Generator", "1.4.0.0")]
22+
[GeneratedCodeAttribute("Empty Keys UI Generator", "1.5.0.0")]
2323
public sealed class Dictionary : ResourceDictionary {
2424

2525
private static Dictionary singleton = new Dictionary();

0 commit comments

Comments
 (0)