Mojo
SCRIPTING COMMANDS

MouseCanChangeWinSize

New in build 317

Makes a DAOC window resizable.

Syntax

MouseCanChangeWinSize ( [unconstrained] )

Parameters

Unconstrained. Optional. Use with caution. See remarks.

Examples

Hotkey ( F1 )
{
   // MOST PEOPLE SHOULD USE
   // THIS EXAMPLE, NOT THE
   // SECOND EXAMPLE

   MouseCanChangeWinSize ()
}

// OR

Hotkey ( F2 )
{
   // NOT GENERALLY RECOMMENDED
   // CAN MAKE DAOC LOOK WORSE

   MouseCanChangeWinSize ( unconstrained )
}

Remarks

A resizable window is one that you can shrink or enlarge by dragging its frame with the mouse. This command makes a DAOC window resizable.

By default, the DAOC window will keep its proportions (its aspect ratio) as you resize it. This makes the window look better. This is called constraint. But if you want the ability to change the window’s proportions, write unconstrained in your script as shown in the second example above.

Related

MouseCannotChangeWinSize

MouseCanChangeWinSize

RestoreNativeWinSize

SetWinSize

ToggleMouseCanChangeWinSize

This page was first published on January 10, 2021, last revised on January 12, 2021, and last republished on January 13, 2021.

Comments