ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/gde/gce
Revision: 1.9
Committed: Mon Feb 6 09:21:33 2006 UTC (18 years, 3 months ago) by elmex
Branch: MAIN
Changes since 1.8: +7 -0 lines
Log Message:
minor changes

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
12 use Crossfire;
13 use Crossfire::Tilecache;
14
15 my $VARDIR = "$ENV{HOME}/.gcfedit";
16
17 mkdir $VARDIR;
18 our $PICKDIR = "$Crossfire::LIB/maps/editor/picks";
19
20 Crossfire::init $VARDIR;
21 Crossfire::Tilecache::init_tilecache "$VARDIR/tilecache";
22
23 use GCE::MainWindow;
24 use GCE::PickWindow;
25
26 my $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 });
33
34 # XXX: signals don't feel right => move this stuff to MainWindow, it should
35 # deal with all the stuff it does
36 $w->signal_connect (update_stack_view => sub {
37 my ($t, $x, $y, $a) = @_;
38 print "$x $y: " . join (',', map { $_->{_name} } @$a) . "\n";
39 });
40
41 $w->show_all;
42
43 Gtk2->main;
44
45 =head1 AUTHOR
46
47 Marc Lehmann <schmorp@schmorp.de>
48 http://home.schmorp.de/
49
50 Robin Redeker <elmex@ta-sa.org>
51 http://www.ta-sa.org/
52
53 =cut