From fc53135ae5098d9c6b261a03b65d44db8d035724 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 7 Dec 2007 12:59:32 +0000 Subject: wheelfortune: some work on presentation --- data/rbot/plugins/games/wheelfortune.rb | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'data/rbot/plugins') diff --git a/data/rbot/plugins/games/wheelfortune.rb b/data/rbot/plugins/games/wheelfortune.rb index e8853cc6..e818a7c6 100644 --- a/data/rbot/plugins/games/wheelfortune.rb +++ b/data/rbot/plugins/games/wheelfortune.rb @@ -266,7 +266,14 @@ class WheelOfFortune < Plugin return end - @bot.say chan, qa.announcement + @bot.say chan, _("%{bold}%{color}%{name}%{bold}, round %{count}:%{nocolor} %{qa}") % { + :bold => Bold, + :color => Irc.color(:green), + :name => game.name, + :count => game.round, + :nocolor => Irc.color(), + :qa => qa.announcement, + } game.running = true end @@ -313,13 +320,24 @@ class WheelOfFortune < Plugin } if want_more == :done # max score reached - m.reply _("%{who} wins the game after %{count} rounds!") % { + m.reply _("%{bold}%{color}%{name}%{bold}%{nocolor}: %{who} %{bold}wins%{bold} after %{count} rounds!\nThe final score is") % { + :bold => Bold, + :color => Irc.color(:green), :who => m.sourcenick, - :count => game.round + :name => game.name, + :count => game.round, + :nocolor => Irc.color() } score_table(m.channel, game) @games.delete(ch) else :more + m.reply _("%{bold}%{color}%{name}%{bold}, round %{count}%{nocolor} -- score so far:") % { + :bold => Bold, + :color => Irc.color(:green), + :name => game.name, + :count => game.round, + :nocolor => Irc.color() + } score_table(m.channel, game) announce(m, :next => true) end -- cgit v1.2.3