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

# User Rev Content
1 elmex 1.1 #!/opt/bin/perl
2     =head1 NAME
3    
4     gce - gtk (perl) crossfire editor
5    
6     =cut
7    
8 elmex 1.5 our $VERSION='0.1';
9    
10 elmex 1.1 use Gtk2 -init;
11 elmex 1.2 use Crossfire;
12     use Crossfire::Gtk2;
13 elmex 1.1
14 elmex 1.4 my $pickdir = "$Crossfire::LIB/maps/editor/picks";
15    
16 elmex 1.1 my $VARDIR = "$ENV{HOME}/.gcfedit";
17 root 1.3
18 elmex 1.2 mkdir $VARDIR;
19 elmex 1.4 our $PICKDIR = "$Crossfire::LIB/maps/editor/picks";
20 elmex 1.2
21     Crossfire::init ($VARDIR);
22 root 1.3 Crossfire::Gtk2::init_tilecache ("$VARDIR/tilecache");
23 elmex 1.1
24     use GCE::MainWindow;
25 elmex 1.4 use GCE::PickWindow;
26 root 1.3 require GCE::Map;
27    
28 elmex 1.1 my $w = GCE::MainWindow->new;
29    
30 elmex 1.4 $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 elmex 1.1 $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