Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
mudlet:chat_capture_window [2021/06/26 18:05] – external edit 127.0.0.1 | mudlet:chat_capture_window [2021/07/14 00:04] – paradox | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Chat Capture Window Mudlet Script ====== | ====== Chat Capture Window Mudlet Script ====== | ||
- | | + | Let's walk through setting up Mudlet to separate channel output for '' |
- | - Open the " | + | |
+ | ===== Create a Window Script ===== | ||
+ | |||
+ | | ||
+ | - Click the " | ||
+ | - Click the "add item" button to create a new script. | ||
+ | - Enter a name, like //" | ||
+ | - In //"Add User Event Handler:"// | ||
+ | - Click the " | ||
+ | - Copy in the following source code to the text area.< | ||
+ | function make_chat_window() | ||
+ | chat_window = Geyser.UserWindow: | ||
+ | name = " | ||
+ | titleText = " | ||
+ | docked = true, | ||
+ | height = " | ||
+ | dockPosition = " | ||
+ | }) | ||
+ | chat_window: | ||
+ | return 1 | ||
+ | end | ||
+ | |||
+ | make_chat_window() | ||
+ | </ | ||
+ | - Your scripts setting pages should now look exactly like this: {{mudlet: | ||
+ | - Click the "Save Item" button | ||
+ | |||
+ | ===== Create a [chat] Capture Trigger ===== | ||
+ | |||
+ | - Click the " | ||
+ | - Click the "add item" button. | ||
+ | - Give your trigger | ||
+ | - In the first pattern, enter a channel name as it appears in game: < | ||
+ | - Leave everything else empty. | ||
+ | - Copy in the following code to the textarea: < | ||
+ | if(chat_window) | ||
+ | then | ||
+ | selectCurrentLine() | ||
+ | copy() | ||
+ | chat_window: | ||
+ | end | ||
+ | </ | ||
+ | - Your triggers settings page should now look exactly | ||
+ | - Click save item. | ||
- You may need to reconnect to the MUD to get the window to appear. | - You may need to reconnect to the MUD to get the window to appear. | ||
- | - Add other patterns to the trigger | + | |
+ | ===== Capture Additional Channels ===== | ||
+ | |||
+ | To capture additional channels to the same window simply add more capture | ||
+ | |||
+ | ===== Styling the Capture Window ===== | ||
+ | |||
+ | Here's an example of adding additional styling to the chat capture window. | ||
+ | |||
+ | **NOTE: Requires Mudlet 4.10+ and Linux - will not work on older Mudlet or MacOS/ | ||
+ | |||
+ | - Open the " | ||
+ | - Change your "Chat Capture Window" | ||
+ | chat_window = Geyser.UserWindow: | ||
+ | name = " | ||
+ | titleText = " | ||
+ | docked = true, | ||
+ | height = " | ||
+ | dockPosition = " | ||
+ | }) | ||
+ | |||
+ | chat_window: | ||
+ | background-color: | ||
+ | border-width: | ||
+ | border-color: | ||
+ | border-style: | ||
+ | border-radius: | ||
+ | ]]) | ||
+ | |||
+ | chat_window: | ||
+ | return 1 | ||
+ | end | ||
+ | |||
+ | make_chat_window() | ||
+ | </ |