ifmapper 1.1.6 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/IFMapper.gemspec +1 -1
- data/icons/compass.svg +172 -0
- data/lib/IFMapper/FXMapperWindow.rb +36 -2
- data/lib/IFMapper/FXSVGMapExporterOptionsDialogBox.rb +150 -0
- data/lib/IFMapper/FXSectionDialogBox.rb +11 -0
- data/lib/IFMapper/SVGMapExporter.rb +1091 -0
- data/lib/IFMapper/Section.rb +4 -1
- data/lib/IFMapper/locales/en/Messages.rb +20 -1
- metadata +108 -85
data/lib/IFMapper/Section.rb
CHANGED
@@ -7,6 +7,7 @@ class Section
|
|
7
7
|
attr_accessor :rooms
|
8
8
|
attr_accessor :connections
|
9
9
|
attr_accessor :name
|
10
|
+
attr_accessor :comments
|
10
11
|
|
11
12
|
class ConnectionError < StandardError; end
|
12
13
|
|
@@ -14,10 +15,11 @@ class Section
|
|
14
15
|
@rooms = v[0]
|
15
16
|
@connections = v[1]
|
16
17
|
@name = v[2]
|
18
|
+
@comments = v[3]
|
17
19
|
end
|
18
20
|
|
19
21
|
def marshal_dump
|
20
|
-
return [ @rooms, @connections, @name ]
|
22
|
+
return [ @rooms, @connections, @name, @comments ]
|
21
23
|
end
|
22
24
|
|
23
25
|
#
|
@@ -175,6 +177,7 @@ class Section
|
|
175
177
|
@rooms = []
|
176
178
|
@connections = []
|
177
179
|
@name = ''
|
180
|
+
@comments = ''
|
178
181
|
end
|
179
182
|
|
180
183
|
protected
|
@@ -315,7 +315,7 @@ MENU_SECTIONS = 'Sections'
|
|
315
315
|
MENU_NEXT_SECTION = "Next Section\t\tGo to Next Map Section."
|
316
316
|
MENU_PREVIOUS_SECTION = "Previous Section\t\tGo to Previous Map Section."
|
317
317
|
MENU_ADD_SECTION = "Add Section\t\tAdd a New Section to Map."
|
318
|
-
|
318
|
+
MENU_SECTION_INFO = "Current Section Information\t\tChange current section information."
|
319
319
|
MENU_DELETE_SECTION = "Delete Section\t\tDelete Current Section from Map."
|
320
320
|
|
321
321
|
MENU_FLIP_DIRECTION = "Flip Direction of Selection"
|
@@ -428,6 +428,25 @@ BOX_PDF_PAGE_SIZE_TEXT = [
|
|
428
428
|
]
|
429
429
|
BOX_PDF_LOCATIONNOS = 'Include Location Numbers'
|
430
430
|
|
431
|
+
MSG_SAVE_MAP_AS_SVG = 'Save Map as Structured Vector Graphic (SVG)'
|
432
|
+
FMT_SVG = 'Structured Vector Graphic (*.svg)'
|
433
|
+
MENU_EXPORT_SVG = "Export as &SVG...\t\tExport map as Structured Vector Graphics (SVG) document."
|
434
|
+
BOX_SVG_LOCATIONNOS = "Show Location Numbers"
|
435
|
+
BOX_SVG_INTERACTIVE = "Show Interactive Room Information"
|
436
|
+
BOX_SVG_CONNECTIONS = "Show Connections Between Locations"
|
437
|
+
BOX_SVG_ROOMNAMES = "Show Location Text"
|
438
|
+
BOX_SVG_SECTIONCOMMENTS= "Show Section Comments"
|
439
|
+
BOX_SVG_SPLITSECTIONS = "Export Sections To Separate SVG Files"
|
440
|
+
BOX_SVG_COMPASS_SIZE = "Compass Size: "
|
441
|
+
BOX_SVG_LINE_THICKNESS = "Line Thickness: "
|
442
|
+
BOX_SVG_COLOUR_SCHEME = "Colour Scheme: "
|
443
|
+
BOX_SVG_COLOUR_SCHEME_TEXT = [
|
444
|
+
'Red',
|
445
|
+
'Green',
|
446
|
+
'Yellow',
|
447
|
+
'Blue',
|
448
|
+
]
|
449
|
+
|
431
450
|
########### Buttons
|
432
451
|
BUTTON_YES = '&Yes'
|
433
452
|
BUTTON_NO = '&No'
|
metadata
CHANGED
@@ -1,69 +1,77 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ifmapper
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 1.2.0
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Gonzalo Garramuno
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2013-09-03 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: rake-compiler
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 0.7.1
|
22
|
-
type: :runtime
|
23
22
|
prerelease: false
|
24
|
-
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 1
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
- 7
|
32
|
+
- 1
|
29
33
|
version: 0.7.1
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: fxruby
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 1.6.0
|
38
34
|
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: fxruby
|
39
38
|
prerelease: false
|
40
|
-
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
40
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 15
|
45
|
+
segments:
|
46
|
+
- 1
|
47
|
+
- 6
|
48
|
+
- 0
|
45
49
|
version: 1.6.0
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: pdf-writer
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ! '>='
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 1.1.1
|
54
50
|
type: :runtime
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: pdf-writer
|
55
54
|
prerelease: false
|
56
|
-
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
56
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 17
|
61
|
+
segments:
|
62
|
+
- 1
|
63
|
+
- 1
|
64
|
+
- 1
|
61
65
|
version: 1.1.1
|
62
|
-
|
66
|
+
type: :runtime
|
67
|
+
version_requirements: *id003
|
68
|
+
description: "\tInteractive Fiction Mapping Tool.\n"
|
63
69
|
email: ggarra13@gmail.com
|
64
70
|
executables: []
|
71
|
+
|
65
72
|
extensions: []
|
66
|
-
|
73
|
+
|
74
|
+
extra_rdoc_files:
|
67
75
|
- HISTORY.txt
|
68
76
|
- TODO.txt
|
69
77
|
- docs/en/index.html
|
@@ -78,11 +86,11 @@ extra_rdoc_files:
|
|
78
86
|
- docs/images/IFMapper_main.gif
|
79
87
|
- docs/images/room_description.gif
|
80
88
|
- docs/images/room_small.gif
|
81
|
-
files:
|
89
|
+
files:
|
82
90
|
- IFMapper.rbw
|
83
91
|
- bin/IFMapper
|
84
92
|
- IFMapper.gemspec
|
85
|
-
- lib/IFMapper/
|
93
|
+
- lib/IFMapper/FXRoomDialogBox.rb
|
86
94
|
- lib/IFMapper/AStar.rb
|
87
95
|
- lib/IFMapper/Connection.rb
|
88
96
|
- lib/IFMapper/FXAboutDialogBox.rb
|
@@ -99,13 +107,14 @@ files:
|
|
99
107
|
- lib/IFMapper/FXMapperWindow.rb
|
100
108
|
- lib/IFMapper/FXPDFMapExporterOptionsDialogBox.rb
|
101
109
|
- lib/IFMapper/FXRoom.rb
|
102
|
-
- lib/IFMapper/FXRoomDialogBox.rb
|
103
110
|
- lib/IFMapper/FXRoomList.rb
|
104
111
|
- lib/IFMapper/FXSearchDialogBox.rb
|
105
112
|
- lib/IFMapper/FXSection.rb
|
106
113
|
- lib/IFMapper/FXSectionDialogBox.rb
|
107
114
|
- lib/IFMapper/FXSpline.rb
|
115
|
+
- lib/IFMapper/FXSVGMapExporterOptionsDialogBox.rb
|
108
116
|
- lib/IFMapper/FXWarningBox.rb
|
117
|
+
- lib/IFMapper/GUEReader.rb
|
109
118
|
- lib/IFMapper/IFMReader.rb
|
110
119
|
- lib/IFMapper/IFMWriter.rb
|
111
120
|
- lib/IFMapper/Inform7Writer.rb
|
@@ -119,6 +128,7 @@ files:
|
|
119
128
|
- lib/IFMapper/PDFMapExporter_prawn.rb
|
120
129
|
- lib/IFMapper/Room.rb
|
121
130
|
- lib/IFMapper/Section.rb
|
131
|
+
- lib/IFMapper/SVGMapExporter.rb
|
122
132
|
- lib/IFMapper/TADSReader.rb
|
123
133
|
- lib/IFMapper/TADSWriter.rb
|
124
134
|
- lib/IFMapper/TranscriptDialogBox.rb
|
@@ -134,11 +144,9 @@ files:
|
|
134
144
|
- maps/awaken.ifm
|
135
145
|
- maps/babel.ifm
|
136
146
|
- maps/bse.ifm
|
137
|
-
- maps/Bureaucracy.ifm
|
138
147
|
- maps/change.ifm
|
139
148
|
- maps/curses.ifm
|
140
|
-
- maps/
|
141
|
-
- maps/paperchase.ifm
|
149
|
+
- maps/curves.ifm
|
142
150
|
- maps/Planetfall.ifm
|
143
151
|
- maps/Plundered_Hearts.ifm
|
144
152
|
- maps/Ralph.ifm
|
@@ -147,6 +155,7 @@ files:
|
|
147
155
|
- maps/Sherlock.ifm
|
148
156
|
- maps/SoFar.ifm
|
149
157
|
- maps/space_st.ifm
|
158
|
+
- maps/Starcross.ifm
|
150
159
|
- maps/stationfall.ifm
|
151
160
|
- maps/Suspended.ifm
|
152
161
|
- maps/theatre.ifm
|
@@ -162,6 +171,7 @@ files:
|
|
162
171
|
- maps/Zork2.ifm
|
163
172
|
- maps/Zork3.ifm
|
164
173
|
- maps/Zork_Zero.ifm
|
174
|
+
- maps/Bureaucracy.ifm
|
165
175
|
- maps/edifice.ifm
|
166
176
|
- maps/frozen.ifm
|
167
177
|
- maps/glow.ifm
|
@@ -172,8 +182,8 @@ files:
|
|
172
182
|
- maps/Mercy.ifm
|
173
183
|
- maps/mindelec.ifm
|
174
184
|
- maps/minster.ifm
|
175
|
-
- maps/
|
176
|
-
- maps/
|
185
|
+
- maps/muse.ifm
|
186
|
+
- maps/paperchase.ifm
|
177
187
|
- maps/A New Life.map
|
178
188
|
- maps/AllRoads.map
|
179
189
|
- maps/AMFV.map
|
@@ -193,14 +203,16 @@ files:
|
|
193
203
|
- maps/Chronicler.map
|
194
204
|
- maps/CityOfSecrets.map
|
195
205
|
- maps/Condemned.map
|
196
|
-
- maps/
|
197
|
-
- maps/
|
198
|
-
- maps/
|
199
|
-
- maps/
|
200
|
-
- maps/
|
201
|
-
- maps/
|
202
|
-
- maps/
|
203
|
-
- maps/
|
206
|
+
- maps/DDIV.map
|
207
|
+
- maps/deadline.map
|
208
|
+
- maps/delusions.map
|
209
|
+
- maps/devours.map
|
210
|
+
- maps/distress.map
|
211
|
+
- maps/Divis_Mortis.map
|
212
|
+
- maps/djinni.map
|
213
|
+
- maps/dreamhold.map
|
214
|
+
- maps/drift3.map
|
215
|
+
- maps/Duel_in_the_Snow.map
|
204
216
|
- maps/Planetfall.map
|
205
217
|
- maps/Plundered_Hearts.map
|
206
218
|
- maps/pytho.map
|
@@ -212,7 +224,6 @@ files:
|
|
212
224
|
- maps/Seastalker.map
|
213
225
|
- maps/sherbet.map
|
214
226
|
- maps/simple.map
|
215
|
-
- maps/slouch.map
|
216
227
|
- maps/Spelunker's_Quest.map
|
217
228
|
- maps/splashdown.map
|
218
229
|
- maps/spring.map
|
@@ -223,7 +234,6 @@ files:
|
|
223
234
|
- maps/The_Lost_Sheep.map
|
224
235
|
- maps/trinity.map
|
225
236
|
- maps/Unforgotten.map
|
226
|
-
- maps/vespers.map
|
227
237
|
- maps/Warbler's Nest.map
|
228
238
|
- maps/wasp.map
|
229
239
|
- maps/Westminster_Abbey.map
|
@@ -232,17 +242,11 @@ files:
|
|
232
242
|
- maps/xtcontest.map
|
233
243
|
- maps/zdungeon.map
|
234
244
|
- maps/zerosum.map
|
235
|
-
- maps/DDIV.map
|
236
|
-
- maps/deadline.map
|
237
|
-
- maps/delusions.map
|
238
|
-
- maps/devours.map
|
239
|
-
- maps/distress.map
|
240
|
-
- maps/Divis_Mortis.map
|
241
|
-
- maps/djinni.map
|
242
|
-
- maps/dreamhold.map
|
243
|
-
- maps/drift3.map
|
244
|
-
- maps/Duel_in_the_Snow.map
|
245
245
|
- maps/eas.map
|
246
|
+
- maps/Janitor.map
|
247
|
+
- maps/pkgirl.map
|
248
|
+
- maps/slouch.map
|
249
|
+
- maps/vespers.map
|
246
250
|
- maps/eas2.map
|
247
251
|
- maps/eas3.map
|
248
252
|
- maps/Eruption.map
|
@@ -250,6 +254,7 @@ files:
|
|
250
254
|
- maps/Following_A_Star.map
|
251
255
|
- maps/gamlet.map
|
252
256
|
- maps/Gatoron.map
|
257
|
+
- maps/guilty_bastards.map
|
253
258
|
- maps/Heated.map
|
254
259
|
- maps/heist.map
|
255
260
|
- maps/heroes.map
|
@@ -257,13 +262,19 @@ files:
|
|
257
262
|
- maps/History Repeating.map
|
258
263
|
- maps/Hunter.map
|
259
264
|
- maps/inhumane.map
|
260
|
-
- maps/Janitor.map
|
261
265
|
- maps/Jigsaw.map
|
262
266
|
- maps/kaged.map
|
263
267
|
- maps/lurkinghorror.map
|
264
268
|
- maps/metamorphoses.map
|
265
|
-
- maps/guilty_bastards.map
|
266
269
|
- maps/mite.map
|
270
|
+
- maps/moonmist.map
|
271
|
+
- maps/muldoon_legacy.map
|
272
|
+
- maps/Ninjas_Fate.map
|
273
|
+
- maps/party.map
|
274
|
+
- maps/pawn.map
|
275
|
+
- maps/Pen_and_Paint.map
|
276
|
+
- maps/photograph.map
|
277
|
+
- icons/compass.svg
|
267
278
|
- icons/copy.png
|
268
279
|
- icons/cut.png
|
269
280
|
- icons/filenew.png
|
@@ -313,26 +324,38 @@ files:
|
|
313
324
|
- docs/images/room_small.gif
|
314
325
|
homepage: http://www.rubyforge.org/projects/ifmapper/
|
315
326
|
licenses: []
|
327
|
+
|
316
328
|
post_install_message:
|
317
329
|
rdoc_options: []
|
318
|
-
|
330
|
+
|
331
|
+
require_paths:
|
319
332
|
- lib
|
320
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
333
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
321
334
|
none: false
|
322
|
-
requirements:
|
323
|
-
- -
|
324
|
-
- !ruby/object:Gem::Version
|
335
|
+
requirements:
|
336
|
+
- - ">="
|
337
|
+
- !ruby/object:Gem::Version
|
338
|
+
hash: 55
|
339
|
+
segments:
|
340
|
+
- 1
|
341
|
+
- 8
|
342
|
+
- 0
|
325
343
|
version: 1.8.0
|
326
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
344
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
327
345
|
none: false
|
328
|
-
requirements:
|
329
|
-
- -
|
330
|
-
- !ruby/object:Gem::Version
|
331
|
-
|
346
|
+
requirements:
|
347
|
+
- - ">="
|
348
|
+
- !ruby/object:Gem::Version
|
349
|
+
hash: 3
|
350
|
+
segments:
|
351
|
+
- 0
|
352
|
+
version: "0"
|
332
353
|
requirements: []
|
354
|
+
|
333
355
|
rubyforge_project: ifmapper
|
334
|
-
rubygems_version: 1.8.
|
356
|
+
rubygems_version: 1.8.15
|
335
357
|
signing_key:
|
336
358
|
specification_version: 3
|
337
359
|
summary: Interactive Fiction Mapping Tool.
|
338
360
|
test_files: []
|
361
|
+
|