Nowy uklad paska statusu.

This commit is contained in:
Bartek Stalewski 2014-12-23 14:35:54 +01:00
parent 1ae36a762c
commit 748fd9cac3
11 changed files with 64 additions and 60 deletions

View file

@ -1,11 +1,11 @@
/def _walk_binds = \
/def key_nkp/ = /sneak off %;\
/def key_nkp* = /sneak ON %;\
/def key_nkp- = /sneak TEAM %;\
/def key_nkp* = /sneak ON! %;\
/def key_nkp- = /sneak GRP %;\
/if ( {ktype} =~ "mac" ) \
/def key_f13 = /sneak off %;\
/def key_f14 = /sneak ON %;\
/def key_f15 = /sneak TEAM %;\
/def key_f14 = /sneak ON! %;\
/def key_f15 = /sneak GRP %;\
/endif
/_walk_binds
@ -60,10 +60,10 @@
/if ( {sneak} =~ "off" )\
/send -h %{1} %;\
/hide off %;\
/elseif ( {sneak} =~ "ON" )\
/elseif ( {sneak} =~ "ON!" )\
/send -h przemknij %{1} %;\
/hide on %;\
/elseif ( {sneak} =~ "TEAM" )\
/elseif ( {sneak} =~ "GRP" )\
/send -h przemknij z druzyna %{1} %;\
/hide on %;\
/endif %;\
@ -127,9 +127,9 @@
/echo -p #@{C%c_info}#@{n}# Dziwne wyjscie - @{C%c_info}%{*}@{n}.
/def dounnormal = \
/if ( {sneak} =~ "ON" ) \
/if ( {sneak} =~ "ON!" ) \
/send -h przemknij %{*} %;\
/elseif ( {sneak} =~ "TEAM" ) \
/elseif ( {sneak} =~ "GRP" ) \
/send -h przemknij z druzyna %{*} %;\
/else \
/send -h %{*} %;\
@ -209,19 +209,19 @@
/def sneak = \
/if ( {1} =~ "off" ) \
/set sneak %{1} %;\
/status_edit -r2 sneak:4:C%{c_main} %;\
/elseif ( {1} =~ "ON" ) \
/status_edit -r2 sneak:3:C%{c_main} %;\
/elseif ( {1} =~ "ON!" ) \
/set sneak %{1} %;\
/status_edit -r2 sneak:4:C%{c_alarm} %;\
/elseif ( {1} =~ "TEAM" ) \
/status_edit -r2 sneak:3:C%{c_alarm} %;\
/elseif ( {1} =~ "GRP" ) \
/set sneak %{1} %;\
/status_edit -r2 sneak:4:C%{c_alarm} %;\
/status_edit -r2 sneak:3:C%{c_alarm} %;\
/endif
/def hideup = \
/if ({hideshow} < "15" )\
/test ++hideshow%;\
/status_edit -r1 hideshow:4:C%c_alarm%;\
/status_edit -r1 hideshow:3:C%c_alarm%;\
/repeat -1 1 /hideup %;\
/endif
@ -229,12 +229,12 @@
/if ( {1} =~ "off" ) \
/set hide %{1} %;\
/set hideshow %{1} %;\
/status_edit -r1 hideshow:4:C%{c_main} %;\
/status_edit -r1 hideshow:3:C%{c_main} %;\
/rstop hideup %;\
/elseif ( {1} =~ "on" ) \
/set hide %{1} %;\
/set hideshow 0%;\
/status_edit -r1 hideshow:4:C%{c_alarm} %;\
/status_edit -r1 hideshow:3:C%{c_alarm} %;\
/rstop hideup %;\
/repeat -1 1 /hideup %;\
/endif
@ -250,4 +250,4 @@
/def -mregexp -Fp2 -t'Jest tu zbyt ciezko sie schowac' hideoff5 = /hide off
/def -mregexp -Fp2 -t'podazasz za ' hideoff6 = /hide off
/def -mregexp -Fp2 -t'Nie jestes w stanie wymknac' sneakoff0 = /sneak off
/def -mregexp -Fp2 -t'Nie jestes dowodca zadnej druzyny.' sneakoff1 = /sneak ON
/def -mregexp -Fp2 -t'Nie jestes dowodca zadnej druzyny.' sneakoff1 = /sneak off