Skip to content

Commit

Permalink
Add chat window alias for scrolling to end
Browse files Browse the repository at this point in the history
  • Loading branch information
fiendish committed Dec 7, 2023
1 parent 4698c8e commit 022925e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions MUSHclient/worlds/plugins/aard_channels_fiendish.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ USAGE:
ignore_case="y"
></alias>

<alias
script="chat_scroll_to_end"
match="chats scroll"
enabled="y"
sequence="100"
ignore_case="y"
></alias>

</aliases>

<script>
Expand Down Expand Up @@ -382,6 +390,14 @@ function clearTabHotspots()
end
end
function chat_scroll_to_end()
tabs_rects[current_tab]:setScroll(
tabs_rects[current_tab].num_wrapped_lines - tabs_rects[current_tab].rect_lines + 1
)
tabs_rects[current_tab]:draw()
CallPlugin("abc1a0944ae4af7586ce88dc", "BufferedRepaint")
end
function removeTab()
clearTabHotspots()
tabs_rects[current_tab]:unInit()
Expand Down

0 comments on commit 022925e

Please sign in to comment.