changeset 252:56db3183af38

Add some colours to /hstats.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 11 Feb 2006 01:12:32 +0000
parents 3765cf197a77
children 538e785fde00
files ggrtf-misc.tf
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ggrtf-misc.tf	Sat Feb 11 00:16:43 2006 +0000
+++ b/ggrtf-misc.tf	Sat Feb 11 01:12:32 2006 +0000
@@ -280,9 +280,9 @@
 /def -i hstats = /set hst_count=0%;\
 /msw ,-----------------.%;\
 /msw | @{BCgreen}GgrTF@{n} @{Cyellow}Hit Stats@{n} |%;\
-/msw +-----------------+-----------------------------.%;\
+/msw +-| @{BCgreen}Normal@{n} |------+-----------------------------.%;\
 /hstats_dolist1 %{lst_hits}%;\
-/msw +-----------------------------------------------+%;\
+/msw +-| @{BCred}Critical@{n} |----------------------------------+%;\
 /hstats_dolist2 %{lst_crits}%;\
 /msw +-----------------------------------------------'%;\
 /let qtmp=$[hst_total + hst_misses]%;\
@@ -295,7 +295,7 @@
 	/let qtmp2=0%;\
 	/let qtmp3=0%;\
 /endif%;\
-/msw | Hits..: $[pad(hst_total,-5)] ($[pad(qtmp1,3)]\%) | Crits: $[pad(hst_crits,-5)] ($[pad(qtmp3,3)]\%) |%;\
-/msw | Misses: $[pad(hst_misses,-5)] ($[pad(qtmp2,3)]\%) | Total Hit Types: $[pad(hst_count,-2)] |%;\
-/msw `--------------------------------------------'
+/msw | Hits..: @{Cgreen}$[pad(hst_total,-6)]@{n} (@{BCgreen}$[pad(qtmp1,3)]\%@{n}) | Crits: @{Cred}$[pad(hst_crits,-6)]@{n} (@{BCred}$[pad(qtmp3,3)]\%@{n}) |%;\
+/msw | Misses: @{Cyellow}$[pad(hst_misses,-6)]@{n} (@{BCyellow}$[pad(qtmp2,3)]\%@{n}) | Total Hit Types: @{BCwhite}$[pad(hst_count,-3)]@{n} |%;\
+/msw `----------------------------------------------'