windows Valve 为 Steam 使用什么 GUI 工具包?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2389717/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 14:05:07  来源:igfitidea点击:

What GUI toolkit does Valve use for Steam?

windowsgui-toolkit

提问by Jake Wilson

What GUI toolkit does Valve use for Steam? Is it Qt? I am interested in using the same toolkit for a project.

Valve 为 Steam 使用什么 GUI 工具包?是Qt吗?我有兴趣在项目中使用相同的工具包。

采纳答案by leinadster

According to Valve itself:

根据 Valve 本身的说法:

"VGUI is Valve's proprietary Graphical User Interface. All Source and Steam applications use VGUI to draw windows, dialogs and menus. It also handles localization: the displaying of text in the user's preferred language."

“VGUI 是 Valve 的专有图形用户界面。所有 Source 和 Steam 应用程序都使用 VGUI 来绘制窗口、对话框和菜单。它还处理本地化:以用户首选语言显示文本。

That's interesting, maybe if you guys do some research you can have it working in your programming language. I'll download the SDK to see if I can make it work with Java :)

这很有趣,也许如果你们做一些研究,你可以让它在你的编程语言中工作。我将下载 SDK 以查看是否可以使其与 Java 一起使用 :)

http://developer.valvesoftware.com/wiki/VGUI_Documentation

http://developer.valvesoftware.com/wiki/VGUI_Documentation

回答by leinadster

Having had experience with the Source engine I know that Valve have an library called VGUI which they use for all their games and many of their tools (when in game the library sits on top of the Source renderer, when in tools it sits on top of the Windows API I believe). Although I can't answer the question with 100% certainty I suspect that this is what they use for Steam as well (I seem to recall some Steam updates that mentioned VGUI) – I would be surprised if the new beta uses a different library.

有使用 Source 引擎的经验后,我知道 Valve 有一个名为 VGUI 的库,他们将其用于所有游戏和许多工具(在游戏中,库位于 Source 渲染器之上,而在工具中,它位于我相信 Windows API)。虽然我不能 100% 肯定地回答这个问题,但我怀疑这也是他们用于 Steam 的东西(我似乎记得一些提到 VGUI 的 Steam 更新)——如果新测试版使用不同的库,我会感到惊讶。

Even if it is not using VGUI, given what I know of Valve I would think they will have written something else entirely in-house.

即使它不使用 VGUI,鉴于我对 Valve 的了解,我认为他们会完全在内部编写其他东西。

So, it is (almost certainly) proprietary and highly unlikely to ever be available for third party use (unless you have the funds to buy a Source engine license).

因此,它(几乎可以肯定)是专有的,并且极不可能供第三方使用(除非您有资金购买 Source 引擎许可证)。

回答by Powerlord

Steam only runs on Windows and predates QT for Windows, so I'd have to guess something else.

Steam 只在 Windows 上运行,并且早于 Windows 的 QT,所以我不得不猜测别的东西。

Since Steam has had the same GUI since 2003, chances are it uses some variant of MFC. It also uses an embedded Internet Explorer web browser for its Store and Community sections.

由于 Steam 自 2003 年以来就拥有相同的 GUI,因此它很可能使用MFC 的某些变体。它还在其商店和社区部分使用嵌入式 Internet Explorer Web 浏览器。

However, I can't give any guarantees about what the version currently in Betauses. It looks quite a bit different and includs the Webkit rendering engine instead of using IE. It mayuse Webkit for everything rather than drawing their own GUIs.

但是,我无法对 Beta 版当前使用的版本做出任何保证。它看起来有点不同,包括 Webkit 渲染引擎而不是使用 IE。它可以将 Webkit 用于所有事情,而不是绘制自己的 GUI。