![]() |
VOOZH | about |
dotnet add package OTK.UI --version 1.2.1
NuGet\Install-Package OTK.UI -Version 1.2.1
<PackageReference Include="OTK.UI" Version="1.2.1" />
<PackageVersion Include="OTK.UI" Version="1.2.1" />Directory.Packages.props
<PackageReference Include="OTK.UI" />Project file
paket add OTK.UI --version 1.2.1
#r "nuget: OTK.UI, 1.2.1"
#:package OTK.UI@1.2.1
#addin nuget:?package=OTK.UI&version=1.2.1Install as a Cake Addin
#tool nuget:?package=OTK.UI&version=1.2.1Install as a Cake Tool
A cross platform UI library for OpenTK with embedded resource support.
OTK.UI depends on a number of third party libraries.
Make sure these dependencies are installed via NuGet in your project before using OTK.UI
Contributions to OTK.UI are welcome. You can help by fixing bugs, adding features, improving documentation or providing example layouts
# Replace your_username with your GitHub username.
git clone https://github.com/your_username/otk.ui.git
cd OTK.UI
git checkout -b feature/my_change
git add .
git commit -m "Add a brief description of your changes here."
git push origin feature/my_change
Inside your custom GamePanel OnLoad method:
UIBase.Window = this;
TextureManager.LoadTexture("ButtonTexture.png");
FontManager.LoadFont("DefaultFont.ttf");
LayoutLoader loader = new LayoutLoader("LoadedLayout.xml");
var button = loader.Get<Button>("LoadedButton");
if (button is not null)
{
button.Released += (MouseButton) =>
{
UIBase.Window?.Close();
};
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.