--- deliantra/Deliantra-Client/DC/Protocol.pm 2007/04/18 18:16:16 1.102 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2007/04/23 19:17:41 1.103 @@ -22,6 +22,7 @@ my $self = $class->SUPER::new (%arg, setup_req => { extmap => 1, + excmd => 1, %{$arg{setup_req} || {}}, }, ); @@ -635,26 +636,26 @@ $self->{query}-> ($self, $flags, $prompt); } +our @CF_COLOR = ( + [1.00, 1.00, 1.00], #[0.00, 0.00, 0.00], + [1.00, 1.00, 1.00], + [0.50, 0.50, 1.00], #[0.00, 0.00, 0.55] + [1.00, 0.00, 0.00], + [1.00, 0.54, 0.00], + [0.11, 0.56, 1.00], + [0.93, 0.46, 0.00], + [0.18, 0.54, 0.34], + [0.56, 0.73, 0.56], + [0.80, 0.80, 0.80], + [0.75, 0.61, 0.20], + [0.99, 0.77, 0.26], + [0.74, 0.65, 0.41], +); + sub drawinfo { my ($self, $color, $text) = @_; - my @color = ( - [1.00, 1.00, 1.00], #[0.00, 0.00, 0.00], - [1.00, 1.00, 1.00], - [0.50, 0.50, 1.00], #[0.00, 0.00, 0.55] - [1.00, 0.00, 0.00], - [1.00, 0.54, 0.00], - [0.11, 0.56, 1.00], - [0.93, 0.46, 0.00], - [0.18, 0.54, 0.34], - [0.56, 0.73, 0.56], - [0.80, 0.80, 0.80], - [0.75, 0.61, 0.20], - [0.99, 0.77, 0.26], - [0.74, 0.65, 0.41], - ); - - my $fg = $color[$color % @color]; + my $fg = $CF_COLOR[$color % @CF_COLOR]; $self->logprint ("info: ", $text);