ifmapper 1.0.0 → 1.0.6

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