ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/gde/bin/gde
(Generate patch)

Comparing deliantra/gde/bin/gde (file contents):
Revision 1.1 by elmex, Mon Oct 15 13:08:43 2007 UTC vs.
Revision 1.2 by elmex, Mon Oct 15 13:20:26 2007 UTC

14 require Win32::GUI::SplashScreen; 14 require Win32::GUI::SplashScreen;
15 15
16 Win32::GUI::SplashScreen::Show ( 16 Win32::GUI::SplashScreen::Show (
17 -file => "$ENV{PAR_TEMP}/SPLASH.bmp", 17 -file => "$ENV{PAR_TEMP}/SPLASH.bmp",
18 ); 18 );
19 19
20 $startup_done = sub { 20 $startup_done = sub {
21 Win32::GUI::SplashScreen::Done (1); 21 Win32::GUI::SplashScreen::Done (1);
22 }; 22 };
23 } 23 }
24} 24}
25 25
26BEGIN { 26BEGIN {
27 if (%PAR::LibCache) { 27 if (%PAR::LibCache) {
28 @INC = grep ref, @INC; # weed out all paths except pars loader refs 28 @INC = grep ref, @INC; # weed out all paths except pars loader refs
29 29
120 # FIXME: This sucks, moving it after showing it can't be a good thing. 120 # FIXME: This sucks, moving it after showing it can't be a good thing.
121 $window->show_all; 121 $window->show_all;
122 $window->move ($p_and_s->[0] || $default_x, $p_and_s->[1] || $default_y); 122 $window->move ($p_and_s->[0] || $default_x, $p_and_s->[1] || $default_y);
123} 123}
124 124
125if (-e "$Crossfire::VARDIR/gdeconfig") {
126 read_cfg "$Crossfire::VARDIR/gdeconfig";
127} else {
125read_cfg "$Crossfire::VARDIR/gceconfig"; 128 read_cfg "$Crossfire::VARDIR/gceconfig";
129}
126 130
127$LIBDIR = $ENV{CROSSFIRE_LIBDIR}; 131$LIBDIR = $ENV{CROSSFIRE_LIBDIR};
128$LIBDIR ||= $CFG->{LIBDIR}; 132$LIBDIR ||= $CFG->{LIBDIR};
129 133
130$MAPDIR = $ENV{CROSSFIRE_MAPDIR}; 134$MAPDIR = $ENV{CROSSFIRE_MAPDIR};
148 152
149__DATA__ 153__DATA__
150 154
151=head1 NAME 155=head1 NAME
152 156
153 gce - gtk (perl) crossfire editor 157 gde - gtk deliantra (map) editor
154 158
155=head1 SYNOPSIS 159=head1 SYNOPSIS
156 160
157 gce [<map-filename>...] 161 gde [<map-filename>...]
158 162
159=head1 FEATURES 163=head1 FEATURES
160 164
161gce is a map editor for crossfire. 165gde is a map editor for deliantra.
162 166
163Its main features are: 167Its main features are:
164 168
165 - higher map editing comfort 169 - higher map editing comfort
166 - intelligent placement tool 170 - intelligent placement tool
167 - intelligent connection tool 171 - intelligent connection tool
168 - intelligent erase tool 172 - intelligent erase tool
169 - faster and smaller than the java editor
170 - map normalizing (removal of old deprecated attributes) 173 - map normalizing (removal of old deprecated attributes)
171 - exit following 174 - exit following
172 - world map navigation 175 - world map navigation
173 - easier installation (on windows) 176 - easy installation (on windows)
174 - auto joining of walls (see Placement tool -> auto setting) 177 - auto joining of walls (see Placement tool -> auto setting)
175 178
176=head1 DESCRIPTION 179=head1 DESCRIPTION
177 180
178=head2 THE TOOLBOX WINDOW 181=head2 THE TOOLBOX WINDOW
179 182
180The toolbox window is the main window of gce. It provides the display of 183The toolbox window is the main window of gde. It provides the display of
181the currently selected object and the tools. The buttons select of the 184the currently selected object and the tools. The buttons select of the
182editing tool: 185editing tool:
183 186
184=over 4 187=over 4
185 188
362It tells you that you selected a source destination and that the next click will 365It tells you that you selected a source destination and that the next click will
363connect the exit with another exit or just let it point where you clicked (if there 366connect the exit with another exit or just let it point where you clicked (if there
364is no connectable object (in auto mode)). 367is no connectable object (in auto mode)).
365 368
366To connect two exits, just click at the first and then at the second, and 369To connect two exits, just click at the first and then at the second, and
367the editor will try to find a path (map path) that fits the crossfire conventions. 370the editor will try to find a path (map path) that fits the deliantra conventions.
368It will also adjust the (x,y) coords so that the exits point at each other. 371It will also adjust the (x,y) coords so that the exits point at each other.
369 372
370If something doesn't work as expected make sure you saved both maps 373If something doesn't work as expected make sure you saved both maps
371in a subdirectory of the crossfire map path (which you configured via 374in a subdirectory of the deliantra map path (which you configured via
372File->Preferences in the main window). 375File->Preferences in the main window).
373 376
374If the tile you edited with the connect tool contained a connectable 377If the tile you edited with the connect tool contained a connectable
375object, the currently configured connect value (set by the spin buttons in 378object, the currently configured connect value (set by the spin buttons in
376the main window) will be set on them. 379the main window) will be set on them.
599 All of the editor GUI: 602 All of the editor GUI:
600 603
601 Robin Redeker <elmex@ta-sa.org> 604 Robin Redeker <elmex@ta-sa.org>
602 http://www.ta-sa.org/ 605 http://www.ta-sa.org/
603 606
604 The Crossfire map handling module and map widget: 607 The Deliantra map handling module and map widget:
605 608
606 Marc Lehmann <schmorp@schmorp.de> 609 Marc Lehmann <schmorp@schmorp.de>
607 http://home.schmorp.de/ 610 http://home.schmorp.de/
608 611
609=cut 612=cut

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines