Skip to content

Commit

Permalink
SQUASH: feat: 增加一个触屏走路的插件
Browse files Browse the repository at this point in the history
  • Loading branch information
dzpao committed Nov 21, 2023
1 parent 1f4653e commit eb1193f
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions plugins/lib/ui/walk.tin
Original file line number Diff line number Diff line change
Expand Up @@ -93,31 +93,31 @@ PaoTin++ © 2020~2023 的所有版权均由担子炮(dzp <[email protected]>)
#local vmid {@math.Eval{$width / 2}};
#local hmid {@math.Eval{$height / 2}};

#draw BALIGN CALIGN box 1 1 $top @math.Eval{$left - 1} 西北;
#draw BALIGN CALIGN box 1 @math.Eval{$right + 1} $top $width 东北;
#draw TALIGN CALIGN box $bot 1 $height @math.Eval{$left - 1} 西南;
#draw TALIGN CALIGN box $bot @math.Eval{$right + 1} $height $width 东南;

#draw BALIGN CALIGN box 1 $left $top @math.Eval{$left * 5 / 3} 北上;
#draw BALIGN CALIGN box 1 @math.Eval{$left * 5 / 3 + 1} $top @math.Eval{$left * 7 / 3} 北;
#draw BALIGN CALIGN box 1 @math.Eval{$left * 7 / 3 + 1} $top $right 北下;

#draw TALIGN CALIGN box $bot @math.Eval{$left + 1} $height @math.Eval{$left * 5 / 3} 南上;
#draw TALIGN CALIGN box $bot @math.Eval{$left * 5 / 3 + 1} $height @math.Eval{$left * 7 / 3} 南;
#draw TALIGN CALIGN box $bot @math.Eval{$left * 7 / 3 + 1} $height $right 南下;

#draw BALIGN CALIGN box @math.Eval{$top + 1} 1 @math.Eval{$top * 5 / 3} @math.Eval{$left - 1} 西上;
#draw CALIGN box @math.Eval{$top * 5 / 3 + 1} 1 @math.Eval{$top * 7 / 3} @math.Eval{$left - 1} 西;
#draw TALIGN CALIGN box @math.Eval{$top * 7 / 3 + 1} 1 @math.Eval{$bot - 1} @math.Eval{$left - 1} 西下;

#draw BALIGN CALIGN box @math.Eval{$top + 1} @math.Eval{$right + 1} @math.Eval{$top * 5 / 3} $width 东上;
#draw CALIGN box @math.Eval{$top * 5 / 3 + 1} @math.Eval{$right + 1} @math.Eval{$top * 7 / 3} $width 东;
#draw TALIGN CALIGN box @math.Eval{$top * 7 / 3 + 1} @math.Eval{$right + 1} @math.Eval{$bot - 1} $width 东下;

#draw BALIGN CALIGN box @math.Eval{$top + 1} @math.Eval{$left + 1} $hmid $vmid 进;
#draw TALIGN CALIGN box @math.Eval{$hmid + 1} @math.Eval{$left + 1} @math.Eval{$bot - 1} $vmid 出;
#draw BALIGN CALIGN box @math.Eval{$top + 1} @math.Eval{$vmid + 1} $hmid $right 上;
#draw TALIGN CALIGN box @math.Eval{$hmid + 1} @math.Eval{$vmid + 1} @math.Eval{$bot - 1} $right 下;
#draw TALIGN BALIGN CALIGN box 1 1 $top @math.Eval{$left - 1} 西北;
#draw TALIGN BALIGN CALIGN box 1 @math.Eval{$right + 1} $top $width 东北;
#draw TALIGN BALIGN CALIGN box $bot 1 $height @math.Eval{$left - 1} 西南;
#draw TALIGN BALIGN CALIGN box $bot @math.Eval{$right + 1} $height $width 东南;

#draw TALIGN BALIGN CALIGN box 1 $left $top @math.Eval{$left * 5 / 3} 北上;
#draw TALIGN BALIGN CALIGN box 1 @math.Eval{$left * 5 / 3 + 1} $top @math.Eval{$left * 7 / 3} 北;
#draw TALIGN BALIGN CALIGN box 1 @math.Eval{$left * 7 / 3 + 1} $top $right 北下;

#draw TALIGN BALIGN CALIGN box $bot @math.Eval{$left + 1} $height @math.Eval{$left * 5 / 3} 南上;
#draw TALIGN BALIGN CALIGN box $bot @math.Eval{$left * 5 / 3 + 1} $height @math.Eval{$left * 7 / 3} 南;
#draw TALIGN BALIGN CALIGN box $bot @math.Eval{$left * 7 / 3 + 1} $height $right 南下;

#draw TALIGN BALIGN CALIGN box @math.Eval{$top + 1} 1 @math.Eval{$top * 5 / 3} @math.Eval{$left - 1} 西上;
#draw TALIGN BALIGN CALIGN box @math.Eval{$top * 5 / 3 + 1} 1 @math.Eval{$top * 7 / 3} @math.Eval{$left - 1} 西;
#draw TALIGN BALIGN CALIGN box @math.Eval{$top * 7 / 3 + 1} 1 @math.Eval{$bot - 1} @math.Eval{$left - 1} 西下;

#draw TALIGN BALIGN CALIGN box @math.Eval{$top + 1} @math.Eval{$right + 1} @math.Eval{$top * 5 / 3} $width 东上;
#draw TALIGN BALIGN CALIGN box @math.Eval{$top * 5 / 3 + 1} @math.Eval{$right + 1} @math.Eval{$top * 7 / 3} $width 东;
#draw TALIGN BALIGN CALIGN box @math.Eval{$top * 7 / 3 + 1} @math.Eval{$right + 1} @math.Eval{$bot - 1} $width 东下;

#draw TALIGN BALIGN CALIGN box @math.Eval{$top + 1} @math.Eval{$left + 1} $hmid $vmid 进;
#draw TALIGN BALIGN CALIGN box @math.Eval{$hmid + 1} @math.Eval{$left + 1} @math.Eval{$bot - 1} $vmid 出;
#draw TALIGN BALIGN CALIGN box @math.Eval{$top + 1} @math.Eval{$vmid + 1} $hmid $right 上;
#draw TALIGN BALIGN CALIGN box @math.Eval{$hmid + 1} @math.Eval{$vmid + 1} @math.Eval{$bot - 1} $right 下;

#buffer lock on;
#line oneshot #macro {\cc} {#buffer lock off; #buffer end};
Expand Down

0 comments on commit eb1193f

Please sign in to comment.