banner
Rating
Voted0

Browser extension

9
Mod version:0.9.5
Game version:all
The mod has been successfully tested for the absence of viruses
16049.38K371.69K

Report mod

  • image
  • image
  • image
  • image
modalImage

About This Mod

Browser Extension Framework creates a simple entry point to add your custom websites to your browser homepage: "NETdir://ncity.pub". It also collects and shows all vanilla sites defined as log entries in game resources.


Browser Extension Framework

by r457 & gh057


Prerequisites:

redscript

red4ext

Codeware


Installation:

Download the framework's main archive

Extract the backup into the Cyberpunk 2077 installation folder

You can download an additional mod that allows you to manually block sites at (see instructions below)


Keep in mind that the main page is not a real page with scrolling - it simulates scrolling, so the right stick will do nothing 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 - scroll down/up with mouse wheel and down/up arrows.


Description:

Browser Extension Framework creates a simple entry point to add your custom websites to your browser homepage: "NETdir://ncity.pub". It also collects and shows all vanilla sites defined as log entries in game resources. New sites are placed at the top of the main page, the main page scrolls through with UI_MoveDown/UI_MoveUp actions (usually tied to the mouse wheel).


To add a new site, you must create a child BrowserEventsListener, fill in the name/address/create pages, and add/start your custom site in BrowserGameController.OnInitialize - see the CustomSiteExample example provided with the framework (see Optional files).


You can either create pages from scratch (manually or using custom Codeware widgets) or use existing vanilla templates (see CustomSiteExample).


For a more complex example of use, see this mod, which provides a full-featured vehicle insurance website with multiple pages, links, etc.


Details:

The system will send the link address to your listener only if it starts with the main address of your site: use it to define all pages of your site in the GetWebPage method.

Your custom page will be reassigned to the root page widget with the anchor set to fill - everything else depends on you: field adjustments, scale adjustments, event handling, etc.

Link your pages using the LoadPageByAddress method.

You can override vanilla sites at the address, since user sites are processed first (TODO: the override system needs more work, in the process).


Creating an icon for your site:

The CustomSiteExample archive from Optional files contains the WolvenKit project with an unprocessed dds icon, xbm texture and inkatlas. The size of the 204x229 icon.


Notes:

Use dds as the source material.

Select TEXG_Generic_UI as the texture group when importing, check IsGamma and VFlip.

Select TRF_TrueColor for RawFormat and TCM_None for compression, clear all other check boxes.

I haven't tested it with transparency yet - maybe it's different!


Blocking sites at:

Go to r6\scripts\BlockByAddress\BlockByAddress.reds with a notebook and comment (delete // at the beginning) on sites you don't want to see in the game. It's a simple system (maybe we'll make an in-game user interface later) that allows people to remove useless noise, but we encourage other modders to try to give these sites life.


TODO:

Make the master page a current scrollable widget (now simulates scrolling by redrawing items)


Similar Mods/Addons

Game Version *

all (BrowserExtensionFramework-10038-0-9-5-1701186644.7z)