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

Comparing deliantra/gde/gce (file contents):
Revision 1.2 by elmex, Sun Feb 5 02:08:48 2006 UTC vs.
Revision 1.5 by elmex, Sun Feb 5 13:32:39 2006 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines