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

Comparing deliantra/Deliantra-Client/DC/Pod.pm (file contents):
Revision 1.21 by root, Sun Mar 30 10:18:16 2008 UTC vs.
Revision 1.22 by root, Sun Mar 30 11:31:09 2008 UTC

123 $_[1]{$type}($_, @arg) 123 $_[1]{$type}($_, @arg)
124 }ogex; 124 }ogex;
125 } 125 }
126} 126}
127 127
128my %as_common = (
129 h1 => sub {
130 "\n\n<span foreground='#ffff00' size='x-large'>$_[1]</span>\n"
131 },
132 h2 => sub {
133 "\n\n<span foreground='#ccccff' size='large'>$_[1]</span>\n"
134 },
135 h3 => sub {
136 "\n\n<span size='large'>$_[1]</span>\n"
137 },
138);
139
128my %as_label = ( 140my %as_label = (
141 %as_common,
129 image => sub { 142 image => sub {
130 my ($par, $path) = @_; 143 my ($par, $path) = @_;
131 144
132 "<small>img</small>" 145 "<small>img</small>"
133 }, 146 },
151 164
152 $text 165 $text
153} 166}
154 167
155my %as_paragraphs = ( 168my %as_paragraphs = (
169 %as_common,
156 image => sub { 170 image => sub {
157 my ($par, $path, $flags) = @_; 171 my ($par, $path, $flags) = @_;
158 172
159 push @{ $par->{widget} }, new DC::UI::Image path => $path, 173 push @{ $par->{widget} }, new DC::UI::Image path => $path,
160 $flags & 1 ? (max_h => $::FONTSIZE) : (); 174 $flags & 1 ? (max_h => $::FONTSIZE) : ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines