MML 1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MML --version 1.0.0
NuGet\Install-Package MML -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MML" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MML --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MML, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MML as a Cake Addin #addin nuget:?package=MML&version=1.0.0 // Install MML as a Cake Tool #tool nuget:?package=MML&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MML (Mempler's markup language)
MML is an easy way to create osu!Framework UI Elements without much code. it is fully dynamic and can be easily expanded.
Examples
class YourGame : Game
{
[BackgroundDependencyLoader]
private void load()
{
var xamlData = "<oml>" +
"<Box width=\"250px\" height=\"250px\" colour=\"#FF0000\" position=\"0,0\"/>" +
"</oml>"
// Create a parser from our xamlData.
var parser = new MmlParser(xamlData);
// Pass our parser into our DisplayContainer so it'll construct on "Add"
var display = new MmlDisplayContainer(parser);
Child = display;
}
}
<mml>
<Box width="250px" height="250px" colour="#FF0000" position="0,0"/>
<Box width="2.6041in" height="2.6041in" colour="rgba(0, 0, 255, .4)" position="100,100"/>
<Box width="187.5pt" height="187.5pt" colour="rgba(0, 255, 255, .6)" position="200,200"/>
<Box width="15.625pc" height="15.625pc" colour="rgba(255, 0, 255, .8)" position="300,300"/>
</mml>
<mml>
<BufferedContainer blurSigma="4,-4" cacheDrawnFrameBuffer="true">
<sprite texture="https://a.ppy.sh/10291354"
width="250"
height="250"
/>
</BufferedContainer>
</mml>
<mml>
<container width="250" height="250">
<box width="250" height="250" colour="orange" />
<sprite texture="https://a.ppy.sh/10291354" width="200" height="200" margin="25" />
</container>
</mml>
more examples here
License
MML is licensed under MIT which basically means you can do what ever you want as long as you credit me.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- ppy.osu.Framework (>= 2020.327.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.