MML 1.0.2

Install-Package MML -Version 1.0.2
dotnet add package MML --version 1.0.2
<PackageReference Include="MML" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MML --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MML, 1.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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.2

// Install MML as a Cake Tool
#tool nuget:?package=MML&version=1.0.2
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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 282 3/29/2020
1.0.1 269 3/29/2020
1.0.0 354 3/28/2020