… | |
… | |
1058 | . "so only set it if you really need to prefetch images. " |
1058 | . "so only set it if you really need to prefetch images. " |
1059 | . "This option can be set and unset any time.", |
1059 | . "This option can be set and unset any time.", |
1060 | on_changed => sub { $CFG->{face_prefetch} = $_[1]; 0 }, |
1060 | on_changed => sub { $CFG->{face_prefetch} = $_[1]; 0 }, |
1061 | ); |
1061 | ); |
1062 | |
1062 | |
1063 | $table->add (0, 9, new CFPlus::UI::Label valign => 0, align => 1, text => "Output-Count"); |
1063 | $table->add (0, 9, new CFPlus::UI::Label valign => 0, align => 1, text => "Output-Rate"); |
1064 | $table->add (1, 9, new CFPlus::UI::Entry |
1064 | $table->add (1, 9, new CFPlus::UI::Entry |
|
|
1065 | text => $CFG->{output_rate}, |
|
|
1066 | tooltip => "The approximate bandwidth in bytes per second that the server should not exceed " |
|
|
1067 | . "when sending images, to ensure interactiveness. When 0 or unset, the server " |
|
|
1068 | . "default will be used, which is usually around 100kb/s.", |
|
|
1069 | on_changed => sub { $CFG->{output_rate} = $_[1]; 0 }, |
|
|
1070 | ); |
|
|
1071 | |
|
|
1072 | $table->add (0, 10, new CFPlus::UI::Label valign => 0, align => 1, text => "Output-Count"); |
|
|
1073 | $table->add (1, 10, new CFPlus::UI::Entry |
1065 | text => $CFG->{output_count}, |
1074 | text => $CFG->{output_count}, |
1066 | tooltip => "Should be set to 1 unless you know what you are doing. This option is only used once at log-in.", |
1075 | tooltip => "Should be set to 1 unless you know what you are doing. This option is only used once at log-in.", |
1067 | on_changed => sub { $CFG->{output_count} = $_[1]; 0 }, |
1076 | on_changed => sub { $CFG->{output_count} = $_[1]; 0 }, |
1068 | ); |
1077 | ); |
1069 | |
1078 | |
1070 | $table->add (0, 10, new CFPlus::UI::Label valign => 0, align => 1, text => "Output-Sync"); |
1079 | $table->add (0, 11, new CFPlus::UI::Label valign => 0, align => 1, text => "Output-Sync"); |
1071 | $table->add (1, 10, new CFPlus::UI::Entry |
1080 | $table->add (1, 11, new CFPlus::UI::Entry |
1072 | text => $CFG->{output_sync}, |
1081 | text => $CFG->{output_sync}, |
1073 | tooltip => "Should be set to 1 unless you know what you are doing. This option is only used once at log-in.", |
1082 | tooltip => "Should be set to 1 unless you know what you are doing. This option is only used once at log-in.", |
1074 | on_changed => sub { $CFG->{output_sync} = $_[1]; 0 }, |
1083 | on_changed => sub { $CFG->{output_sync} = $_[1]; 0 }, |
1075 | ); |
1084 | ); |
1076 | |
1085 | |
1077 | $table->add (1, 11, $LOGIN_BUTTON = new CFPlus::UI::Button |
1086 | $table->add (1, 12, $LOGIN_BUTTON = new CFPlus::UI::Button |
1078 | expand => 1, |
1087 | expand => 1, |
1079 | align => 0, |
1088 | align => 0, |
1080 | text => "Login", |
1089 | text => "Login", |
1081 | on_activate => sub { |
1090 | on_activate => sub { |
1082 | $CONN ? stop_game |
1091 | $CONN ? stop_game |
1083 | : start_game; |
1092 | : start_game; |
1084 | 0 |
1093 | 0 |
1085 | }, |
1094 | }, |
1086 | ); |
1095 | ); |
1087 | |
1096 | |
1088 | $table->add (0, 12, new CFPlus::UI::Label valign => 0, align => 1, text => "Chat Command"); |
1097 | $table->add (0, 13, new CFPlus::UI::Label valign => 0, align => 1, text => "Chat Command"); |
1089 | $table->add (1, 12, my $saycmd = new CFPlus::UI::Entry |
1098 | $table->add (1, 13, my $saycmd = new CFPlus::UI::Entry |
1090 | text => $CFG->{say_command}, |
1099 | text => $CFG->{say_command}, |
1091 | tooltip => "This is the command that will be used if you write a line in the message window entry or press <b>\"</b> in the map window. " |
1100 | tooltip => "This is the command that will be used if you write a line in the message window entry or press <b>\"</b> in the map window. " |
1092 | . "Usually you want to enter something like 'say' or 'shout' or 'gsay' here. " |
1101 | . "Usually you want to enter something like 'say' or 'shout' or 'gsay' here. " |
1093 | . "But you could also set it to <b>tell <i>playername</i></b> to only chat with that user.", |
1102 | . "But you could also set it to <b>tell <i>playername</i></b> to only chat with that user.", |
1094 | on_changed => sub { |
1103 | on_changed => sub { |
… | |
… | |
1096 | $CFG->{say_command} = $value; |
1105 | $CFG->{say_command} = $value; |
1097 | 0 |
1106 | 0 |
1098 | } |
1107 | } |
1099 | ); |
1108 | ); |
1100 | |
1109 | |
1101 | $table->add (0, 13, new CFPlus::UI::Label valign => 0, align => 1, text => "Tip of the day"); |
1110 | $table->add (0, 14, new CFPlus::UI::Label valign => 0, align => 1, text => "Tip of the day"); |
1102 | $table->add (1, 13, my $saycmd = new CFPlus::UI::CheckBox |
1111 | $table->add (1, 14, my $saycmd = new CFPlus::UI::CheckBox |
1103 | state => $CFG->{show_tips}, |
1112 | state => $CFG->{show_tips}, |
1104 | tooltip => "Show the <b>Tip of the day</b> window at startup?", |
1113 | tooltip => "Show the <b>Tip of the day</b> window at startup?", |
1105 | on_changed => sub { |
1114 | on_changed => sub { |
1106 | my ($self, $value) = @_; |
1115 | my ($self, $value) = @_; |
1107 | $CFG->{show_tips} = $value; |
1116 | $CFG->{show_tips} = $value; |
… | |
… | |
2093 | bgm_enable => 1, |
2102 | bgm_enable => 1, |
2094 | bgm_volume => 0.25, |
2103 | bgm_volume => 0.25, |
2095 | face_prefetch => 0, |
2104 | face_prefetch => 0, |
2096 | output_sync => 1, |
2105 | output_sync => 1, |
2097 | output_count => 1, |
2106 | output_count => 1, |
|
|
2107 | output_rate => "", |
2098 | pickup => 0, |
2108 | pickup => 0, |
2099 | inv_sort => "mtime", |
2109 | inv_sort => "mtime", |
2100 | default => "profile", # default profile |
2110 | default => "profile", # default profile |
2101 | show_tips => 1, |
2111 | show_tips => 1, |
2102 | ); |
2112 | ); |