Web Demo

Information for your addon's web-browser

◾ About

This is a demo page for your addon's web-browser.

To edit this and your other URLs; open lua\vliss\sh\cfg\sh_cfg_tabs.lua

◾ Integrated Browser Mode

The integrated browser mode displays your configured websites internally within the interface.

◾ Steam Browser Mode

This option will display your configured websites within the Steam overlay.

◾ Changing Modes

To change between Integrated Browser and the Steam Browser; open the file specified in the About section.

You must change the name of the function called to switch between integrated and browser mode:

base:OpenExternal( cfg.Menu.TitleDonate, cfg.Menu.LinkDonate )

Under each function similar to above; there is a commented line below it which includes code to use the Steam Browser. You must comment the Integrated Browser code, and uncomment the Steam Browser code.

-- Internal
base:OpenExternal( cfg.Menu.TitleDonate, cfg.Menu.LinkDonate )

-- External
-- gui.OpenURL( cfg.Menu.LinkDonate )

This method will change in the v2.0 rewrite.

◾ Important Note (blank pages)

Currently; the integrated browser mode works by utilizing a library developed by Facepunch for Garry's Mod. Developers do not have access to actually change / update code in that library.

If you enable the Integrated Browser; and notice that certain websites are appearing blank; then you will need to either change the URL; or disable the integrated browser.

This is due to the fact that the provided library by Facepunch is extremely outdated and is based on Chromium v22 which is extremely outdated and does not recognize code used on websites. As of writing this; the current version of Chromium is v89.

Until Facepunch actually updates Chromium for Garry's Mod; this is the only solution.

Last updated