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

Comparing deliantra/Deliantra-Client/DC/UI.pm (file contents):
Revision 1.349 by root, Thu Aug 17 16:05:36 2006 UTC vs.
Revision 1.352 by root, Sun Oct 1 12:10:00 2006 UTC

898 glClear GL_COLOR_BUFFER_BIT; 898 glClear GL_COLOR_BUFFER_BIT;
899 899
900 { 900 {
901 package CFPlus::UI::Base; 901 package CFPlus::UI::Base;
902 902
903 ($draw_x, $draw_y, $draw_w, $draw_h) = 903 local ($draw_x, $draw_y, $draw_w, $draw_h) =
904 (0, 0, $self->{w}, $self->{h}); 904 (0, 0, $self->{w}, $self->{h});
905
906 $self->_render;
905 } 907 }
906
907 $self->_render;
908 }; 908 };
909} 909}
910 910
911sub _draw { 911sub _draw {
912 my ($self) = @_; 912 my ($self) = @_;
2959 2959
2960 $self->{texture} ||= new_from_opengl CFPlus::Texture $W, $H, sub { 2960 $self->{texture} ||= new_from_opengl CFPlus::Texture $W, $H, sub {
2961 glClearColor 0, 0, 0, 0; 2961 glClearColor 0, 0, 0, 0;
2962 glClear GL_COLOR_BUFFER_BIT; 2962 glClear GL_COLOR_BUFFER_BIT;
2963 2963
2964 package CFPlus::UI::Base;
2965 local ($draw_x, $draw_y, $draw_w, $draw_h) =
2966 (0, 0, $self->{w}, $self->{h});
2967
2964 my $top = int $self->{children}[1]{range}[0]; 2968 my $top = int $self->{children}[1]{range}[0];
2965 2969
2966 my $paridx = 0; 2970 my $paridx = 0;
2967 my $top_paragraph; 2971 my $top_paragraph;
2968 my $top = int $self->{children}[1]{range}[0]; 2972 my $top = int $self->{children}[1]{range}[0];
3836 } 3840 }
3837 3841
3838 1 3842 1
3839 }; 3843 };
3840 3844
3841 my $tooltip = "$spell->{message}$TOOLTIP_ALL"; 3845 my $tooltip = (CFPlus::asxml $spell->{message}) . $TOOLTIP_ALL;
3842 3846
3843 #TODO: add path info to tooltip 3847 #TODO: add path info to tooltip
3844 #$self->add (6, $row, new CFPlus::UI::Label text => $spell->{path}); 3848 #$self->add (6, $row, new CFPlus::UI::Label text => $spell->{path});
3845 3849
3846 $self->add (0, $row, new CFPlus::UI::Face 3850 $self->add (0, $row, new CFPlus::UI::Face
4124 glLoadIdentity; 4128 glLoadIdentity;
4125 4129
4126 { 4130 {
4127 package CFPlus::UI::Base; 4131 package CFPlus::UI::Base;
4128 4132
4129 ($draw_x, $draw_y, $draw_w, $draw_h) = 4133 local ($draw_x, $draw_y, $draw_w, $draw_h) =
4130 (0, 0, $self->{w}, $self->{h}); 4134 (0, 0, $self->{w}, $self->{h});
4131 }
4132 4135
4133 $self->_draw; 4136 $self->_draw;
4137 }
4134} 4138}
4135 4139
4136############################################################################# 4140#############################################################################
4137 4141
4138package CFPlus::UI; 4142package CFPlus::UI;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines