Home User Guide User Interface Sample Channel Viewer Window
20 | 04 | 2018
Sample Channel Viewer Window
Article Index
Sample Channel Viewer Window
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Step 8
All Pages

It is now possible to save session window size and position within the main Mudmaster 2k6 frame so you can  create a multi-window layout. You can also now direct text and commands from any session window to any other session window via script. One great use for this is to make a window which captures your chat/talk channels so what is said doesn't get lost in the scrolling game text.

Setting up a channel viewer window in MudMaster 2k6

Files you will  need for this example are:
ChannelViewer.mms session file to be saved in the same folder as your mudmaster.exe
Channel script file with sample actions to send channel text to channel viewer window. This sample script will direct channels labeled [CLAN], [TOWN], [FORM] plus generic whoever chats to everybody, text to the channel viewer window. The script also include an alias findother you let you grep the scrollback of the other window from the main session input. 

or
Above files in a zip archive.

Once you have  those files saved in your MudMaster folder follow these steps.


 Step 1

Run Mudmaster with your normal  default session. Resize the main Mudmaster window to the size you want. This can be part or all of your display. You can maximize it but cannot use the Mudmaster "Full Screen Mode" in this multiple window mode.

   

Step 2

In the Session Options dialog, Session tab, Session Options section uncheck Maximize on open and check Max Width.

Session Option Dialog


Step 3

Restore the main session window to not be maximized within the main frame by clicking on the restore control near the top right corner or by inputing /maxrestore.

Restore Window Icon


Step 4

Resize the main session window by dragging the top and bottom edges. Make the bottom edge line up with the bottom of the main frame. Drag the top edge so there is a reasonable amount of space above it for the window which will contain your talk channels display.


Step 5

Save this session by typing control-s.

Then using the File menu, Load character... open the ChannelViewer.mms session and resize this window so the top edge is against the bottom edge of the toolbar and the lower edge is overlapping the main session window by the thickness of the input line.

Save this session by typing control-s.


Step 6

Click on the main session window and enter /removecaption.
Now enter /window {ChannelViewer.mms}{/removecaption}


Step 7

Enter /editcurrent and add the following lines to your start up script. I recommand that these line should go before the /session connect line:


/autoexec {/loadsession {ChannelViewer.mms}}
/autoexec {/read {channels.mm}}
/autoexec {/window {ChannelViewer.mms}{/removecaption}}
/autoexec {/removecaption}


Save and close this file. 

Do not save the session at this point or it will wipeout the changes you just made.


Step 8

Close MudMaster 2k6 without saving the session and restart it to see how the new two window layout opens on startup.