good old menu/console
Hello everyone,
Does anyone have an idea how to recreate the classic old menu/console from CS1.6 for the desktop versions (Linux, Windows, macOS)? The one used here in the repo is modeled after the CS1.5 menu/console.
Not possible for a long time, this is an engine not supporting VGUI2 thing
Another question: wouldn’t it be conceivable to use https://github.com/mikke89/RmlUi
You can techincally make a custom GUI using basically any framework, I'm just not interested in that and that probably won't be added to the main tree
@Velaron
I've made quite a bit of progress on this in the meantime.
The solution didn't really come from one single source. I've been reconstructing the Steam-era CS 1.6 VGUI2 UI by comparing a number of different references: the original SDK/documentation and resources, existing open-source implementations and previous attempts by other projects, as well as the behavior of the original game itself.
A surprising amount can actually be reconstructed from the available source code, documentation, .res/scheme/localization files and existing implementations. Where those sources are not enough to explain a particular behavior or interface, I'm using targeted reverse engineering to fill in the missing pieces rather than trying to reverse engineer the entire UI.
Architecturally, I ended up bringing the classic VGUI2 stack over instead of replacing it with a completely different GUI framework:
VGUI2 core + vgui_controls Xash-backed rendering, input, font and system services GetMenuAPI for the main GameUI/menu integration MenuFactory / CreateInterface for the in-game VGUI interfaces reconstruction of the classic CS 1.6 Steam-era resources, layout and behavior
So it is less a direct port of one existing project and more a reconstruction assembled from several references, with the useful pieces compared and adapted to Xash.
The goal is also not just visual similarity. I'm trying to reproduce the actual behavior: Options pages, key binding/capture, mouse/audio/video settings, dialogs, localization, etc.
Mouse, Audio, Video and Keyboard are functional now. I'm currently working on the common adaptive/resizable layout layer, followed by another fidelity/polish pass for fonts, scrollbars, combo boxes, spacing and the remaining VGUI2 details.
It is still a work in progress, but the approach is working without depending on the original Steam/GoldSrc VGUI runtime.