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