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

Comparing deliantra/server/ext/widget.ext (file contents):
Revision 1.5 by root, Sun Jul 15 22:39:48 2007 UTC vs.
Revision 1.9 by root, Fri Jul 20 22:34:56 2007 UTC

53 53
54 my $face = cf::face::find "res/worldmap.jpg"; 54 my $face = cf::face::find "res/worldmap.jpg";
55 $ns->send_face ($face); 55 $ns->send_face ($face);
56 56
57 $w->add (my $sw = $ws->new (ScrolledWindow => scroll_x => 1, scroll_y => 1)); 57 $w->add (my $sw = $ws->new (ScrolledWindow => scroll_x => 1, scroll_y => 1));
58 $sw->add (my $vb = $ws->new (VBox => expand => 1)); 58 $sw->add (my $fixed = $ws->new (Fixed => expand => 1));
59 #$vb->add ($ws->new (Label => text => "lb1"));
60 $vb->add ($ws->new (Face => expand => 1, size_w => undef, size_h => undef, face => $face)); 59 $fixed->add ($ws->new (Face => expand => 1, size_w => undef, size_h => undef, face => $face), abs => 0, 0, rel => 1, 1);
61 $sw->show; 60 $fixed->add ($ws->new (Label => text => "lb1"), abs => 10, 10, rel => 1, 1);
62 $vb->show;
63 61
64 $w->show; 62 $w->show;
65} 63}
66 64
67sub csc_start { 65sub csc_start {
96 [5, "Pow"], 94 [5, "Pow"],
97 [6, "Cha"], 95 [6, "Cha"],
98 ) { 96 ) {
99 my ($x, $label) = @$_; 97 my ($x, $label) = @$_;
100 98
101 $statstable->add ($x, 0, $ws->new (Label => 99 $statstable->add_at ($x, 0, $ws->new (Label =>
102 can_hover => 1, can_events => 1, 100 can_hover => 1, can_events => 1,
103 align => +1, text => $label, tooltip => "#stat_$label", 101 align => +1, text => $label, tooltip => "#stat_$label",
104 )); 102 ));
105 $statstable->add ($x, 1, $ws->{stat}{$label} = $ws->new (Label => 103 $statstable->add_at ($x, 1, $ws->{stat}{$label} = $ws->new (Label =>
106 can_hover => 1, can_events => 1, 104 can_hover => 1, can_events => 1,
107 align => +1, template => "88", tooltip => "#stat_$label", 105 align => +1, template => "88", tooltip => "#stat_$label",
108 )); 106 ));
109 } 107 }
110 108

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines