Skip to content

Commit

Permalink
feat(UI): 允许用鼠标开启和关闭小键盘、屏幕键盘
Browse files Browse the repository at this point in the history
  • Loading branch information
dzpao committed Nov 11, 2024
1 parent 0a78404 commit 2108720
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions mud/pkuxkx/plugins/lib/ui/walk.extra.tin
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ option.Define {GancheMode} {Bool} {是否开启运镖模式} {false};
#class ui.walk.ganche.mode kill;
errLog 运镖模式已关闭。;
#if { @option.IsEnable{KeypadWalk} || @option.IsEnable{ScreenKeypad} } {
prompt.Set {{ganche}{@mslp.Exec{option.Toggle GancheMode;<119>已关闭<299>}(点击开启)}};
prompt.Set {{ganche}{@mslp.Exec{option.Toggle GancheMode;<119>已关闭<299>}}};
};
#else {
prompt.Set {{ganche}{}};
Expand All @@ -55,7 +55,7 @@ option.Define {GancheMode} {Bool} {是否开启运镖模式} {false};
};
#class ui.walk.ganche.mode close;
okLog 运镖模式已开启。;
prompt.Set {{ganche}{@mslp.Exec{option.Toggle GancheMode;<129>已开启<299>}(点击关闭)}};
prompt.Set {{ganche}{@mslp.Exec{option.Toggle GancheMode;<129>已开启<299>}}};
#var ui.walk.cmd {gan che to};
};
};
Expand Down
8 changes: 4 additions & 4 deletions plugins/lib/ui/walk.tin
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ option.Define {ScreenKeypad} {Bool} {是否开启屏幕虚拟键盘} {false};
#alias {ui.walk.ScreenKeypad.Setup} {
#if { @option.IsDisable{ScreenKeypad} } {
#class ui.walk.mouse kill;
prompt.Set {{screenKeypad}{}};
prompt.Set {{screenKeypad}{@mslp.Exec{option.Toggle ScreenKeypad;<119>已关闭<299>}}};
errLog 屏幕虚拟键盘走路已关闭。;
};
#else {
prompt.Set {{screenKeypad}{<129>已开启<299>}};
prompt.Set {{screenKeypad}{@mslp.Exec{option.Toggle ScreenKeypad;<129>已开启<299>}}};
ui.walk.setup;
okLog 屏幕虚拟键盘走路已开启。;
};
Expand Down Expand Up @@ -229,7 +229,7 @@ VAR {触屏和小键盘走路插件的走路命令,默认为 go} ui.walk.cmd {
#alias {ui.walk.Keypad.Setup} {
#if { @option.IsDisable{KeypadWalk} } {
#class ui.walk.Keypad kill;
prompt.Set {{keypad}{}};
prompt.Set {{keypad}{@mslp.Exec{option.Toggle KeypadWalk;<119>已关闭<299>}}};
errLog 小键盘走路已关闭。;
};
#else {
Expand All @@ -248,7 +248,7 @@ VAR {触屏和小键盘走路插件的走路命令,默认为 go} ui.walk.cmd {
};
#class ui.walk.Keypad close;
okLog 小键盘走路已开启。;
prompt.Set {{keypad}{<129>已开启<299>}};
prompt.Set {{keypad}{@mslp.Exec{option.Toggle KeypadWalk;<129>已开启<299>}}};
};
};

Expand Down

0 comments on commit 2108720

Please sign in to comment.