Overriding mCasino
Although the integration kit allows you to make a fully custom version of mCasino, you may not want to do that, and instead just change around some features or items in the original casino. That's where overriding comes in.
How to override
To override panels in mCasino is very simple by following these steps, in this example we want to change something in the Crash game.
- Install the dev kit as mentioned before as normal
- Remove the concommand on lines 33-35 in
core/sv_core.lua, this will disable launching the dev kit separately. - Adjust the Crash game to your liking in
panels/crash/cl_crash.lua, note down the VGUI name at the bottom of the file, in this case it ismCasino_devKit_crash - At the end of the file you can tell mCasino to use your panel by adding the following code:
mCasino_devKit.onFinishLoad(function()
mCasino.setPanelOverride("mCasino_crash", "mCasino_devKit_crash")
end)
You can find the original frame names by printing out the games using mCasino.api.games.getGames