… | |
… | |
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 | |
26 | BEGIN { |
26 | BEGIN { |
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 | |
|
|
125 | if (-e "$Crossfire::VARDIR/gdeconfig") { |
|
|
126 | read_cfg "$Crossfire::VARDIR/gdeconfig"; |
|
|
127 | } else { |
125 | read_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 | |
161 | gce is a map editor for crossfire. |
165 | gde is a map editor for deliantra. |
162 | |
166 | |
163 | Its main features are: |
167 | Its 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 | |
180 | The toolbox window is the main window of gce. It provides the display of |
183 | The toolbox window is the main window of gde. It provides the display of |
181 | the currently selected object and the tools. The buttons select of the |
184 | the currently selected object and the tools. The buttons select of the |
182 | editing tool: |
185 | editing tool: |
183 | |
186 | |
184 | =over 4 |
187 | =over 4 |
185 | |
188 | |
… | |
… | |
362 | It tells you that you selected a source destination and that the next click will |
365 | It tells you that you selected a source destination and that the next click will |
363 | connect the exit with another exit or just let it point where you clicked (if there |
366 | connect the exit with another exit or just let it point where you clicked (if there |
364 | is no connectable object (in auto mode)). |
367 | is no connectable object (in auto mode)). |
365 | |
368 | |
366 | To connect two exits, just click at the first and then at the second, and |
369 | To connect two exits, just click at the first and then at the second, and |
367 | the editor will try to find a path (map path) that fits the crossfire conventions. |
370 | the editor will try to find a path (map path) that fits the deliantra conventions. |
368 | It will also adjust the (x,y) coords so that the exits point at each other. |
371 | It will also adjust the (x,y) coords so that the exits point at each other. |
369 | |
372 | |
370 | If something doesn't work as expected make sure you saved both maps |
373 | If something doesn't work as expected make sure you saved both maps |
371 | in a subdirectory of the crossfire map path (which you configured via |
374 | in a subdirectory of the deliantra map path (which you configured via |
372 | File->Preferences in the main window). |
375 | File->Preferences in the main window). |
373 | |
376 | |
374 | If the tile you edited with the connect tool contained a connectable |
377 | If the tile you edited with the connect tool contained a connectable |
375 | object, the currently configured connect value (set by the spin buttons in |
378 | object, the currently configured connect value (set by the spin buttons in |
376 | the main window) will be set on them. |
379 | the 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 |