ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/MapWidget.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/MapWidget.pm (file contents):
Revision 1.36 by root, Thu May 25 00:26:19 2006 UTC vs.
Revision 1.37 by root, Thu May 25 01:26:53 2006 UTC

20 ); 20 );
21 21
22 $self->{completer} = new CFClient::MapWidget::Command:: 22 $self->{completer} = new CFClient::MapWidget::Command::
23 command => $self->{command}, 23 command => $self->{command},
24 can_focus => 1, 24 can_focus => 1,
25 tooltip => "<b>The Command Completer</b>\n\n"
26 . "This is your central interface to send text commands to the server. "
27 . "To enter a verbatim command to send to the server, just type the command, "
28 . "followed by a space, and press return. "
29 . "Typing the initial letters of words (or just any letters) displays guesses "
30 . "for commands you might want to use.\n"
31 . "You can use the cursor-up and cursor-down keys to select between those guesses.\n"
32 . "<b>Right-Click</b> opens a menu where you cna select further options, sich as redefining keybindings.",
25 ; 33 ;
26 34
27 $self 35 $self
28} 36}
29 37
124 $::CONN->user_send ("stay fire"); 132 $::CONN->user_send ("stay fire");
125 } elsif ($uni == ord ",") { 133 } elsif ($uni == ord ",") {
126 $::CONN->user_send ("take"); 134 $::CONN->user_send ("take");
127 } elsif ($uni == ord " ") { 135 } elsif ($uni == ord " ") {
128 $::CONN->user_send ("apply"); 136 $::CONN->user_send ("apply");
137 } elsif ($uni == ord ".") {
138 $::CONN->user_send ($self->{completer}{last_command})
139 if exists $self->{completer}{last_command};
129 } elsif ($uni == ord "\t") { 140 } elsif ($uni == ord "\t") {
130 # TODO: toggle inventory 141 # TODO: toggle inventory
131 } elsif ($sym == CFClient::SDLK_KP_PLUS || $uni == ord "+") { 142 } elsif ($sym == CFClient::SDLK_KP_PLUS || $uni == ord "+") {
132 $::CONN->user_send ("rotateshoottype +"); 143 $::CONN->user_send ("rotateshoottype +");
133 } elsif ($sym == CFClient::SDLK_KP_MINUS || $uni == ord "-") { 144 } elsif ($sym == CFClient::SDLK_KP_MINUS || $uni == ord "-") {
405 416
406 my $self = $entry->{parent}{parent}; 417 my $self = $entry->{parent}{parent};
407 418
408 if ($ev->{sym} == 13) { 419 if ($ev->{sym} == 13) {
409 if (exists $self->{select}) { 420 if (exists $self->{select}) {
421 $self->{last_command} = $self->{select};
410 $::CONN->user_send ($self->{select}); 422 $::CONN->user_send ($self->{select});
411 $self->hide; 423 $self->hide;
412 } 424 }
413 } elsif ($ev->{sym} == 27) { 425 } elsif ($ev->{sym} == 27) {
414 $self->hide; 426 $self->hide;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines