Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Axis & Allies 1942 Online is now available in Early Access! Buy it on Steam. The FAQ is available.
New Premium Module: Tyrants of the Moonsea! Read More
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

[MOD] Message Box Quick Resize Button

AdulAdul Member Posts: 1,912
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
mf2112elminsterJuliusBorisovRavenslight
Sign In or Register to comment.