… | |
… | |
30 | } |
30 | } |
31 | $hb->add ($self->{input} = CFPlus::UI::Entry->new ( |
31 | $hb->add ($self->{input} = CFPlus::UI::Entry->new ( |
32 | expand => 1, |
32 | expand => 1, |
33 | tooltip => |
33 | tooltip => |
34 | $self->{entry_tooltip} |
34 | $self->{entry_tooltip} |
35 | || "<b>Chat Box</b>. If you enter a text and press return/enter here, the current <i>communication command</i> " |
35 | || "<b>Command Entry</b>. If you enter something and press return/enter here, " |
36 | . "from the client setup will be prepended (e.g. <b>shout</b>, <b>chat</b>...). " |
36 | . "the line you entered will be sent to the server as a command.", |
37 | . "If you prepend a slash (/), you will submit a command instead (similar to IRC). " |
|
|
38 | . "A better way to submit commands (and the occasional chat command) is often the map command completer.", |
|
|
39 | on_focus_in => sub { |
37 | on_focus_in => sub { |
40 | my ($input, $prev_focus) = @_; |
38 | my ($input, $prev_focus) = @_; |
41 | |
39 | |
42 | delete $input->{refocus_map}; |
40 | delete $input->{refocus_map}; |
43 | |
41 | |