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 |
root |
1.8 |
|
12 |
elmex |
1.2 |
use Crossfire; |
13 |
root |
1.8 |
use Crossfire::Tilecache; |
14 |
elmex |
1.1 |
|
15 |
|
|
my $VARDIR = "$ENV{HOME}/.gcfedit"; |
16 |
root |
1.3 |
|
17 |
elmex |
1.2 |
mkdir $VARDIR; |
18 |
elmex |
1.4 |
our $PICKDIR = "$Crossfire::LIB/maps/editor/picks"; |
19 |
elmex |
1.2 |
|
20 |
root |
1.8 |
Crossfire::init $VARDIR; |
21 |
|
|
Crossfire::Tilecache::init_tilecache "$VARDIR/tilecache"; |
22 |
elmex |
1.1 |
|
23 |
|
|
use GCE::MainWindow; |
24 |
elmex |
1.4 |
use GCE::PickWindow; |
25 |
root |
1.3 |
|
26 |
elmex |
1.1 |
my $w = GCE::MainWindow->new; |
27 |
|
|
|
28 |
|
|
$w->show_all; |
29 |
|
|
|
30 |
|
|
Gtk2->main; |
31 |
|
|
|
32 |
|
|
=head1 AUTHOR |
33 |
|
|
|
34 |
|
|
Marc Lehmann <schmorp@schmorp.de> |
35 |
|
|
http://home.schmorp.de/ |
36 |
|
|
|
37 |
|
|
Robin Redeker <elmex@ta-sa.org> |
38 |
|
|
http://www.ta-sa.org/ |
39 |
|
|
|
40 |
|
|
=cut |