mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #00036
[Bug 320604] Re: scrolling malfunction when using deleteLine()/inertHTML()
** Changed in: mudlet
Status: Confirmed => Fix Released
--
scrolling malfunction when using deleteLine()/inertHTML()
https://bugs.launchpad.net/bugs/320604
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
Status in Mudlet the MUD client: Fix Released
Bug description:
*** UPDATE: After replacing the deleteLine with replace(), the issue no longer occurs. Suspect the issue lies with Mudlet not automatically scrolling down when text is added using insertHTML.
I created a set of triggers that use deleteLine() and insertHTML() to delete and replace 20-25 lines of text. For example, it takes:
You are blind.
You are deaf.
You are resisting magical damage.
And reformats it to:
(blind)
(deaf)
(resistance)
However, after executing, Mudlet does not automatically scroll to display further lines received from the MUD until it receives approximately a number of lines equal to the number replaced using deleteLine() / insertHTML(). So, I type "def" which turns the triggers on, then, it replaces all the long names for defences with short names, then it remains in that position until about 20-25 lines are received from the MUD then begins to automatically scroll again.
I am using Mudlet 1.0 Alpha and Windows XP.
Alias name: defenseCheck
Regex: ^def$
Script:
enableTrigger("defenceCheck")
send("defences")
Trigger name: blindness
Fast substring: You are blind.
Script:
deleteLine()
insertHTML([[<br><font color="#C64CA0">(</font><font color="#FFFFFF">blind</font><font color="#C64CA0">)</font>]])
All triggers in the folder, save one (included below), are the same syntax as the above.
Trigger name: totalDefences
Regex: You are protected by (\d+) defences.
Script:
disableTrigger("defenceCheck")