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

Comparing deliantra/Deliantra-Client/DC/Protocol.pm (file contents):
Revision 1.184 by root, Thu Dec 27 18:35:56 2007 UTC vs.
Revision 1.185 by root, Thu Dec 27 19:12:19 2007 UTC

194 ); 194 );
195} 195}
196 196
197# widgetset create template 197# widgetset create template
198sub ext_ws_ct { 198sub ext_ws_ct {
199 my ($self, $ws, $template, $cfg) = @_; 199 my ($self, $ws, $type, $template, $done_cb, $cfg) = @_;
200 200
201 $template = eval <<EOF; 201 $done_cb ||= sub { };
202[
203 Toplevel => {
204 s_id => "toplevel",
205 title => "Character Creation",
206 x => "center",
207 y => "center",
208 z => 5,
209 s_cl => [VBox => {s_cl => [
210 Label => {
211 text => "Character Creation",
212 fontsize => 1,
213 align => 0,
214 },
215 Label => {
216 markup => "View or Edit your character attributes below, then press <b>Finish</b> to create your character",
217 fontsize => 0.8,
218 align => 0,
219 },
220 Notebook => {
221 s_cl => [
222 Label => {
223 text => "hulla-hoop"
224 },
225 Entry => {
226 s_id => "entry",
227 },
228 ],
229 },
230 Button => {
231 s_id => "finish",
232 title => "Finish",
233 },
234 ]}],
235 },
236]
237EOF
238 die if $@;
239 202
240 my $parse_list; $parse_list = sub { 203 my $parse_list; $parse_list = sub {
241 my ($list) = @_; 204 my ($list) = @_;
242 my @w; 205 my @w;
243 206
260 } 223 }
261 224
262 @w 225 @w
263 }; 226 };
264 227
228 # either array reference, or face #
229 if ($type eq "inline") {
265 $parse_list->($template); 230 $parse_list->($template);
266 231 $done_cb->();
232 } elsif ($type eq "face") {
233 #...
234 $done_cb->(0);
235 } else {
236 $done_cb->(0);
237 }
267} 238}
268 239
269# widgetset associate 240# widgetset associate
270sub ext_ws_a { 241sub ext_ws_a {
271 my ($self, %ass) = @_; 242 my ($self, %ass) = @_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines