Kolorki w statsach.

This commit is contained in:
Bartek Stalewski 2014-11-18 16:13:15 +01:00
parent 53b4438981
commit 2c51f43067
3 changed files with 18 additions and 9 deletions

View File

@ -153,7 +153,7 @@
/let linia=$[strcat("| ",pad("rozkaz",-6)," ",pad(_rozkaz_udany,5),"/",pad(_rozkaz_nieudany,-5)," [",pad(p6,3),"%%] |")] %;\
/eval /echo -p %{linia}@{n}%;\
/let linia=$[strcat("+----[ Statystyka specow ]---+")] %;\
/let linia=$[strcat(linia,"-----[ W sumie: ",pad(y,5),"/",pad(x,-5)," [",pad(p4,3),"%%] ]----+")] %;\
/let linia=$[strcat(linia,"-----[ W sumie: ",pad(y,5),"/",pad(x,-5)," [",decode_attr(pad(p4,3), {zc_info}),"@{C%c_info}%%@{n}] ]----+")] %;\
/eval /echo -p %{linia}@{n}%;\
/let linia=$[strcat("| ",pad("Spec 0/7",-6)," ",pad(spec_0,3),"/",pad(spece_suma,-5)," [",pad(ppp0,3),"%%] |")]%;\
/eval /echo -p %{linia}@{n}%;\

View File

@ -60,3 +60,4 @@
/eval /set zc_crit=C%c_crit_bold
/eval /set zc_crit_background=Cbg%c_crit_bold
/eval /set zc_fightme=C%c_fightme
/eval /set zc_info=C%c_info

View File

@ -79,7 +79,7 @@
/if (cc>0) \
/echo -p $[strcat(linia,strrep("| : ( )",po_ile-cc),"|")] @{n}%;\
/endif %;\
/let linia=$[strcat(" ", pad(ownkills,6),"@{n} |")] %;\
/let linia=$[strcat(" ", decode_attr(pad(ownkills,6), {zc_info}), " |")] %;\
/if (wrapsize > {po_ile}*27+6) \
/let linia=$[strcat(linia,"@{n}")] %;\
/endif %;\
@ -106,7 +106,7 @@
/if (cc>0) \
/echo -p $[strcat(linia,strrep("| : ( )",po_ile-cc),"|")] @{n}%;\
/endif %;\
/let linia=$[strcat(" ",pad(allkills,6),"@{n} |")] %;\
/let linia=$[strcat(" ", decode_attr(pad(allkills, 6), {zc_info}), " |")] %;\
/if (wrapsize > {po_ile}*27+6) \
/let linia=$[strcat(linia," @{n}")] %;\
/endif %;\
@ -155,6 +155,8 @@
/let __postep=%{1}%; \
/if ({__postep}>{_postepy_current})\
/set _postepy_czas_%{__postep}=$[ftime("%H:%M", time())]%;\
/set _postepy_own_%{__postep}=%ownkills%;\
/set _postepy_all_%{__postep}=%allkills%;\
/set _postepy_current=%{__postep}%;\
/endif
@ -162,22 +164,28 @@
/def _postepy_show_times = \
/let __index=0%; \
/echo -p @{n}------------------------%; \
/echo | Postepy | Czas |%; \
/echo -p @{n}---------------+--------%; \
/echo +--------------+-------+-----+-----+%; \
/while ({__index}<={_postepy_current}) \
/let __postep=$[_get_element({__index}, {_postepy_list})]%; \
/let __czas=$(/listvar -v _postepy_czas_$[strcat({__index})])%; \
/let __own=$(/listvar -v _postepy_own_$[strcat({__index})])%; \
/let __all=$(/listvar -v _postepy_all_$[strcat({__index})])%; \
/if ({__czas} =~ "" )\
/let __czas=??:??%;\
/let __czas=?:?%;\
/endif%;\
/echo $[strcat("| ", pad({__postep},-13), "| ", {__czas}, " |")]%; \
/if ({__own} =~ "" )\
/let __own=?%;\
/endif%;\
/if ({__all} =~ "" )\
/let __all=?%;\
/endif%;\
/echo $[strcat("| ", pad({__postep},-13), "| ", pad({__czas},5), " |", pad({__own},4), " |", pad({__all},4), " |")]%; \
/let __index=$[{__index}+1]%; \
/done%; \
/if ({_postepy_current}==-1) \
/echo -p @{n}| | |%; \
/endif%; \
/echo -p @{n}------------------------
/echo +--------------+-------+-----+-----+
/def _postepy_show = \
/let __postep=%{2}%; \