cs16-client icon indicating copy to clipboard operation
cs16-client copied to clipboard

good old menu/console

Open benjarogit opened this issue 9 months ago • 5 comments

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.

benjarogit avatar Feb 21 '26 18:02 benjarogit

Not possible for a long time, this is an engine not supporting VGUI2 thing

Velaron avatar Feb 21 '26 18:02 Velaron

Another question: wouldn’t it be conceivable to use https://github.com/mikke89/RmlUi

benjarogit avatar Mar 10 '26 11:03 benjarogit

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 avatar Mar 10 '26 11:03 Velaron

@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.

Image Image Image Image

benjarogit avatar Sep 02 '26 13:09 benjarogit

Image

benjarogit avatar Sep 04 '26 07:09 benjarogit