From 935a8529a6726695c77ac42d02c7d039ea0c4caf Mon Sep 17 00:00:00 2001 From: Roman Shapiro Date: Tue, 14 Nov 2023 03:32:08 +0700 Subject: [PATCH] Small fix --- .../GamePanel.Generated.cs | 58 +++++++++++-------- .../Myra.Samples.DebugConsole/gamePanel.xmmp | 16 +++-- 2 files changed, 47 insertions(+), 27 deletions(-) diff --git a/samples/Myra.Samples.DebugConsole/GamePanel.Generated.cs b/samples/Myra.Samples.DebugConsole/GamePanel.Generated.cs index 6214e26a..9956bbfb 100644 --- a/samples/Myra.Samples.DebugConsole/GamePanel.Generated.cs +++ b/samples/Myra.Samples.DebugConsole/GamePanel.Generated.cs @@ -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; @@ -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; @@ -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; @@ -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; diff --git a/samples/Myra.Samples.DebugConsole/gamePanel.xmmp b/samples/Myra.Samples.DebugConsole/gamePanel.xmmp index 71502b0c..40173b30 100644 --- a/samples/Myra.Samples.DebugConsole/gamePanel.xmmp +++ b/samples/Myra.Samples.DebugConsole/gamePanel.xmmp @@ -3,10 +3,18 @@