Resize columns in Learning Mapper interface

Posted by Synchro on Tue 28 Dec 2021 06:34 PM — 3 posts, 13,452 views.

#0
Hello,

I am using Nick's Learning Mapper plugin 2.1 for MUSHclient 5.06 (under Crossover). I'm using a laptop to play and the screen is relatively small. My problem is that the left-hand column where the output text goes is too narrow to be able to read comfortably, and if I enlarge the text it disappears off the right side of the column.

What I would like is to be able to reduce the width of the middle column, where e.g. "<- Description (98%)" appears, since there is currently a lot of blank space there. This might ideally be accomplished by making the border between the columns draggable, but simply resizing the fixed columns via code could work too. Any pointers on how to do this would be much appreciated.

Also, since this is my first post, thanks to Nick for this amazing piece of free software. It's enhanced my MUD-playing experience enormously. Cheers!
Australia Forum Administrator #1

My problem is that the left-hand column where the output text goes is too narrow to be able to read comfortably, and if I enlarge the text it disappears off the right side of the column.

The information column is made to appear at the designated width of your output text. In other words, if you go to Configuration -> Appearance -> Output and change “Wrap output at column number” to be different then the information pane moves accordingly (you may have to reload the mapper plugin).

The width of the information window is set here:

https://github.com/nickgammon/plugins/blob/b3560c91112929195eb7303c76d6772b33ee2aaa/Learning_Mapper.lua#L757

WindowCreate (win,
                (output_width * wrap_column) + pixel_offset + 10, -- left
                0,  -- top
                400, -- width   <--- HERE

If you change that number 400 to something else you will have more or less room for the information window.

In other words, edit Learning_Mapper.lua in your plugins folder, find that line (around line 757), change it, save the file, and reload the plugin.


If you type “mapper learn” in the client it toggles the visibility of that window and the learning dialog altogether.

Amended on Wed 29 Dec 2021 01:10 AM by Nick Gammon
#2
Excellent, that fixed my problem. Thank you!