Browser Extension Framework creates an easy entry point to add your custom Web Sites to the main browser page: “NETdir://ncity.pub”. It also gathers and shows all the vanilla sites defined as journal entries in the game’s resources.
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou must get permission from me before you are allowed to use any of the assets in this file
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are not allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Donation Points system
This mod is opted-in to receive Donation Points
Changelogs
Version 0.9.5
the new webpage is no longer active during Phantom Liberty special ending
Version 0.9.4
fixed an issue with some of the page links not working in Japantown apartments
added short names for DLC sites
Version 0.9.3
the new webpage is no longer active on V's office computer during corpo's lifepath quest
added page counter to homepage
added an optional file to block sites by address
Version 0.9.2
fixed a problem with displaying site entries added by DLC
Extract the archive into the Cyberpunk 2077 install folder
You can download an optional mod that allows to manually block sites by address (see instructions below)
Keep in mind that the main page is not an actual scrolling page - it imitates scrolling, so right stick won't do anything there for console controller users! Use DPad Down and DPad Up to change pages. For KB&M users it depends on your personal settings (UI_MoveDown/UI_MoveUp actions), vanilla ones are scroll down/up with the mouse wheel and arrow down/up.
Description: Browser Extension Framework creates an easy entry point to add your custom Web Sites to the main browser page: “NETdir://ncity.pub”. It also gathers and shows all the vanilla sites defined as journal entries in the game’s resources. New sites are pushed at the start of the homepage, the homepage is scrollable using UI_MoveDown/UI_MoveUp actions (usually bound to the mouse wheel).
To add a new site you need to create a child of BrowserEventsListener, fill the name/address/create the pages and add/init your custom site in BrowserGameController.OnInitialize - see CustomSiteExample provided with the framework (Optional files section).
You can either create your pages from scratch (manually or using Codeware custom widgets) or reuse existing vanilla templates (see CustomSiteExample).
For a more complex usage example see this mod that provides a fully functional Vehicle Insurance web site with multiple pages, highlighted links, etc.
Details:
The system will only pass a link address to your listener if it begins with your site’s main address: use it to define all your site pages in the GetWebPage method.
Your custom page is reparented to the root page widget with anchor set to fill - anything else is on you: correct margins, scale, processing events, etc.
Link your pages with the LoadPageByAddress method.
You can override vanilla sites by address as custom sites are processed first (TODO: override system needs more work, in process).
Making your site icon: CustomSiteExample archive from Optional files contains a WolvenKit project with the raw dds icon, xbm texture and inkatlas. Icon size is 204x229.
Notes:
Use dds as a raw source.
Select TEXG_Generic_UI as a texture group on import, check IsGamma and VFlip.
Select TRF_TrueColor for RawFormat and TCM_None for compression, remove all the other checkboxes.
Didn’t test with transparency yet - might be different!
Block sites by address: Open r6\scripts\BlockByAddress\BlockByAddress.reds with notepad and uncomment (remove // at the start) the sites you don't want to see in-game. It's a simple system (might do an in-game UI later) to allow people to remove useless noise, though, we do encourage other modders to try and give those sites life.
TODO:
Make the homepage an actual scrollable widget (now imitates scrolling by redrawing items)
Acknowledgements: DJ_Kovrik for being a very helpful guide into the world of CP77 modding psiberx for great tools and docs