简体   繁体   English

XNA的UI库

[英]UI library for XNA

I'm working on a small and simple XNA game and I'm noticing I'm spending way too much time implementing basic UI functionality like menus, (rich) text rendering including wrapping and basic UI lay-out such as alignment of elements. 我正在研究一个小而简单的XNA游戏,我注意到我花了太多时间实现基本的UI功能,如菜单,(丰富的)文本渲染,包括包装和基本的UI布局,如元素的对齐。

This is a fairly common problem, and I was wondering whether anyone knows of a library to handle these things. 这是一个相当普遍的问题,我想知道是否有人知道要处理这些事情的库。 I know there are some good skinnable options available to windows programmers (Crazy Eddie's GUI comes to mind), but as I'm targeting the Xbox 360 I would like to find a pure managed solution. 我知道有一些很好的skinnable选项可用于Windows程序员(Crazy Eddie的GUI出现在脑海中),但是当我瞄准Xbox 360时,我想找到一个纯粹的托管解决方案。

xWinForms is easily the most complete and actively maintained GUI system for XNA. xWinForms是XNA最完整,最主动的GUI系统。 Window System for XNA (WSX) had some good progress in the past (I was working on it for a while), and is still a decent system, though it hasn't been maintained for over a year now. XNA (WSX)的窗口系统在过去有一些很好的进展(我正在研究它一段时间),并且仍然是一个不错的系统,尽管它已经维持了一年多。 The best option is definitely to go with xWinForms, at least until WPF interoperability comes along (next version of WPF/XNA?) and makes all the other options effectively obsolete. 最好的选择是使用xWinForms,至少在WPF互操作性出现之前(WPF / XNA的下一个版本?)并使所有其他选项有效地过时。

Most of the projects listed here are now out of date. 此处列出的大多数项目现已过期。

The official thread for this question on the XNA forum is at http://xboxforums.create.msdn.com/forums/t/15274.aspx [link updated] XNA论坛上这个问题的官方主题是http://xboxforums.create.msdn.com/forums/t/15274.aspx [link updated]

It's been kept up to date over the years by The ZMan. 多年来,The ZMan一直保持最新状态。

Check out SQUID: http://www.ionstar.org/ 查看SQUID: http//www.ionstar.org/

It's a really clean, fast, and engine independent UI system. 它是一个非常干净,快速且独立于引擎的UI系统。 I've worked with it extensively and really enjoy using it. 我已经广泛使用它并且非常喜欢使用它。 The download includes sample code for XNA 3.1, Truevision3D, and SlimDX. 下载包括XNA 3.1,Truevision3D和SlimDX的示例代码。

I'm going to recommend the Nuclex Framework's GUI library . 我将推荐Nuclex Framework的GUI库 Nuclex is great, active and fully tested. Nuclex非常棒,活跃且经过全面测试。 It works on Windows and Xbox 360. It also has a great design. 它适用于Windows和Xbox 360.它也有很棒的设计。

There's XNA Simple Gui and xWinForms . XNA Simple GuixWinForms They provide some basic GUI elements. 它们提供了一些基本的GUI元素。 Haven't seen any menu components, though. 但是,没有看到任何菜单组件。

Check out the Gamestate Management Example for a game menu example. 查看游戏状态管理示例以获取游戏菜单示例。

NOTE: Last I checked, it wasn't fully functional with XNA 3.0. 注意:最后我检查过,它与XNA 3.0不完全兼容。

I have once used this Neoforce Controls library for one of my project. 我曾经将这个Neoforce Controls库用于我的一个项目。 Skin can be changed, and default Modern & Space-like UI skin may interest you. 皮肤可以更改,默认的类似现代和空间的UI皮肤可能会让您感兴趣。

Notice that this library is stated to not continue the development. 请注意,此库声明不会继续开发。 Anyway you may find something useful there. 无论如何,你可能会发现有用的东西。

Note: as of June of this year, moved to GitHub here and resumed development: https://github.com/NeoforceControls/XNA 注意:截至今年6月,转移到GitHub并恢复开发: https//github.com/NeoforceControls/XNA

see FuchsGUI it's a light-weight GUI library 看看FuchsGUI它是一个轻量级的GUI库

http://ghoshehsoft.wordpress.com/2011/02/11/xna-fuchsgui-part-i/ http://ghoshehsoft.wordpress.com/2011/02/11/xna-fuchsgui-part-i/

Adding Nuclear Winter to this list: https://bitbucket.org/sparklinlabs/nuclearwinter/ 将核冬天加入此列表: https//bitbucket.org/sparklinlabs/nuclearwinter/

It's a stylish looking GUI and was built with touch input in mind. 它是一个时尚的GUI,并考虑到触摸输入。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM