ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/bin/pclient
(Generate patch)

Comparing deliantra/Deliantra-Client/bin/pclient (file contents):
Revision 1.77 by root, Tue Apr 11 22:49:13 2006 UTC vs.
Revision 1.78 by root, Wed Apr 12 00:26:50 2006 UTC

132 132
133 $table->add (0, 0, new CFClient::UI::Label align => 1, text => "Video Mode"); 133 $table->add (0, 0, new CFClient::UI::Label align => 1, text => "Video Mode");
134 $table->add (1, 0, my $hbox = new CFClient::UI::HBox); 134 $table->add (1, 0, my $hbox = new CFClient::UI::HBox);
135 135
136 $hbox->add (my $mode_slider = new CFClient::UI::Slider req_w => 100, range => [$CFG->{sdl_mode}, 0, scalar @SDL_MODES, 1]); 136 $hbox->add (my $mode_slider = new CFClient::UI::Slider req_w => 100, range => [$CFG->{sdl_mode}, 0, scalar @SDL_MODES, 1]);
137 $hbox->add (my $mode_label = new CFClient::UI::Label); 137 $hbox->add (my $mode_label = new CFClient::UI::Label height => $FONTSIZE * 0.8);
138 138
139 $mode_slider->connect (changed => sub { 139 $mode_slider->connect (changed => sub {
140 my (undef, $value) = @_; 140 my (undef, $value) = @_;
141 141
142 $CFG->{sdl_mode} = $value = int $value + 0.5; 142 $CFG->{sdl_mode} = $value = int $value + 0.5;
156 $table->add (0, 4, new CFClient::UI::Label align => 1, text => "Password"); 156 $table->add (0, 4, new CFClient::UI::Label align => 1, text => "Password");
157 $table->add (1, 4, my $pass = new CFClient::UI::Entry text => $CFG->{password}, hidden => 1); 157 $table->add (1, 4, my $pass = new CFClient::UI::Entry text => $CFG->{password}, hidden => 1);
158 158
159 $table->add (0, 5, new CFClient::UI::Label align => 1, text => "Map Size"); 159 $table->add (0, 5, new CFClient::UI::Label align => 1, text => "Map Size");
160 $table->add (1, 5, my $mapsize_slider = new CFClient::UI::Slider req_w => 100, range => [$CFG->{mapsize}, 10, 100 + 1, 1]); 160 $table->add (1, 5, my $mapsize_slider = new CFClient::UI::Slider req_w => 100, range => [$CFG->{mapsize}, 10, 100 + 1, 1]);
161
162 $vbox->add (my $hbox = new CFClient::UI::HBox);
163 $hbox->add (new CFClient::UI::Button expand => 1, align => 0, text => "Save", connect_activate => sub {
164 warn "save\n";
165 });
166 $hbox->add (new CFClient::UI::Button expand => 1, align => 0, text => "Login", connect_activate => sub {
167 warn "login\n";
168 });
169 $hbox->add (new CFClient::UI::Button expand => 1, align => 0, text => "Apply", connect_activate => sub {
170 warn "apply\n";
171 });
161 172
162 $CFClient::UI::TOPLEVEL->add ($dialog); 173 $CFClient::UI::TOPLEVEL->add ($dialog);
163} 174}
164 175
165sub start_game { 176sub start_game {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines