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.6 by elmex, Sun Feb 5 16:47:31 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
12my $VARDIR = "$ENV{HOME}/.gcfedit"; 14my $VARDIR = "$ENV{HOME}/.gcfedit";
15
13mkdir $VARDIR; 16mkdir $VARDIR;
17our $PICKDIR = "$Crossfire::LIB/maps/editor/picks";
14 18
15Crossfire::init ($VARDIR); 19Crossfire::init ($VARDIR);
16Crossfire::Gtk2::init_tilecache ($VARDIR.'/tilecache'); 20Crossfire::Gtk2::init_tilecache ("$VARDIR/tilecache");
17 21
18use GCE::MainWindow; 22use GCE::MainWindow;
23use GCE::PickWindow;
24require GCE::Map;
25
19my $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});
20 33
21$w->show_all; 34$w->show_all;
22 35
23Gtk2->main; 36Gtk2->main;
24 37

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines