I am using the excellent tabbed chat widget by Thylacine, and have stumbled across an oddity. I have added a few things to the specific triggers that fire when a channel is spoken on, specifically a short notification. When this happens, a prompt appears (as it should), but the notification does not. At least, not until I highlight it, at which point it appears, and remains everafter even if I cease to highlight it. Furthermore, if I have another window opened while the notification is sent (say this web browser) then the notification will appear correctly. Any idea what's causing this and how to fix it? The notification code is below.
selectString(line,1)
copy()
setBgColor(25,25,25)
appendBuffer("chatall")
appendBuffer("chatcity")
deleteLine()
resetFormat()
setBgColor(0,0,0)
setFgColor(255,255,255)
echo("[")
setFgColor(85,0,127)
echo("City")
setFgColor(255,255,255)
echo("]")
resetFormat()
Odd Echoing Issues
Re: Odd Echoing Issues
Version? OS?
The function deleteLine() should only be used when you want to gag the entire line.
If you want to replace the text of the line with something else use replace() e.g.
The function deleteLine() should only be used when you want to gag the entire line.
If you want to replace the text of the line with something else use replace() e.g.
Code: Select all
selectString(line,1)
setBgColor(25,25,25)
copy()
appendBuffer("chatall")
appendBuffer("chatcity")
resetFormat()
setBgColor(0,0,0)
setFgColor(255,255,255)
replace("[City]")
resetFormat()
Re: Odd Echoing Issues
I'm using Mudlet 1.0.5 on Vista.
I want to use deleteline() and echo() instead of substitution, because I don't want the tiny notification message wasting space on its own line.
Original:
Prompt
(City): (Message)
Prompt
Substitution:
Prompt
[city]
Prompt
With Delete and notification:
Prompt
Prompt [City}
I want to use deleteline() and echo() instead of substitution, because I don't want the tiny notification message wasting space on its own line.
Original:
Prompt
(City): (Message)
Prompt
Substitution:
Prompt
[city]
Prompt
With Delete and notification:
Prompt
Prompt [City}