Skip to content

Releases: Nats-ji/CPStyling.lua

CPStyling.lua 1.2.1

30 Mar 17:59
Compare
Choose a tag to compare

CPStyling is now available on nexus mods: https://www.nexusmods.com/cyberpunk2077/mods/1718/

Updated for CET 1.12

CPStyling.lua 1.2.0

19 Feb 08:16
8fdaf72
Compare
Choose a tag to compare
  • Made CPStyling an independent mod for CET.
  • Other mods can require CPStyling by using GetMod()
  • Allow mods to customize their color scheme

Breaking Changes

  • Some functions have been changed to colon operator

    • CPS:setThemeBegin()
    • CPS:setThemeEnd()
    • CPS:setFrameThemeBegin()
    • CPS:setFrameThemeEnd()
    • CPS:CPButton()
    • CPS:CPToggle()
    • CPS:CPToolTip1Begin()
    • CPS:CPToolTip1End()
    • CPS:CPToolTip2Begin()
    • CPS:CPToolTip2End()
    • CPS:CPRect1()
    • CPS:CPRect2()
    • CPS:CPDraw()
  • CPS.loadPNG() now takes file as the argument instead of file path

CPStyling.lua 1.1.1

08 Feb 03:28
Compare
Choose a tag to compare
  • Added a hack to simulate keydown events. CPS.Input
  • Updated style list

CPStyling.lua 1.1.0

05 Feb 15:45
9341d06
Compare
Choose a tag to compare

Updated for CET 1.10.0

  • Separated theme settings into theme.lua
  • Added CPDraw2() function that uses the Imdraw function

CPStyling.lua 1.0.1

22 Jan 08:22
c93c672
Compare
Choose a tag to compare

Fixed a stupid rootpath error in CPStyling.lua

Note: Due to some issue of CET 1.8.4, the root path of io.open() is different depending on how people launch their games. You need to setup something like a rootPathIO in your init.lua for your png file path.
If they launch with admin privilege (that's what Vortex does) the rootPathIO should be starting from.\plugins\.., otherwise it should be from .\bin\x64\plugins\.. It's up to you how to detect the root path.

CPStyling.lua

21 Jan 17:02
660ed22
Compare
Choose a tag to compare

What is this

Made for Cyber Engine Tweaks Mod creation.
This is a set of color schemes and widgets I made to match the style of Cyberpunk 2077's UI.
I also included some useful functions for easier and faster ImGui styling.

To use it under CET 1.8.3, checkout cet-1.8.3-fix branch

Please make PR if you want to fix bugs or make improvements

How to use

CPS = require "CPStyling"
theme = CPS.theme
color = CPS.color

To use CPS.loadPNG() and CPS.CPDraw() functions, you need to include the png.lua, deflatelua.lua library.

and open CPStyling.lua and png.lua change the rootPath and rootPathIO to your project's root path.

Note: Due to some issue of CET 1.8.4, the root path of io.open() is different depending on how people launch their games. You need to setup something like a rootPathIO in your init.lua for your png file path.
If they launch with admin privilege (that's what Vortex does) the rootPathIO should be starting from.\plugins\.., otherwise it should be from .\bin\x64\plugins\.. It's up to you how to detect the root path.

#This project is still WIP, will add more widgets. You can also download the demo to play with it yourself.