Releases: MyraUI/Myra
1.6.0
New Event System
New event system that allows choosing the event propagation strategy. Also the event propagation could be stopped at any moment.
See new docs for details: https://rds1983.github.io/Myra/docs/event-system.html
Credit goes to @aneteanetes
MyraPad Became the Dotnet Tool
See new docs: https://rds1983.github.io/Myra/docs/MyraPad.html
New Samples
Added two new samples, demonstrating creation of the custom widgets.
Also there's new docs page, describing all samples: https://rds1983.github.io/Myra/docs/samples.html
Removed Obsolete Stuff
1.5.11
Overview
The new release has some bugfixes & refactoring.
And a pair of new MyraPad features.
New MyraPad Feature: Export To C# Light
Allows to instantly convert the edited MML to the C# code
myra17.mp4
New MyraPad Feature: Create Widgets By Right-Clicking on Explorer
myra18.mp4
1.5.10
- Merged many PRs from @Newbilius and @Bamboy
- Added small new feature for the PropertyGrid. If new attribute Range applied to numeric property, then the PropertyGrid won't allow it to go beyound the defined bounds. Example code of the attribute usage:
[Range(0.0f, 1.0f)]
public float Opacity { get;set; }1.5.9
Version 1.5.9
1.5.8
Some fixes
1.5.7
Some fixes
1.5.6
New Features
MyraPad got the navigation tree
myra14.mp4
Closeable tabs for TabControl
myra15.mp4
The new feature is turned on by setting TabControl.CloseableTabs to true.
Allow custom widgets when loading MML
Closed Issues and Merged Pull Requests
1.5.5
New Features
Stylesheet for 4k Monitors
Additional stylesheet that is similar to default one, but 2 times bigger. It is intended to be used on 4k monitors.
It could be turned on using following code:
Stylesheet.Current = DefaultAssets.DefaultStylesheet2X;FileDialog and ColorPickerDialog became styleable
New style classes had been added: FileDialogStyle and ColorPickerDialogStyle
Also it's possible to style it through json: https://github.com/rds1983/Myra/blob/6df22cd92e04b414c5c905190aed808b9c8f20a0/src/Myra/Resources/default_ui_skin.xmms#L145
API Changes
If you made custom stylesheet, then make sure the texture atlas contains "white" region, which is basically single white pixel.
Existance of "white" region is required for the custom stylesheet to work properly.
You can grab such image here: https://github.com/rds1983/Myra/blob/master/assets-raw/1x/white.png
Closed Issues
1.5.4
New Features
ListView
The new widget ListView aims to replace ListBox. ListView allows arbitrary content.
Example creation code:
var label1 = new Label();
label1.Text = "Item1";
var label2 = new Label();
label2.Text = "Item2";
var horizontalSeparator1 = new HorizontalSeparator();
var label3 = new Label();
label3.Text = "Item4";
var label4 = new Label();
label4.Text = "Item5";
var verticalStackPanel1 = new VerticalStackPanel();
verticalStackPanel1.Widgets.Add(label3);
verticalStackPanel1.Widgets.Add(label4);
var listView1 = new ListView();
listView1.Widgets.Add(label1);
listView1.Widgets.Add(label2);
listView1.Widgets.Add(horizontalSeparator1);
listView1.Widgets.Add(verticalStackPanel1);It is equivalent to the following MML:
<ListView>
<Label Text="Item1" />
<Label Text="Item2" />
<HorizontalSeparator />
<VerticalStackPanel>
<Label Text="Item4" />
<Label Text="Item5" />
</VerticalStackPanel>
</ListView>It'll render following:
myra12.mp4
ComboView
The new widget ComboView aims to replace ComboBox. It also allows arbitraty content.
It's usage is similar to the ListView.
myra11.mp4
Fixed Issues:
#439: Feature Request: ListView widget(aka ListBox with arbitrary content)
#440: Feature Request: ComboView Widget that allows arbitrary widgets
1.5.3
New Features
Tooltips
Finally, Widget got Tooltip property.
myra7.mp4
It understands the FontStashSharp RTF Syntax. I.e. if Tooltip is set to "E=mc/v[-8]2/n/vdMass–energy equivalence.", then it would show:
The tooltip creation could be customized through MyraEnvironment.TooltipCreator.
Modal Windows darken background
It's optional feature that is turned on by setting MyraEnvironment.EnableModalDarkening to true. Then every window that is modal(shown through ShowModal) would darken the background.
myra8.mp4
New RadioButton that allows arbitraty content
myra9.mp4
Closed Issues
#57 - Feature Request: Tooltip Widget
#436 - Add optional ability to windows to darken the background when shown
#437 - Feature Request: RadioButton with the arbitrary content
