You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The outcome of which is a VGUI 'info' panel being spawned with a title but no contents.
The text was updated successfully, but these errors were encountered:
AlphaDelta
changed the title
showinfo command doesn't work because of key misspelling
[SDK] showinfo command doesn't work because of key misspelling
Sep 7, 2020
The
showinfo <type> <title> <message>
command is broken on Counter Strike: Source, as well as TF2 it seems.The issue exists because the command sets a key "message" in a KeyValue object seen here:
https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/mp/src/game/client/game_controls/vguitextwindow.cpp#L58
...which is then passed to
CTextWindow::SetData
However the
CTextWindow::SetData
method expects a key of "msg", not "message", as seen here:https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/mp/src/game/client/game_controls/vguitextwindow.cpp#L388
The outcome of which is a VGUI 'info' panel being spawned with a title but no contents.
The text was updated successfully, but these errors were encountered: