ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/client-settings-page.ext
(Generate patch)

Comparing deliantra/server/ext/client-settings-page.ext (file contents):
Revision 1.2 by root, Sat Dec 29 21:07:23 2007 UTC vs.
Revision 1.3 by root, Sat Jan 30 23:30:26 2010 UTC

11 # I hope not doing range checking is ok here... 11 # I hope not doing range checking is ok here...
12 $ws->template (face => (cf::face::find "res/ui/pl_settings_page"), 12 $ws->template (face => (cf::face::find "res/ui/pl_settings_page"),
13 [ 13 [
14 page => { }, 14 page => { },
15 15
16 title => { text => $pl->own_title }, 16 title => {
17 text => $pl->ob->is_dragon ? $pl->title : $pl->own_title,
18 can_events => !$pl->ob->is_dragon,
19 },
17 info => { text => $pl->{user_info} }, 20 info => { text => $pl->{user_info} },
18 info_save => { 21 info_save => {
19 on_activate => sub { 22 on_activate => sub {
20 $pl; # work around leaking $pl otherwise, 5.8 at least 23 $ws->{title}->get (text => sub {
24 return if $pl->ob->is_dragon;
21 25
22 $ws->{title}->get (text => sub {
23 $pl->statusmsg ("new title has been saved"); 26 $pl->statusmsg ("new title has been saved");
24 $pl->own_title ($_[0]); 27 $pl->own_title ($_[0]);
25 }); 28 });
26 $ws->{info}->get (text => sub { 29 $ws->{info}->get (text => sub {
27 $pl->statusmsg ("new character info text has been saved"); 30 $pl->statusmsg ("new character info text has been saved");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines