Skip to content

[MOD] Message Box Quick Resize Button

AdulAdul Member Posts: 2,002
edited May 2016 in UI Modding


I added an up/down arrow button next to the message box that toggles the size of the box between two quick settings: a small setting (about 5 lines tall), and a large setting (maximum size).

To add this to your own UI layout, add this code under the WORLD_MESSAGES menu in UI.menu:

SoD code:
button { enabled "worldMessageBoxTop < 0" area 857 203 45 48 bam GUISV10 sequence 1 on c action " dragMessagesY(2000) dragMessagesY(-92) " } button { enabled "worldMessageBoxTop >= 0" area 857 203 45 48 bam GUISV10 sequence 0 on c action " dragMessagesY(-2000) " }


BG2 code:
button { enabled "worldMessageBoxTop < 0" area 857 208 45 48 bam GUISV10 sequence 1 on c action " dragMessagesY(2000) dragMessagesY(-92) " } button { enabled "worldMessageBoxTop >= 0" area 857 202 45 48 bam GUISV10 sequence 0 on c action " dragMessagesY(-2000) " }


You can customize the size settings by playing with the dragMessagesY values to find a setting that works for you.

I've also added a quick key (C), which you can remove or change by deleting or editing the two "on c" lines in the code.
mbst.png 143.9K
Post edited by Adul on
Sign In or Register to comment.