ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/gde/gce
(Generate patch)

Comparing deliantra/gde/gce (file contents):
Revision 1.3 by root, Sun Feb 5 04:30:17 2006 UTC vs.
Revision 1.4 by elmex, Sun Feb 5 13:26:36 2006 UTC

7 7
8use Gtk2 -init; 8use Gtk2 -init;
9use Crossfire; 9use Crossfire;
10use Crossfire::Gtk2; 10use Crossfire::Gtk2;
11 11
12my $pickdir = "$Crossfire::LIB/maps/editor/picks";
13
12my $VARDIR = "$ENV{HOME}/.gcfedit"; 14my $VARDIR = "$ENV{HOME}/.gcfedit";
13 15
14mkdir $VARDIR; 16mkdir $VARDIR;
17our $PICKDIR = "$Crossfire::LIB/maps/editor/picks";
15 18
16Crossfire::init ($VARDIR); 19Crossfire::init ($VARDIR);
17Crossfire::Gtk2::init_tilecache ("$VARDIR/tilecache"); 20Crossfire::Gtk2::init_tilecache ("$VARDIR/tilecache");
18 21
19use GCE::MainWindow; 22use GCE::MainWindow;
23use GCE::PickWindow;
20require GCE::Map; 24require GCE::Map;
21 25
22my $w = GCE::MainWindow->new; 26my $w = GCE::MainWindow->new;
27
28$w->signal_connect (open_pick => sub {
29 # XXX: How to give pick window the pickname ?
30 my $p = GCE::PickWindow->new;
31 $p->show_all;
32});
23 33
24$w->show_all; 34$w->show_all;
25 35
26Gtk2->main; 36Gtk2->main;
27 37

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines