Make dialog box width a function of screen width
cmk24
Member Posts: 605
in UI Modding
Does any know how I could go about making the width of the dialog box a fixed percentage of the screen width (e.g. width=70%) instead of a fixed pixel width like it is now? All I need is the current game screen's resolution, but I am unfamiliar with lua and don't know how to go about getting it.
0
Comments
Also they normal dialog box and the conversation box are two separate bits in the UI code, so changes to one would not directly effect the other without a bit a scripting magic (could be done, but not the easiest thing in the world).
Also does anyone know how I can trigger the UI to refresh on a change of window size? If I resize the game window the dialog width does not change with it until I refresh with F5.