Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rds1983 committed Nov 13, 2023
1 parent e649ffe commit 935a852
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 27 deletions.
58 changes: 35 additions & 23 deletions samples/Myra.Samples.DebugConsole/GamePanel.Generated.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Generated by MyraPad at 10/26/2023 8:57:08 AM */
/* Generated by MyraPad at 11/14/2023 3:31:33 AM */
using Myra;
using Myra.Graphics2D;
using Myra.Graphics2D.TextureAtlases;
Expand Down Expand Up @@ -31,17 +31,29 @@ private void BuildUI()
label1.Top = 100;
label1.HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Center;

var label2 = new Label();
label2.Text = "Radio 1";

var radioButton1 = new RadioButton();
radioButton1.Text = "Radio 1";
radioButton1.Content = label2;

var label3 = new Label();
label3.Text = "Radio 2";

var radioButton2 = new RadioButton();
radioButton2.Text = "Radio 2";
radioButton2.Content = label3;

var label4 = new Label();
label4.Text = "Radio 3";

var radioButton3 = new RadioButton();
radioButton3.Text = "Radio 3";
radioButton3.Content = label4;

var label5 = new Label();
label5.Text = "Radio 4";

var radioButton4 = new RadioButton();
radioButton4.Text = "Radio 4";
radioButton4.Content = label5;

var horizontalStackPanel1 = new HorizontalStackPanel();
horizontalStackPanel1.Top = 50;
Expand All @@ -50,29 +62,29 @@ private void BuildUI()
horizontalStackPanel1.Widgets.Add(radioButton3);
horizontalStackPanel1.Widgets.Add(radioButton4);

var label2 = new Label();
label2.Text = "Button 1";
var label6 = new Label();
label6.Text = "Button 1";

var button1 = new Button();
button1.Content = label2;
button1.Content = label6;

var label3 = new Label();
label3.Text = "Button 2";
var label7 = new Label();
label7.Text = "Button 2";

var button2 = new Button();
button2.Content = label3;
button2.Content = label7;

var label4 = new Label();
label4.Text = "Button 3";
var label8 = new Label();
label8.Text = "Button 3";

var button3 = new Button();
button3.Content = label4;
button3.Content = label8;

var label5 = new Label();
label5.Text = "Button 4";
var label9 = new Label();
label9.Text = "Button 4";

var button4 = new Button();
button4.Content = label5;
button4.Content = label9;

var horizontalStackPanel2 = new HorizontalStackPanel();
horizontalStackPanel2.Spacing = 8;
Expand All @@ -82,19 +94,19 @@ private void BuildUI()
horizontalStackPanel2.Widgets.Add(button3);
horizontalStackPanel2.Widgets.Add(button4);

var label6 = new Label();
label6.Text = "Show Debug Panel";
var label10 = new Label();
label10.Text = "Show Debug Panel";

_buttonDebugPanel = new Button();
_buttonDebugPanel.Id = "_buttonDebugPanel";
_buttonDebugPanel.Content = label6;
_buttonDebugPanel.Content = label10;

var label7 = new Label();
label7.Text = "Show Debug Panel Modal";
var label11 = new Label();
label11.Text = "Show Debug Panel Modal";

_buttonModalDebugPanel = new Button();
_buttonModalDebugPanel.Id = "_buttonModalDebugPanel";
_buttonModalDebugPanel.Content = label7;
_buttonModalDebugPanel.Content = label11;

var horizontalStackPanel3 = new HorizontalStackPanel();
horizontalStackPanel3.Spacing = 8;
Expand Down
16 changes: 12 additions & 4 deletions samples/Myra.Samples.DebugConsole/gamePanel.xmmp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@
<Panel>
<Label Text="Game Screen" Top="100" HorizontalAlignment="Center" />
<HorizontalStackPanel Top="50">
<RadioButton Text="Radio 1" />
<RadioButton Text="Radio 2" />
<RadioButton Text="Radio 3" />
<RadioButton Text="Radio 4" />
<RadioButton>
<Label Text="Radio 1" />
</RadioButton>
<RadioButton>
<Label Text="Radio 2" />
</RadioButton>
<RadioButton>
<Label Text="Radio 3" />
</RadioButton>
<RadioButton>
<Label Text="Radio 4" />
</RadioButton>
</HorizontalStackPanel>
<HorizontalStackPanel Spacing="8" Top="300">
<Button>
Expand Down

0 comments on commit 935a852

Please sign in to comment.