See wiki of Codeware to learn more about creating a UI. You should install RedHotTools too. It provides a powerful InkInspector
tool to help you design a UI while in-game.
Bind a style to a property of a widget, based on the current theme of the game. You must define a style resource using [this.SetStyle], otherwise this function will have no effect.
Example to use the red color of the game on a widget: BindProperty(n"tintColor", n"MainColors.Red")
.
You must define an .inkstyle
file to use [this.BindProperty]. When you add a widget with a script, this call is required on each widget you create.
A common styleResPath
used to define colors is: r"base\\gameplay\\gui\\common\\main_colors.inkstyle"
. You can see a Json representation of this file on Discord.
You can find other styles using WolvenKit.