ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/bin/pclient
(Generate patch)

Comparing deliantra/Deliantra-Client/bin/pclient (file contents):
Revision 1.67 by root, Tue Apr 11 13:14:36 2006 UTC vs.
Revision 1.68 by root, Tue Apr 11 13:38:22 2006 UTC

91 glDisable GL_DEPTH_TEST; 91 glDisable GL_DEPTH_TEST;
92 glBlendFunc GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA; 92 glBlendFunc GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA;
93 93
94 ############################################################################# 94 #############################################################################
95 95
96 $DEBUG_STATUS = new CFClient::Widget::Label 0, 0, 1, $FONTSIZE, ""; 96 $DEBUG_STATUS = new CFClient::Widget::Label;
97 $CFClient::Widget::TOPLEVEL->add ($DEBUG_STATUS); 97 $CFClient::Widget::TOPLEVEL->add ($DEBUG_STATUS);
98 98
99 $STATUS_LINE = new CFClient::Widget::Label 99 $STATUS_LINE = new CFClient::Widget::Label
100 0, $HEIGHT * 59 / 60 - $FONTSIZE, 1, $FONTSIZE, 100 y => $HEIGHT * 59 / 60 - $FONTSIZE;
101 "";
102 $CFClient::Widget::TOPLEVEL->add ($STATUS_LINE); 101 $CFClient::Widget::TOPLEVEL->add ($STATUS_LINE);
103 102
104 $ALT_ENTER_MESSAGE = new CFClient::Widget::Label 103 $ALT_ENTER_MESSAGE = new CFClient::Widget::Label
105 0, $HEIGHT * 59 / 60, 1, $HEIGHT / 60, 104 y => $HEIGHT * 59 / 60,
105 height => $HEIGHT / 60,
106 "Use <b>Alt-Enter</b> to toggle fullscreen mode"; 106 text => "Use <b>Alt-Enter</b> to toggle fullscreen mode";
107 $CFClient::Widget::TOPLEVEL->add ($ALT_ENTER_MESSAGE); 107 $CFClient::Widget::TOPLEVEL->add ($ALT_ENTER_MESSAGE);
108 108
109 # Test code #d# 109 # Test code #d#
110 unless ($tw) { # haha... 110 unless ($tw) { # haha...
111 $te = new CFClient::Widget::FancyFrame; 111 $te = new CFClient::Widget::FancyFrame x => 300, z => 1;
112 $te->add (new CFClient::Widget::Entry); 112 $te->add (new CFClient::Widget::Entry);
113 $te->move (300, 0, 2);
114 $CFClient::Widget::TOPLEVEL->add ($te); 113 $CFClient::Widget::TOPLEVEL->add ($te);
115 114
116 $tw = new CFClient::Widget::Animator; 115 $tw = new CFClient::Widget::Animator x => $WIDTH - 200, w => 400, h => 300;
117 my $lbl1 = new CFClient::Widget::Label 116 my $lbl1 = new CFClient::Widget::Label text => "<i>This</i> is a\n<u>TEST</u>!\nOf a themed\nFrame!";
118 0, 0, 10, $FONTSIZE, "<i>This</i> is a\n<u>TEST</u>!\nOf a themed\nFrame!";
119 my $lbl2 = new CFClient::Widget::Label 117 my $lbl2 = new CFClient::Widget::Label text => "LBL2";
120 0, 0, 10, $FONTSIZE, "LBL2";
121
122 my $vb = new CFClient::Widget::VBox; 118 my $vb = new CFClient::Widget::VBox;
123 my $f = new CFClient::Widget::FancyFrame; 119 my $f = new CFClient::Widget::FancyFrame;
124 my $f2 = new CFClient::Widget::FancyFrame; 120 my $f2 = new CFClient::Widget::FancyFrame;
125 $f->add ($lbl1); 121 $f->add ($lbl1);
126 $f2->add ($lbl2); 122 $f2->add ($lbl2);
127 $vb->add ($f); 123 $vb->add ($f);
128 $vb->add ($f2, 1); 124 $vb->add ($f2, 1);
129 125
130 $tw->add ($vb); 126 $tw->add ($vb);
131 $tw->w (400);
132 $tw->h (300);
133 $tw->move ($WIDTH - 200, 0);
134 $tw->moveto (0, 0); 127 $tw->moveto (0, 0);
135 $CFClient::Widget::TOPLEVEL->add ($tw); 128 $CFClient::Widget::TOPLEVEL->add ($tw);
136 129
137# $f->move ($WIDTH - 200, 0); 130# $f->move ($WIDTH - 200, 0);
138# $CFClient::Widget::TOPLEVEL->add ($f); 131# $CFClient::Widget::TOPLEVEL->add ($f);
453 login => sub { start_game }, 446 login => sub { start_game },
454 logout => sub { stop_game }; 447 logout => sub { stop_game };
455 448
456main Gtk2; 449main Gtk2;
457 450
458CFsave_ref $FACECACHE, "$Crossfire::VARDIR/pclient.faces"; 451Crossfire::save_ref $FACECACHE, "$Crossfire::VARDIR/pclient.faces";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines