Skip to content

Commit

Permalink
Merge branch 'development' into MUSHclient
Browse files Browse the repository at this point in the history
  • Loading branch information
fiendish committed Apr 19, 2018
2 parents bb6ce64 + 35eb628 commit 3166ec2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
3 changes: 3 additions & 0 deletions MUSHclient/AardwolfPackageChanges.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Aardwolf Client Package Major Changes List

r1992 snapshot
- misc change: Using 'resetaard' will now tell the user about 'aard layout help'.

r1991 snapshot
- bug fix: Ignore sleeping status telopt during login. It arrives at the wrong time.

Expand Down
3 changes: 3 additions & 0 deletions MUSHclient/worlds/plugins/aard_GMCP_mapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,10 @@ directions = {}
function reset_aard()
mapper.reset_pos()
SaveState()
prev_quiet_backups = quiet_backups
quiet_backups = true
OnPluginInstall()
quiet_backups = prev_quiet_backups
end
convert_direction = {
Expand Down
17 changes: 15 additions & 2 deletions MUSHclient/worlds/plugins/aard_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,23 @@

<alias
script="LayoutCommand"
match="^aard layout( lock| unlock| save| forget| restore| list| help)?( .*)?"
match="^aard layout( lock| unlock| save| forget| restore| list| help| reset)?( .*)?"
regexp="y"
enabled="y"
sequence="100"
ignore_case="y"
></alias>

<alias
script="reset_aard"
script="reset_main"
match="resetmain"
enabled="y"
sequence="100"
ignore_case="y"
></alias>

<alias
name="resetaard"
script="reset_aard"
match="resetaard"
enabled="y"
Expand Down Expand Up @@ -75,6 +76,7 @@ MIN_SIZE = 50
require "serialize"
function LayoutHelp()
print("")
print("Aardwolf MUSHclient Layout Command Help")
print("--------------------------------------------------------------------------------")
print("aard layout lock : prevent dragging miniwindows")
Expand All @@ -84,6 +86,7 @@ function LayoutHelp()
print("aard layout forget <keyword> : forget the layout for the given keyword")
print("aard layout list : list all stored layout keywords")
print("aard layout help : show this command help")
print("aard layout reset : like resetaard, but better")
print("")
LockStatus()
print("")
Expand Down Expand Up @@ -123,6 +126,11 @@ function LayoutCommand(name, line, wildcards)
else
LayoutHelp()
end
elseif wildcards[1] == " reset" then
reset_main()
EnableAlias("resetaard", false)
Execute("resetaard")
EnableAlias("resetaard", true)
elseif wildcards[1] == "" or wildcards[1] == " help" then
LayoutHelp()
end
Expand Down Expand Up @@ -345,6 +353,11 @@ function SaveEnabled()
end
function reset_aard()
reset_main()
LayoutHelp()
end
function reset_main()
textrect_left = default_left
textrect_right = default_right
textrect_top = default_top
Expand Down

0 comments on commit 3166ec2

Please sign in to comment.