Skip to content
项目

关于

UI library for MonoGame.

网站与应用开发

这些数字如何统计

可以做什么

  • Mouse, touch, keyboard and gamepad, with arrow, d-pad and stick navigation that works on any layout
  • Buttons, checkboxes, radio buttons, sliders, progress bars, textboxes, dropdowns, tabs, tooltips, popups
  • Stacks with spacing, padding, alignment and scrolling
  • Text wrapping, and textboxes with selection, copy and paste

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Apos.Gui

UI library for MonoGame.

Description

This library is designed to allow the creation of custom user facing UIs. You use it like an IMGUI, putting components every frame from your game's own variables, while the components themselves are kept from frame to frame so they can hold focus, scrolling and animations. It comes with the common components, and the pieces they're built from are public so that your own work the same way.

Discord

Documentation

Build

NuGet NuGet

Features

  • Mouse, touch, keyboard and gamepad, with arrow, d-pad and stick navigation that works on any layout
  • Buttons, checkboxes, radio buttons, sliders, progress bars, textboxes, dropdowns, tabs, tooltips, popups
  • Stacks with spacing, padding, alignment and scrolling
  • Text wrapping, and textboxes with selection, copy and paste
  • Themes, and looks you can replace per component
  • One UI per player for split screen, UI scaling, and UIs drawn to render targets
  • Hooks for the system clipboard and on-screen keyboards
  • Used like IMGUI but components can be coded like a retained UI

Showcase

Apos.GUI Showcase

Usage Example

You can create a simple UI with the following code that you'll put in the Update call:

MenuPanel.Push();
if (Button.Put("Show fun").Clicked) {
    _showFun = !_showFun;
}
if (_showFun) {
    Label.Put("This is fun!");
}
if (Button.Put("Quit").Clicked) {
    Exit();
}
MenuPanel.Pop();

This code will create 2 buttons, "Show Fun" and "Quit". You can use the mouse, touch, the keyboard or a gamepad to interact with them. Clicking on "Show Fun" will insert a label in between them with the text "This is fun!".

You can read more in the Getting started guide.

Other projects you might like

探索相关项目

加载中…