All Projects → Cselt → rf2-better-ui

Cselt / rf2-better-ui

Licence: other
In this repository you can find small modifications for the new rFactor 2 UI

Programming Languages

typescript
32286 projects
HTML
75241 projects
SCSS
7915 projects
NSIS
403 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

rf2-better-ui

In this repository you can find small modifications for the new rFactor 2 UI

How to install

  1. Go to latest relaese page and download installer: link
  2. Run the installer
  3. Start rFactor 2 & enjoy

How to uninstall

Run Uninstall-Better-UI.exe located at your rFactor 2 directory

Or

Let Steam re-download modified files: link

Features

  • add left and right arrow navigation to the main screen
  • fix z-index issue with "exit game" button
  • add remember password feature to favorite multiplayer servers
  • add left and right arrow navigation to the race screen
  • add left and right arrow navigation to the garage screen
  • fix too big tiles on garage screen
  • add permanent chat window below camera view
  • highlight current track in setup popup
  • disable opacity change animation
  • remember selected multiplayer server filters
  • add countdown timer to lap limited multiplayer race events

How to contribute

Easy way

  • Download and install Better-UI version 4+
  • Install dependencies: npm install
  • Start Better-UI: npm run start
  • Start rFactor 2
  • Check WebUI port in your player.JSON (rFactor2\UserData\player\player.JSON) Find the following:
   "WebUI port": 5396,
   "WebUI port#": "Port for the WebUI",
  • Open your browser and navigate to http://localhost:/start/index.html e.g.: http://localhost:5396/start/index.html
  • Double-click on version number in the bottom right corner
  • Click OK to switch to dev mode
  • Now you have a working environment. Feel free to make changes in the code. Then you need to manually refresh the page to see the change

How to manually patch UI files

  • Compile Better ui: npm run build.all
  • Go to rFactor 2\Bin\Bundles
  • Open zip archive net.rfactor2.ui.framework.jar
  • Go tostatic\framework
  • Copy here dist/scripts/better-ui.js
  • Copy dist/rf2-better-ui to rf2-better-ui
  • Edit main-xxxx.js file
  • Append code at the end:
    require(["./framework/better-ui"]);
    

How to create an installer

  • Install Locate NSIS plugin
  • Compile Better ui: npm run build.all
  • Create directory dist\installer
  • Use the NSIS compiler (MakeNSISW) to compile installer/install.nsi
  • The installer will be located at dist/installer
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].