From a506be0832e89be97129bcb80effe2d6c0c67d76 Mon Sep 17 00:00:00 2001 From: Roman Shapiro Date: Wed, 8 Nov 2023 23:28:18 +0700 Subject: [PATCH] Some refactoring --- .../AllWidgets.Generated.cs | 4 +- .../Myra.Samples.AllWidgets/allControls.xmmp | 2 +- .../AllWidgets.Generated.cs | 2 +- src/Myra/Graphics2D/UI/Desktop.Input.cs | 66 ++----------------- src/Myra/Graphics2D/UI/Desktop.cs | 5 -- src/Myra/MyraEnvironment.cs | 55 ++++++++++++++++ src/MyraPad/Studio.cs | 20 ++---- 7 files changed, 69 insertions(+), 85 deletions(-) diff --git a/samples/Myra.Samples.AllWidgets/AllWidgets.Generated.cs b/samples/Myra.Samples.AllWidgets/AllWidgets.Generated.cs index d7ee0207..924a1242 100644 --- a/samples/Myra.Samples.AllWidgets/AllWidgets.Generated.cs +++ b/samples/Myra.Samples.AllWidgets/AllWidgets.Generated.cs @@ -1,4 +1,4 @@ -/* Generated by MyraPad at 11/8/2023 1:41:26 PM */ +/* Generated by MyraPad at 11/8/2023 11:24:23 PM */ using Myra; using Myra.Graphics2D; using Myra.Graphics2D.TextureAtlases; @@ -116,7 +116,7 @@ private void BuildUI() _buttonSaveFile = new ImageTextButton(); _buttonSaveFile.Text = "Save File"; _buttonSaveFile.Padding = new Thickness(8, 0); - _buttonSaveFile.Tooltip = "Tooltip 1"; + _buttonSaveFile.Tooltip = "E=mc/v[-8]2/n/vdMass–energy equivalence."; _buttonSaveFile.Id = "_buttonSaveFile"; Grid.SetColumn(_buttonSaveFile, 1); diff --git a/samples/Myra.Samples.AllWidgets/allControls.xmmp b/samples/Myra.Samples.AllWidgets/allControls.xmmp index d6b87ac2..d58be49c 100644 --- a/samples/Myra.Samples.AllWidgets/allControls.xmmp +++ b/samples/Myra.Samples.AllWidgets/allControls.xmmp @@ -32,7 +32,7 @@