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

Comparing deliantra/gde/gce (file contents):
Revision 1.1 by elmex, Sun Feb 5 00:34:36 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;
11use Crossfire;
12use Crossfire::Gtk2;
13
14my $pickdir = "$Crossfire::LIB/maps/editor/picks";
9 15
10my $VARDIR = "$ENV{HOME}/.gcfedit"; 16my $VARDIR = "$ENV{HOME}/.gcfedit";
11 17
18mkdir $VARDIR;
19our $PICKDIR = "$Crossfire::LIB/maps/editor/picks";
20
21Crossfire::init ($VARDIR);
22Crossfire::Gtk2::init_tilecache ("$VARDIR/tilecache");
23
12use GCE::MainWindow; 24use GCE::MainWindow;
25use GCE::PickWindow;
26require GCE::Map;
27
13my $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});
14 35
15$w->show_all; 36$w->show_all;
16 37
17Gtk2->main; 38Gtk2->main;
18 39

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines