ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/gde/gce
Revision: 1.5
Committed: Sun Feb 5 13:32:39 2006 UTC (18 years, 3 months ago) by elmex
Branch: MAIN
Changes since 1.4: +2 -0 lines
Log Message:
Added a makefile with installation

File Contents

# Content
1 #!/opt/bin/perl
2 =head1 NAME
3
4 gce - gtk (perl) crossfire editor
5
6 =cut
7
8 our $VERSION='0.1';
9
10 use Gtk2 -init;
11 use Crossfire;
12 use Crossfire::Gtk2;
13
14 my $pickdir = "$Crossfire::LIB/maps/editor/picks";
15
16 my $VARDIR = "$ENV{HOME}/.gcfedit";
17
18 mkdir $VARDIR;
19 our $PICKDIR = "$Crossfire::LIB/maps/editor/picks";
20
21 Crossfire::init ($VARDIR);
22 Crossfire::Gtk2::init_tilecache ("$VARDIR/tilecache");
23
24 use GCE::MainWindow;
25 use GCE::PickWindow;
26 require GCE::Map;
27
28 my $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 });
35
36 $w->show_all;
37
38 Gtk2->main;
39
40 =head1 AUTHOR
41
42 Marc Lehmann <schmorp@schmorp.de>
43 http://home.schmorp.de/
44
45 Robin Redeker <elmex@ta-sa.org>
46 http://www.ta-sa.org/
47
48 =cut