Build 317 -- Change window size with mouse, PanelBackgroundColor

Comments about individual builds. Bug reports, suggestions, etc.
Post Reply
Rob
Site Admin
Posts: 1483
Joined: Sat Sep 25, 2010 6:52 am

Build 317 -- Change window size with mouse, PanelBackgroundColor

Post by Rob » Sat Jan 09, 2021 11:21 pm

ClickMouse

ClickMouse has been rewritten. See more notes about this below.

Set editor

The dialog box for setting a text editor for scripts is working again.

Panel background color

A new option, PanelBackgroundColor, has been added to panels. Many thanks to Nephtes for suggesting this.

Resizable windows

Mojo now lets you shrink or enlarge DAOC windows by dragging the edges with your mouse. This lets you enlarge everything inside the windows including hotbars, maps, paper dolls, etc.

You can now also resize to specified dimensions or a percentage of DAOC's set size with the scripted hotkey command SetWinSize.

Enlarge DAOC on 4k monitors

You can use resizing to enlarge DAOC on 4K monitors (or any other monitor). You can, for example, set your DAOC windows to half size windowed mode on Options. Then double the size of the window with Mojo. Everything in the window will be twice as big as normal. The drawback is that Mojo uses DAOC's DirectX 9 to stretch the window which can make text look bad.

Resizing commands

This build contains three new scripted hotkey commands:

-- MouseCanChangeWinSize
-- MouseCannotChangeWinSize
-- ToggleMouseCanChangeWinSize

This build contains changes to this existing scripted hotkey:

-- SetWinSize

ClickMouse

I fixed a bug in ClickMouse and rewrote it so it works with resized windows. When you specify x-y coordinates for ClickMouse, always write them as if the window is the size you set on DAOC’s Options window. The Show Cursor Position window (right click the M-button to open it) displays these coordinates. You can then resize the window with Mojo and the hotkey will still work.

Side effects

To make the new commands work, I had to change a lot of existing code. This may have introduced some bugs in the following:

-- The Cursor Position window
-- ClickMouse
-- The M-Button's saved location
-- everything that has to do with mouse pointer position

System mouse pointer

Under some conditions Mojo will now replace DAOC's mouse pointer image with the regular Windows image. I think this is an improvement but if it bothers you, please let me know.

Show running DAOCs

I added a piece of information, the size of DAOC's DirectX back buffer, to Show Running DAOCs, because I thought I was going to use this info for the new ClickMouse. It turned out I didn't use the info but I left it on Show Running DAOCs anyway.

Bug reports wanted

If you see a new bug, please tell me immediately on Discord or Mojo's forum. The sooner I hear about a new bug, the easier it is for me to fix.
Author of Mojo

Post Reply