-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#nop vim: set filetype=tt:; | ||
|
||
/* | ||
本文件属于 PaoTin++ 的一部分 | ||
=========== | ||
PaoTin++ © 2020~2023 的所有版权均由担子炮(dzp <[email protected]>) 享有并保留一切法律权利 | ||
你可以在遵照 GPLv3 协议的基础之上使用、修改及重新分发本程序。 | ||
=========== | ||
*/ | ||
|
||
load-lib event; | ||
|
||
event.HandleOnce {map/init} {map/tab} {map} {map.tab-completion.init}; | ||
|
||
#alias {map.tab-completion.init} { | ||
event.Handle {map/GotRoomInfo} {map/tab} {map} {map.tab-completion}; | ||
}; | ||
|
||
#alias {map.tab-completion} { | ||
#local idx {}; | ||
|
||
#class map.tab-completion kill; | ||
#class map.tab-completion open; | ||
|
||
#foreach {*gMapRoom[objs][]} {idx} { | ||
#local obj {$gMapRoom[objs][$idx]}; | ||
#tab $obj[id]; | ||
}; | ||
|
||
#local item {}; | ||
#foreach {$gMapRoom[items]} {item} { | ||
#tab $item; | ||
}; | ||
|
||
#class map.tab-completion close; | ||
}; |