ifmapper 1.0.0 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.txt +648 -627
- data/IFMapper.gemspec +29 -28
- data/IFMapper.rbw +31 -31
- data/TODO.txt +8 -7
- data/bin/IFMapper +31 -31
- data/docs/en/index.html +0 -0
- data/docs/en/start.html +3 -2
- data/docs/en/start.html~ +516 -0
- data/docs/es/index.html +0 -0
- data/docs/es/start.html +13 -14
- data/docs/es/start.html~ +1280 -0
- data/docs/images/IFMapper_main.gif +0 -0
- data/docs/images/automap.gif +0 -0
- data/docs/images/complex_connection.gif +0 -0
- data/docs/images/connection.gif +0 -0
- data/docs/images/connection_menu.gif +0 -0
- data/docs/images/room_description.gif +0 -0
- data/docs/images/room_small.gif +0 -0
- data/icons/copy.png +0 -0
- data/icons/cut.png +0 -0
- data/icons/filenew.png +0 -0
- data/icons/fileopen.png +0 -0
- data/icons/filesave.png +0 -0
- data/icons/filesaveas.png +0 -0
- data/icons/help.png +0 -0
- data/icons/kill.png +0 -0
- data/icons/nextpage.png +0 -0
- data/icons/paste.png +0 -0
- data/icons/prevpage.png +0 -0
- data/icons/printicon.png +0 -0
- data/icons/redo.png +0 -0
- data/icons/room_e.gif +0 -0
- data/icons/room_e.xpm +0 -0
- data/icons/room_n.gif +0 -0
- data/icons/room_n.xpm +0 -0
- data/icons/room_ne.gif +0 -0
- data/icons/room_ne.xpm +0 -0
- data/icons/room_nw.gif +0 -0
- data/icons/room_nw.xpm +0 -0
- data/icons/room_s.gif +0 -0
- data/icons/room_s.xpm +0 -0
- data/icons/room_se.gif +0 -0
- data/icons/room_se.xpm +0 -0
- data/icons/room_sw.gif +0 -0
- data/icons/room_sw.xpm +0 -0
- data/icons/room_w.gif +0 -0
- data/icons/room_w.xpm +0 -0
- data/icons/saveas.png +0 -0
- data/icons/undo.png +0 -0
- data/icons/winapp.png +0 -0
- data/icons/zoom.png +0 -0
- data/lib/IFMapper/AStar.rb +250 -250
- data/lib/IFMapper/Connection.rb +202 -202
- data/lib/IFMapper/FXAboutDialogBox.rb +32 -32
- data/lib/IFMapper/FXConnection.rb +364 -364
- data/lib/IFMapper/FXConnectionDialogBox.rb +124 -124
- data/lib/IFMapper/FXDCPostscript.rb +404 -404
- data/lib/IFMapper/FXDCPrint.rb +15 -15
- data/lib/IFMapper/FXItemList.rb +108 -0
- data/lib/IFMapper/FXMap.rb +2147 -2116
- data/lib/IFMapper/FXMapColorBox.rb +88 -88
- data/lib/IFMapper/FXMapDialogBox.rb +127 -127
- data/lib/IFMapper/FXMapFileDialog.rb +34 -34
- data/lib/IFMapper/FXMapperSettings.rb +206 -205
- data/lib/IFMapper/FXMapperWindow.rb +1592 -1571
- data/lib/IFMapper/FXPDFMapExporterOptionsDialogBox.rb +46 -0
- data/lib/IFMapper/FXRoom.rb +263 -263
- data/lib/IFMapper/FXRoomDialogBox.rb +159 -159
- data/lib/IFMapper/FXRoomList.rb +95 -95
- data/lib/IFMapper/FXSearchDialogBox.rb +51 -51
- data/lib/IFMapper/FXSection.rb +33 -33
- data/lib/IFMapper/FXSectionDialogBox.rb +38 -38
- data/lib/IFMapper/FXSpline.rb +52 -52
- data/lib/IFMapper/FXWarningBox.rb +51 -50
- data/lib/IFMapper/GUEReader.rb +445 -445
- data/lib/IFMapper/IFMReader.rb +584 -584
- data/lib/IFMapper/IFMWriter.rb +245 -227
- data/lib/IFMapper/Inform7Writer.rb +579 -573
- data/lib/IFMapper/InformReader.rb +478 -478
- data/lib/IFMapper/InformWriter.rb +364 -359
- data/lib/IFMapper/Map.rb +202 -200
- data/lib/IFMapper/MapPrinting.rb +162 -162
- data/lib/IFMapper/MapReader.rb +900 -900
- data/lib/IFMapper/PDFMapExporter.rb +526 -483
- data/lib/IFMapper/Room.rb +153 -151
- data/lib/IFMapper/Section.rb +234 -234
- data/lib/IFMapper/TADSReader.rb +474 -471
- data/lib/IFMapper/TADSWriter.rb +375 -370
- data/lib/IFMapper/TranscriptDialogBox.rb +0 -0
- data/lib/IFMapper/TranscriptReader.rb +1361 -1359
- data/lib/IFMapper/locales/en/Messages.rb +446 -435
- data/lib/IFMapper/locales/es/Messages.rb +451 -440
- data/lib/IFMapper/locales/es/Messages_iso-8859-1.rb +455 -440
- data/lib/IFMapper/locales/es/runme.sh +3 -3
- data/maps/A New Life.map b/data/maps/A New → Life.map +0 -0
- data/maps/AMFV.map +0 -0
- data/maps/AllRoads.map +0 -0
- data/maps/Aotearoa.map +0 -0
- data/maps/Bronze.map +0 -0
- data/maps/Bureaucracy.ifm +0 -0
- data/maps/Bureaucracy.map +0 -0
- data/maps/CityOfSecrets.map +0 -0
- data/maps/DDIV.map +0 -0
- data/maps/Following_A_Star.map +0 -0
- data/maps/Heated.map +0 -0
- data/maps/Heroine.map +0 -0
- data/maps/History Repeating.map b/data/maps/History → Repeating.map +0 -0
- data/maps/Hollywood_Hijinx.ifm +0 -0
- data/maps/Janitor.map +0 -0
- data/maps/Jigsaw.ifm +0 -0
- data/maps/Jigsaw.map +0 -0
- data/maps/LGOP.ifm +0 -0
- data/maps/Mercy.ifm +0 -0
- data/maps/Ninjas_Fate.map +0 -0
- data/maps/Pen_and_Paint.map +0 -0
- data/maps/Planetfall.ifm +0 -0
- data/maps/Planetfall.map +0 -0
- data/maps/Plundered_Hearts.ifm +0 -0
- data/maps/QuietEvening.map +0 -0
- data/maps/Ralph.ifm +0 -0
- data/maps/Reliques_of_Tolti_Alph.map +0 -0
- data/maps/Revolution.map +0 -0
- data/maps/Robots_of_Dawn.ifm +0 -0
- data/maps/SavoirFare.map +0 -0
- data/maps/Seastalker.ifm +0 -0
- data/maps/Seastalker.map +0 -0
- data/maps/Sherlock.ifm +0 -0
- data/maps/SoFar.ifm +0 -0
- data/maps/Starcross.ifm +0 -0
- data/maps/Suspended.ifm +0 -0
- data/maps/Tangle.map +0 -0
- data/maps/The_Lost_Sheep.map +0 -0
- data/maps/Unforgotten.map +0 -0
- data/maps/Warbler's Nest.map +0 -0
- data/maps/Warbler's_Nest.map +0 -0
- data/maps/Westminster_Abbey.map +0 -0
- data/maps/WinterWonderland.map +0 -0
- data/maps/Wishbringer.ifm +0 -0
- data/maps/Wishbringer2.ifm +0 -0
- data/maps/Zork1.ifm +0 -0
- data/maps/Zork2.ifm +0 -0
- data/maps/Zork3.ifm +0 -0
- data/maps/Zork_Zero.ifm +0 -0
- data/maps/anchor.ifm +0 -0
- data/maps/anchor.map +0 -0
- data/maps/atrox.ifm +0 -0
- data/maps/awaken.ifm +0 -0
- data/maps/babel.ifm +0 -0
- data/maps/balances.map +0 -0
- data/maps/ballerina.map +0 -0
- data/maps/bear.map +0 -0
- data/maps/bluechairs.map +0 -0
- data/maps/break_in.map +0 -0
- data/maps/bse.ifm +0 -0
- data/maps/building.map +0 -0
- data/maps/change.ifm +0 -0
- data/maps/christminster.map +0 -0
- data/maps/curses.ifm +0 -0
- data/maps/curves.ifm +0 -0
- data/maps/deadline.map +0 -0
- data/maps/delusions.map +0 -0
- data/maps/devours.map +0 -0
- data/maps/distress.map +0 -0
- data/maps/djinni.map +0 -0
- data/maps/dreamhold.map +0 -0
- data/maps/drift3.map +0 -0
- data/maps/eas.map +0 -0
- data/maps/eas2.map +0 -0
- data/maps/eas3.map +0 -0
- data/maps/edifice.ifm +0 -0
- data/maps/fallacy.map +0 -0
- data/maps/frozen.ifm +0 -0
- data/maps/gamlet.map +0 -0
- data/maps/glow.ifm +0 -0
- data/maps/guilty_bastards.map +0 -0
- data/maps/heist.map +0 -0
- data/maps/heroes.map +0 -0
- data/maps/inhumane.map +0 -0
- data/maps/kaged.map +0 -0
- data/maps/library.ifm +0 -0
- data/maps/lurkinghorror.map +0 -0
- data/maps/metamorphoses.map +0 -0
- data/maps/mindelec.ifm +0 -0
- data/maps/minster.ifm +0 -0
- data/maps/mite.map +0 -0
- data/maps/moonmist.map +0 -0
- data/maps/muldoon_legacy.map +0 -0
- data/maps/muse.ifm +0 -0
- data/maps/paperchase.ifm +0 -0
- data/maps/party.map +0 -0
- data/maps/pawn.map +0 -0
- data/maps/photograph.map +0 -0
- data/maps/pkgirl.map +0 -0
- data/maps/pytho.map +0 -0
- data/maps/risorgimento.map +0 -0
- data/maps/sherbet.map +0 -0
- data/maps/simple.map +0 -0
- data/maps/slouch.map +0 -0
- data/maps/space_st.ifm +0 -0
- data/maps/splashdown.map +0 -0
- data/maps/spring.map +0 -0
- data/maps/squarecircle.map +0 -0
- data/maps/stationfall.ifm +0 -0
- data/maps/theatre.ifm +0 -0
- data/maps/toonesia.ifm +0 -0
- data/maps/tortoise.ifm +0 -0
- data/maps/trinity.map +0 -0
- data/maps/vespers.map +0 -0
- data/maps/vgame.ifm +0 -0
- data/maps/wasp.map +0 -0
- data/maps/weather.ifm +0 -0
- data/maps/windhall.ifm +0 -0
- data/maps/worlds.map +0 -0
- data/maps/xtcontest.map +0 -0
- data/maps/zdungeon.map +0 -0
- data/maps/zebulon.ifm +0 -0
- data/maps/zerosum.map +0 -0
- metadata +226 -183
@@ -1,435 +1,446 @@
|
|
1
|
-
################
|
2
|
-
TITLE = '#{PROGRAM_NAME} v#{VERSION} - Written by #{AUTHOR}'
|
3
|
-
|
4
|
-
################ Errors
|
5
|
-
ERR_NO_YAML =<<'EOF'
|
6
|
-
EOF
|
7
|
-
ERR_COULD_NOT_SAVE = 'Could not save'
|
8
|
-
ERR_COULD_NOT_LOAD = 'Could not load'
|
9
|
-
ERR_NO_ICON = 'Could not load icon: '
|
10
|
-
ERR_NO_PRINTING = <<'EOF'
|
11
|
-
Sorry, but printing is not yet implemented
|
12
|
-
in this version.
|
13
|
-
EOF
|
14
|
-
ERR_NO_FREE_ROOM = 'Sorry. No free room in map to paste the nodes.'
|
15
|
-
ERR_NO_MATCHES = 'No matches for regex'
|
16
|
-
ERR_CANNOT_AUTOMAP = 'Cannot automap.'
|
17
|
-
ERR_READ_ONLY_MAP = "Map is in Read Only Mode. Go to Map Information to change this."
|
18
|
-
ERR_CANNOT_MOVE_SELECTION = 'Cannot move selection'
|
19
|
-
ERR_CANNOT_OPEN_TRANSCRIPT = 'Cannot open transcript'
|
20
|
-
ERR_PARSE_TRANSCRIPT = "Internal error parsing transcript\nPlease report as a bug"
|
21
|
-
ERR_COULD_NOT_OPEN_WEB_BROWSER = 'Could not open any web browser'
|
22
|
-
ERR_PATH_FOR_CONNECTION = 'Path for connection'
|
23
|
-
ERR_IS_BLOCKED = 'is blocked'
|
24
|
-
|
25
|
-
################ Messages
|
26
|
-
MSG_LOAD_MAP = 'Load New Map'
|
27
|
-
MSG_SAVING = 'Saving'
|
28
|
-
MSG_SAVED = 'Saved'
|
29
|
-
MSG_LOADING = 'Loading'
|
30
|
-
MSG_LOADED = 'Loaded'
|
31
|
-
MSG_EMPTY_MAP = 'Empty Map'
|
32
|
-
MSG_PRINT_MAP = 'Print Map'
|
33
|
-
MSG_PRINT_LOC = 'Print Locations'
|
34
|
-
MSG_MATCHES = 'matches'
|
35
|
-
MSG_MATCHES_IN_MAP = 'matches in map'
|
36
|
-
MSG_MATCHES_IN_SECTION = 'in section'
|
37
|
-
MSG_FIND_LOCATION_IN_MAP = 'Find Location in Map'
|
38
|
-
MSG_FIND_LOCATION_IN_SECTION = 'Find Location in this Section'
|
39
|
-
MSG_FIND_OBJECT_IN_MAP = 'Find Object in Map'
|
40
|
-
MSG_FIND_TASK_IN_MAP = 'Find Task in Map'
|
41
|
-
MSG_FIND_DESCRIPTION_IN_MAP = 'Find in Description in Map'
|
42
|
-
MSG_ABOUT_SOFTWARE = 'About This Software...'
|
43
|
-
MSG_ABOUT = <<'EOF'
|
44
|
-
#{PROGRAM_NAME} - #{VERSION}
|
45
|
-
Written by #{AUTHOR}.
|
46
|
-
|
47
|
-
FXRuby Version: #{Fox::fxrubyversion}
|
48
|
-
|
49
|
-
A WYSIWYG mapping tool for interactive fiction.
|
50
|
-
|
51
|
-
ggarra@advancedsl.com.ar
|
52
|
-
EOF
|
53
|
-
|
54
|
-
MSG_SAVE_MAP = 'Save Map'
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
Mouse
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
Use
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
Use
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
locations
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
You are
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
"
|
178
|
-
|
179
|
-
|
180
|
-
"
|
181
|
-
|
182
|
-
|
183
|
-
"
|
184
|
-
|
185
|
-
|
186
|
-
"
|
187
|
-
|
188
|
-
|
189
|
-
"
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
'
|
202
|
-
'
|
203
|
-
'
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
'
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
'
|
364
|
-
'
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
1
|
+
################
|
2
|
+
TITLE = '#{PROGRAM_NAME} v#{VERSION} - Written by #{AUTHOR}'
|
3
|
+
|
4
|
+
################ Errors
|
5
|
+
ERR_NO_YAML =<<'EOF'
|
6
|
+
EOF
|
7
|
+
ERR_COULD_NOT_SAVE = 'Could not save'
|
8
|
+
ERR_COULD_NOT_LOAD = 'Could not load'
|
9
|
+
ERR_NO_ICON = 'Could not load icon: '
|
10
|
+
ERR_NO_PRINTING = <<'EOF'
|
11
|
+
Sorry, but printing is not yet implemented
|
12
|
+
in this version.
|
13
|
+
EOF
|
14
|
+
ERR_NO_FREE_ROOM = 'Sorry. No free room in map to paste the nodes.'
|
15
|
+
ERR_NO_MATCHES = 'No matches for regex'
|
16
|
+
ERR_CANNOT_AUTOMAP = 'Cannot automap.'
|
17
|
+
ERR_READ_ONLY_MAP = "Map is in Read Only Mode. Go to Map Information to change this."
|
18
|
+
ERR_CANNOT_MOVE_SELECTION = 'Cannot move selection'
|
19
|
+
ERR_CANNOT_OPEN_TRANSCRIPT = 'Cannot open transcript'
|
20
|
+
ERR_PARSE_TRANSCRIPT = "Internal error parsing transcript\nPlease report as a bug"
|
21
|
+
ERR_COULD_NOT_OPEN_WEB_BROWSER = 'Could not open any web browser'
|
22
|
+
ERR_PATH_FOR_CONNECTION = 'Path for connection'
|
23
|
+
ERR_IS_BLOCKED = 'is blocked'
|
24
|
+
|
25
|
+
################ Messages
|
26
|
+
MSG_LOAD_MAP = 'Load New Map'
|
27
|
+
MSG_SAVING = 'Saving'
|
28
|
+
MSG_SAVED = 'Saved'
|
29
|
+
MSG_LOADING = 'Loading'
|
30
|
+
MSG_LOADED = 'Loaded'
|
31
|
+
MSG_EMPTY_MAP = 'Empty Map'
|
32
|
+
MSG_PRINT_MAP = 'Print Map'
|
33
|
+
MSG_PRINT_LOC = 'Print Locations'
|
34
|
+
MSG_MATCHES = 'matches'
|
35
|
+
MSG_MATCHES_IN_MAP = 'matches in map'
|
36
|
+
MSG_MATCHES_IN_SECTION = 'in section'
|
37
|
+
MSG_FIND_LOCATION_IN_MAP = 'Find Location in Map'
|
38
|
+
MSG_FIND_LOCATION_IN_SECTION = 'Find Location in this Section'
|
39
|
+
MSG_FIND_OBJECT_IN_MAP = 'Find Object in Map'
|
40
|
+
MSG_FIND_TASK_IN_MAP = 'Find Task in Map'
|
41
|
+
MSG_FIND_DESCRIPTION_IN_MAP = 'Find in Description in Map'
|
42
|
+
MSG_ABOUT_SOFTWARE = 'About This Software...'
|
43
|
+
MSG_ABOUT = <<'EOF'
|
44
|
+
#{PROGRAM_NAME} - #{VERSION}
|
45
|
+
Written by #{AUTHOR}.
|
46
|
+
|
47
|
+
FXRuby Version: #{Fox::fxrubyversion}
|
48
|
+
|
49
|
+
A WYSIWYG mapping tool for interactive fiction.
|
50
|
+
|
51
|
+
ggarra@advancedsl.com.ar
|
52
|
+
EOF
|
53
|
+
|
54
|
+
MSG_SAVE_MAP = 'Save Map'
|
55
|
+
MSG_WAS_MODIFIED = "was modified.\n"
|
56
|
+
MSG_SHOULD_I_SAVE_CHANGES = 'Should I save the changes?'
|
57
|
+
|
58
|
+
MSG_SAVE_MAP_AS_IFM = 'Save Map as IFM File'
|
59
|
+
FMT_IFM = 'IFM Map (*.ifm)'
|
60
|
+
|
61
|
+
MSG_SAVE_MAP_AS_INFORM = 'Save Map as Inform Files'
|
62
|
+
FMT_INFORM = 'Inform Source Code (*.inf,*.inform)'
|
63
|
+
|
64
|
+
MSG_SAVE_MAP_AS_TADS = 'Save Map as TADS Files'
|
65
|
+
FMT_TADS = 'TADS Source Code (*.t)'
|
66
|
+
|
67
|
+
MSG_SAVE_MAP_AS_PDF = 'Save Map as Acrobat PDF'
|
68
|
+
FMT_PDF = 'Acrobat PDF (*.pdf)'
|
69
|
+
|
70
|
+
MSG_HOTKEYS = <<'EOF'
|
71
|
+
|
72
|
+
LMB - Left Mouse Button
|
73
|
+
MMB - Middle Mouse Button
|
74
|
+
RMB - Right Mouse Button
|
75
|
+
|
76
|
+
Mouse controls
|
77
|
+
--------------
|
78
|
+
|
79
|
+
Use LMB to add new locations or connections among rooms.
|
80
|
+
|
81
|
+
Click with LMB on any room or connection to select it.
|
82
|
+
|
83
|
+
Double click on rooms or connections to access their properties.
|
84
|
+
|
85
|
+
Click several times on an existing connecion to establish a one-way
|
86
|
+
connection.
|
87
|
+
|
88
|
+
Drag with MMB or ALT + LMB to scroll around the page.
|
89
|
+
|
90
|
+
Use mousewheel to zoom in and out.
|
91
|
+
|
92
|
+
Use RMB after selecting a connection to bring a menu to allow you
|
93
|
+
to flip its direction or to attach it to some other exit in one
|
94
|
+
of the rooms.
|
95
|
+
|
96
|
+
Keyboard controls
|
97
|
+
-----------------
|
98
|
+
|
99
|
+
Use 'x' to start a new complex connection (ie. a connection across
|
100
|
+
rooms that are not neighbors), then click on each exit of each room.
|
101
|
+
|
102
|
+
Use 'Delete' or 'Backspace' to remove any selected connection or room.
|
103
|
+
|
104
|
+
Use arrow keys or numeric keypad to move selected rooms around
|
105
|
+
the page, one unit at a time.
|
106
|
+
|
107
|
+
Use CTRL + LMB when adding a connection to create a dead-end
|
108
|
+
connection (one that loops onto itself)
|
109
|
+
|
110
|
+
EOF
|
111
|
+
|
112
|
+
MSG_LOAD_TRANSCRIPT = 'Load Transcript'
|
113
|
+
MSG_NEW_LOCATION = 'New Location'
|
114
|
+
MSG_OPENING_WEB_PAGE = 'Opening web page'
|
115
|
+
|
116
|
+
TRANSCRIPT_EXPLANATION_TEXT = [
|
117
|
+
"Classic Mode expects a short name description for all
|
118
|
+
locations, where all words of 5 or more characters to are
|
119
|
+
capitalized and where there is no period.
|
120
|
+
Commands always begin with a > prompt.",
|
121
|
+
"Capitalized Mode expects a short name description for all
|
122
|
+
locations, where only the first word needs to be capitalized
|
123
|
+
and there is no period.
|
124
|
+
Commands always begin with a > prompt.",
|
125
|
+
"Moonmist mode describes locations in parenthesis, with 'You
|
126
|
+
are...' prefixed and a period at the end, inside the parenthesis.
|
127
|
+
Commands always begin with a > prompt.",
|
128
|
+
"Witness mode expects locations described as normal prose, using
|
129
|
+
'You are...' as an introductory paragraph. When in brief mode,
|
130
|
+
locations are expected to be in parenthesis.
|
131
|
+
Commands always begin with a > prompt.",
|
132
|
+
"ADRIFT mode expects locations to be like in Classic Mode (short
|
133
|
+
names where all words of 5 or more characters are capitalized).
|
134
|
+
However, commands do not begin with any type of prompt but start
|
135
|
+
with a lowercase word without any margin.",
|
136
|
+
]
|
137
|
+
|
138
|
+
|
139
|
+
TRANSCRIPT_LOCATION_TEXT = [
|
140
|
+
"
|
141
|
+
> look
|
142
|
+
West of House
|
143
|
+
You are standing in an open field west of a white house, with a boarded
|
144
|
+
front door.
|
145
|
+
",
|
146
|
+
"
|
147
|
+
> look
|
148
|
+
Women's change room
|
149
|
+
Your heels click loudly on the tiles, echoing down the banks of lockers
|
150
|
+
that line the sides of the room.
|
151
|
+
",
|
152
|
+
"
|
153
|
+
> look
|
154
|
+
(You are now in the driveway.)
|
155
|
+
(You're sitting in the sports car.)
|
156
|
+
You are by the front gate of the Tresyllian Castle. You can hear the ocean
|
157
|
+
beating urgently against the rocks far below.
|
158
|
+
",
|
159
|
+
"
|
160
|
+
> look
|
161
|
+
You are now in the driveway entrance.
|
162
|
+
You are standing at the foot of the driveway, the entrance to the
|
163
|
+
Linder property. The entire lot is screened from the street and the
|
164
|
+
neighbors by a wooden fence, except on the east side, which fronts on
|
165
|
+
dense bamboo woods.
|
166
|
+
",
|
167
|
+
"
|
168
|
+
look
|
169
|
+
Front of Mall
|
170
|
+
Although four-wheeled vehicles do pass through, this autonomous
|
171
|
+
spot of pavement is too narrow a place for them to stall. It is just
|
172
|
+
right for bicycles and motorbikes such as yours.
|
173
|
+
",
|
174
|
+
]
|
175
|
+
|
176
|
+
TRANSCRIPT_LOCATION2_TEXT = [
|
177
|
+
"
|
178
|
+
West of House
|
179
|
+
",
|
180
|
+
"
|
181
|
+
Women's change room
|
182
|
+
",
|
183
|
+
"
|
184
|
+
(You are in the driveway.)
|
185
|
+
",
|
186
|
+
"
|
187
|
+
(driveway entrance)
|
188
|
+
",
|
189
|
+
"
|
190
|
+
Front of Mall
|
191
|
+
",
|
192
|
+
]
|
193
|
+
|
194
|
+
|
195
|
+
TRANSCRIPT_IDENTIFY_TYPE = [
|
196
|
+
'By Descriptions',
|
197
|
+
'By Short Name',
|
198
|
+
]
|
199
|
+
|
200
|
+
TRANSCRIPT_SHORTNAME_TYPE = [
|
201
|
+
'Classic',
|
202
|
+
'Capitalized',
|
203
|
+
'Moonmist',
|
204
|
+
'Witness',
|
205
|
+
'ADRIFT',
|
206
|
+
]
|
207
|
+
|
208
|
+
############ Window Titles
|
209
|
+
TITLE_READ_ONLY = '[Read Only]'
|
210
|
+
TITLE_AUTOMAP = '[Automap]'
|
211
|
+
TITLE_ZOOM = 'Zoom:'
|
212
|
+
TITLE_SECTION = 'Section'
|
213
|
+
TITLE_OF = 'of'
|
214
|
+
|
215
|
+
|
216
|
+
############ Extensions
|
217
|
+
EXT_TRANSCRIPT = 'Transcript File (*.log,*.scr,*.txt)'
|
218
|
+
EXT_ALL_FILES = 'All Files (*)'
|
219
|
+
EXT_MAP_FILES = 'Archivos de Mapas'
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
############ Status messages
|
224
|
+
MSG_COMPLEX_CONNECTION = 'Click on first room exit in complex connection.'
|
225
|
+
MSG_COMPLEX_CONNECTION_OTHER_EXIT = 'Click on other room exit in complex connection.'
|
226
|
+
MSG_COMPLEX_CONNECTION_STOPPED = 'Complex connection interrupted.'
|
227
|
+
MSG_COMPLEX_CONNECTION_DONE = 'Complex connection done.'
|
228
|
+
|
229
|
+
MSG_CLICK_TO_SELECT_AND_MOVE = 'Click to select and move. Double click to edit.'
|
230
|
+
MSG_CLICK_CHANGE_DIR = 'Click to change direction of connection.'
|
231
|
+
MSG_CLICK_CREATE_ROOM = 'Click to create new room.'
|
232
|
+
MSG_CLICK_CREATE_LINK = 'Click to create new connection.'
|
233
|
+
|
234
|
+
############ Warnings
|
235
|
+
WARN_DELETE_SECTION = 'Are you sure you want to delete this section?'
|
236
|
+
WARN_OVERWRITE_MAP = 'already exists. Are you sure you want to overwrite it?'
|
237
|
+
WARN_MAP_SMALL = "When changing map size,\nsome rooms will be left outside of map.\nThese rooms will be deleted.\nAre you sure you want to do this?"
|
238
|
+
|
239
|
+
############ Menus
|
240
|
+
MENU_FILE = "&File"
|
241
|
+
MENU_NEW = "&New...\tCtl-N\tCreate new document."
|
242
|
+
MENU_OPEN = "&Open...\tCtl-O\tOpen document file."
|
243
|
+
MENU_SAVE = "&Save\tCtl-S\tSave document."
|
244
|
+
MENU_SAVE_AS = "Save &As...\t\tSave document to another file."
|
245
|
+
|
246
|
+
MENU_EXPORT = 'Export'
|
247
|
+
MENU_EXPORT_PDF = "&Export as PDF...\t\tExport map as Acrobat PDF document."
|
248
|
+
MENU_EXPORT_IFM = "&Export as IFM...\t\tExport map as an IFM map."
|
249
|
+
MENU_EXPORT_INFORM = "&Export as Inform Source...\t\tExport map as an Inform source code file."
|
250
|
+
MENU_EXPORT_TADS = "&Export as TADS3 Source...\t\tExport map as a TADS3 source code file."
|
251
|
+
|
252
|
+
MENU_PRINT = 'Print'
|
253
|
+
MENU_PRINT_MAP = "&Map...\t\tPrint map (as graph)."
|
254
|
+
MENU_PRINT_LOCATIONS = "&Locations...\t\tPrint map locations as text list."
|
255
|
+
|
256
|
+
MENU_QUIT = "&Quit\tCtl-Q\tQuit the application."
|
257
|
+
|
258
|
+
|
259
|
+
MENU_EDIT = '&Edit'
|
260
|
+
MENU_COPY = "&Copy\tCtl-C\tCopy Location Data"
|
261
|
+
MENU_CUT = "Cu&t\tCtl-X\tCut Location"
|
262
|
+
MENU_PASTE = "&Paste\tCtl-V\tPaste Location Data"
|
263
|
+
|
264
|
+
MENU_MAP = '&Map'
|
265
|
+
MENU_SELECT = 'Select'
|
266
|
+
MENU_SELECT_ALL = "&All Locations\tAlt-A\tSelect all locations in section"
|
267
|
+
MENU_SELECT_NONE = "&None\tAlt-N\tClear selection in section."
|
268
|
+
|
269
|
+
MENU_SEARCH = 'Search'
|
270
|
+
MENU_SEARCH_MAP = "&Location in Map\tCtl-F\tFind a Location Name in Map"
|
271
|
+
MENU_SEARCH_SECTION = "Location in &Section\tAlt-F\tFind a Location Name in Current Section"
|
272
|
+
MENU_SEARCH_OBJECT = "&Object in Map\tAlt-O\tFind Location with an Object in the Map"
|
273
|
+
MENU_SEARCH_TASK = "&Task in Map\tAlt-T\tFind Location with a Task in the Map"
|
274
|
+
MENU_SEARCH_DESCRIPTION = "&Keyword in Descriptions\tAlt-D\tFind Location with Description Keyword in the Map"
|
275
|
+
|
276
|
+
MENU_COMPLEX_CONNECTION = "Comple&x Connection\tx\tCreate a complex connection."
|
277
|
+
MENU_DELETE = "Delete\tDel\tDelete selected locations or connections."
|
278
|
+
|
279
|
+
MENU_MAP_INFO = "Map Information\t\tChange map information."
|
280
|
+
MENU_ROOM_LIST = "Room List\t\tList all rooms in map."
|
281
|
+
MENU_ITEM_LIST = "Items List\t\tList all items in rooms of map."
|
282
|
+
|
283
|
+
|
284
|
+
MENU_AUTOMAP = 'Automap'
|
285
|
+
MENU_AUTOMAP_START = "&Start...\tCtl-T\tStart creating map from transcript file."
|
286
|
+
MENU_AUTOMAP_STOP = "S&top...\tCtl-P\tStop autocreating map."
|
287
|
+
MENU_AUTOMAP_PROPERTIES = "&Properties...\tCtl-H\tTranscript properties."
|
288
|
+
|
289
|
+
|
290
|
+
MENU_SECTIONS = 'Sections'
|
291
|
+
MENU_NEXT_SECTION = "Next Section\t\tGo to Next Map Section."
|
292
|
+
MENU_PREVIOUS_SECTION = "Previous Section\t\tGo to Previous Map Section."
|
293
|
+
MENU_ADD_SECTION = "Add Section\t\tAdd a New Section to Map."
|
294
|
+
MENU_RENAME_SECTION = "Rename Section\t\tRename Current Section."
|
295
|
+
MENU_DELETE_SECTION = "Delete Section\t\tDelete Current Section from Map."
|
296
|
+
|
297
|
+
|
298
|
+
MENU_ZOOM_PERCENT = '#{v}%\t\tZoom page to #{v}%.'
|
299
|
+
MENU_ZOOM = 'Zoom'
|
300
|
+
|
301
|
+
|
302
|
+
MENU_OPTIONS = 'Options'
|
303
|
+
MENU_EDIT_ON_CREATION = "Edit on Creation\t\tEdit locations on creation."
|
304
|
+
MENU_AUTOMATIC_CONNECTION = "Automatic Connection\t\tConnect new location to adjacent one."
|
305
|
+
MENU_CREATE_ON_CONNECTION = "Create on Connectionn\t\tCreate missing locations when creating a connection."
|
306
|
+
|
307
|
+
|
308
|
+
MENU_DISPLAY = 'Display'
|
309
|
+
MENU_USE_ROOM_CURSOR = "Use Room Cursor\t\tMake your mouse cursor a room showing the direction of exit."
|
310
|
+
MENU_PATHS_AS_CURVES = "Paths as Curves\t\tDraw complex paths as curves."
|
311
|
+
MENU_LOCATION_NUMBERS = "Location Numbers\t\tShow Location Numbers."
|
312
|
+
MENU_LOCATION_TASKS = "Location Tasks\t\tShow Tasks in Location Edit Box."
|
313
|
+
MENU_LOCATION_DESC = "Location Description\t\tShow Description in Location Edit Box."
|
314
|
+
MENU_BOXES = "Boxes\t\tDraw dashed box guidelines."
|
315
|
+
MENU_STRAIGHT_CONN = "Straight Connections\t\tDraw dashed N/S/E/W guidelines"
|
316
|
+
MENU_DIAGONAL_CONN = "Diagonal Connections\t\tDraw dashed NW/NE/SW/SE guidelines"
|
317
|
+
|
318
|
+
MENU_PREFS = 'Preferences'
|
319
|
+
MENU_LANGUAGE = "Language\t\tChange the default lenguage of the application."
|
320
|
+
MENU_COLORS = "Colors\t\tChange map colors."
|
321
|
+
MENU_SAVE_PREFS = "Save Preferences\t\tSave Preferences for Startup"
|
322
|
+
|
323
|
+
MENU_WINDOW = '&Window'
|
324
|
+
MENU_TILE_HORIZONTALLY = "Tile &Horizontally"
|
325
|
+
MENU_TILE_VERTICALLY = "Tile &Vertically"
|
326
|
+
MENU_CASCADE = 'C&ascade'
|
327
|
+
MENU_CLOSE = '&Close'
|
328
|
+
MENU_OTHERS = '&Others...'
|
329
|
+
|
330
|
+
MENU_HELP = '&Help'
|
331
|
+
MENU_HOTKEYS = '&Hotkeys'
|
332
|
+
MENU_INSTRUCTIONS = '&Instructions'
|
333
|
+
MENU_ABOUT = '&About'
|
334
|
+
MENU_RESOURCE = "&Resource Code"
|
335
|
+
|
336
|
+
############ Edit Boxes
|
337
|
+
|
338
|
+
BOX_INSTRUCTIONS = 'Instructions'
|
339
|
+
BOX_HOTKEYS = 'Hotkeys'
|
340
|
+
|
341
|
+
BOX_ROOM_INFORMATION = 'Room Information'
|
342
|
+
BOX_LOCATION = 'Location: '
|
343
|
+
BOX_OBJECTS = 'Objects: '
|
344
|
+
BOX_DARKNESS = 'Darkness'
|
345
|
+
BOX_TASKS = 'Tasks: '
|
346
|
+
BOX_DESCRIPTION = 'Description: '
|
347
|
+
|
348
|
+
BOX_CONNECTION_TYPE = 'Connection Type: '
|
349
|
+
BOX_CONNECTION_TYPE_TEXT = [
|
350
|
+
'Free',
|
351
|
+
'Door',
|
352
|
+
'Locked',
|
353
|
+
'Special',
|
354
|
+
]
|
355
|
+
BOX_DIRECTION = 'Direction: '
|
356
|
+
BOX_DIR_TEXT = [
|
357
|
+
'Both',
|
358
|
+
'One Way',
|
359
|
+
]
|
360
|
+
BOX_EXIT_A_TEXT = 'Exit A Text:'
|
361
|
+
BOX_EXIT_B_TEXT = 'Exit B Text:'
|
362
|
+
BOX_EXIT_TEXT = [
|
363
|
+
'None',
|
364
|
+
'Up',
|
365
|
+
'Down',
|
366
|
+
'In',
|
367
|
+
'Out',
|
368
|
+
]
|
369
|
+
|
370
|
+
BOX_LOCATIONS = 'Locations'
|
371
|
+
BOX_SECTION = 'Section'
|
372
|
+
BOX_NAME = 'Name'
|
373
|
+
|
374
|
+
BOX_MAP_INFORMATION = 'Map Information'
|
375
|
+
BOX_MAP_READ_ONLY = 'Read Only Map'
|
376
|
+
BOX_MAP_CREATOR = 'Creator:'
|
377
|
+
BOX_MAP_WIDTH = 'Map Width'
|
378
|
+
BOX_MAP_HEIGHT = 'Map Height'
|
379
|
+
|
380
|
+
BOX_TRANSCRIPT = 'Transcript Options'
|
381
|
+
BOX_TRANSCRIPT_STYLE = 'Transcript Style: '
|
382
|
+
BOX_TRANSCRIPT_IDENTIFY = 'Identify Locations: '
|
383
|
+
BOX_TRANSCRIPT_EXPLANATION = 'Explanation: '
|
384
|
+
BOX_TRANSCRIPT_VERBOSE = 'Sample Verbose Mode: '
|
385
|
+
BOX_TRANSCRIPT_BRIEF = 'Sample Brief Mode: '
|
386
|
+
|
387
|
+
BOX_COLOR = 'Color Preferences'
|
388
|
+
BOX_BG_COLOR = '&Background Color'
|
389
|
+
BOX_ARROWS_COLOR = '&Arrows Color'
|
390
|
+
BOX_BOX_BG_COLOR = '&Box Background Color'
|
391
|
+
BOX_BOX_DARK_COLOR = '&Box Darkness Color'
|
392
|
+
BOX_BOX_BORDER_COLOR = '&Box Border Color'
|
393
|
+
BOX_BOX_NUMBER_COLOR = '&Box Number Color'
|
394
|
+
|
395
|
+
BOX_PDF_PAGE_SIZE = 'Page Size: '
|
396
|
+
BOX_PDF_PAGE_SIZE_TEXT = [
|
397
|
+
'LETTER',
|
398
|
+
'A0',
|
399
|
+
'A4',
|
400
|
+
]
|
401
|
+
BOX_PDF_LOCATIONNOS = 'Include Location Numbers'
|
402
|
+
|
403
|
+
########### Buttons
|
404
|
+
BUTTON_YES = '&Yes'
|
405
|
+
BUTTON_NO = '&No'
|
406
|
+
BUTTON_CANCEL = '&Cancel'
|
407
|
+
BUTTON_ACCEPT = '&Accept'
|
408
|
+
|
409
|
+
########### Icons
|
410
|
+
ICON_NEW = "\tNew\tCreate new document."
|
411
|
+
ICON_OPEN = "\tOpen\tOpen document file."
|
412
|
+
ICON_SAVE = "\tSave\tSave document."
|
413
|
+
ICON_SAVE_AS = "\tSaveAs\tSave document to another file."
|
414
|
+
ICON_PRINT = "\tPrint Map\tPrint map (as graph)."
|
415
|
+
ICON_CUT = "\tCut"
|
416
|
+
ICON_COPY = "\tCopy"
|
417
|
+
ICON_PASTE = "\tPaste"
|
418
|
+
ICON_ZOOM_IN = "+\tZoom In"
|
419
|
+
ICON_ZOOM_OUT = "-\tZoom Out"
|
420
|
+
ICON_PREV_SECTION = "\tPrevious Section"
|
421
|
+
ICON_NEXT_SECTION = "\tNext Section"
|
422
|
+
|
423
|
+
|
424
|
+
########### Drawings
|
425
|
+
|
426
|
+
# Text near connection (to indicate other dir)
|
427
|
+
DRAW_EXIT_TEXT = [
|
428
|
+
'',
|
429
|
+
'U',
|
430
|
+
'D',
|
431
|
+
'I',
|
432
|
+
'O'
|
433
|
+
]
|
434
|
+
|
435
|
+
class Room
|
436
|
+
DIRECTIONS = [
|
437
|
+
'n',
|
438
|
+
'ne',
|
439
|
+
'e',
|
440
|
+
'se',
|
441
|
+
's',
|
442
|
+
'sw',
|
443
|
+
'w',
|
444
|
+
'nw',
|
445
|
+
]
|
446
|
+
end
|