Monday, August 4, 2008

UI -Suffering from unintended clipping

I discovered that in the process of editing my chat windows for fullscreen width that the window was in turn being clipped by the system before reaching my target width, even though there was plenty of space left.

Cause: guisettings.ini
This file can be found under My Documents/Neverwinter Night 2/UI/default/ on Windows. This being the default override folder for in game user interface components(menus, buttons, borders, lists, etc).

Fix:
Remove the corresponding "width-[screen resolution] = x" or "height-[screen resolution] = x" lines from under the appropriate screen section which follows the following structure.
[screen name]
xpos-1024=x
ypos-768=x
width-1024=x
height-768=x
chatfilter=x
xpos-1600=x
ypos-1200=x
width-1600=x
height-1200=x

For example:

[defaultmpchat2]
xpos-1024=501
ypos-768=606
width-1024=314
height-768=123
chatfilter=1200
xpos-1600=782
ypos-1200=834
width-1600=731
height-1200=185
[timingscreen]
xpos-1024=420
ypos-768=500
xpos-1600=708
ypos-1200=801
[playerlist]
xpos-1024=160
ypos-768=165

Note: As you may have noticed, there are xpos- and ypos- lines. These correspond to the dragging features enabled on the UIScene tag found in the gui xml files that the user describes as draggable. They get saved each time upon exiting the module to the new position you moved them to whilst playing a module.


Default screens that you might experience this issue on include:
  • defaultchat
  • defaultmpchat1
  • defaultmpchat2
  • dmamount
As for community created screen additions then you simply need to look under the corresponding section in the guisettings.ini file, or make sure to create one for it.

Hope that can help some of you save some time as it would have done in my case.

No comments: