ifmapper 1.0.9 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.txt +2 -0
- data/IFMapper.gemspec +1 -1
- data/lib/IFMapper/FXMap.rb +23 -0
- data/lib/IFMapper/FXMapperWindow.rb +4 -9
- data/maps/The_Lost_Islands_of_Alabaz.map +0 -0
- metadata +5 -4
data/HISTORY.txt
CHANGED
data/IFMapper.gemspec
CHANGED
@@ -2,7 +2,7 @@ require "rubygems"
|
|
2
2
|
|
3
3
|
spec = Gem::Specification.new do |spec|
|
4
4
|
spec.name = "ifmapper"
|
5
|
-
spec.version = '1.0
|
5
|
+
spec.version = '1.1.0'
|
6
6
|
spec.author = "Gonzalo Garramuno"
|
7
7
|
spec.email = 'ggarra13@gmail.com'
|
8
8
|
spec.homepage = 'http://www.rubyforge.org/projects/ifmapper/'
|
data/lib/IFMapper/FXMap.rb
CHANGED
@@ -129,6 +129,20 @@ class FXMap < Map
|
|
129
129
|
@section = @sections.size - 1
|
130
130
|
end
|
131
131
|
|
132
|
+
#
|
133
|
+
# Select all connections and rooms
|
134
|
+
#
|
135
|
+
def select_all
|
136
|
+
sect = sections[section]
|
137
|
+
sect.rooms.each { |r|
|
138
|
+
r.selected = true
|
139
|
+
}
|
140
|
+
sect.connections.each { |c|
|
141
|
+
c.selected = true
|
142
|
+
}
|
143
|
+
draw
|
144
|
+
end
|
145
|
+
|
132
146
|
#
|
133
147
|
# A simple debugging function that will spit out the path map with a
|
134
148
|
# very simple ascii representation.
|
@@ -1683,6 +1697,15 @@ class FXMap < Map
|
|
1683
1697
|
when KEY_BackSpace, KEY_Delete
|
1684
1698
|
return navigation_warning if @navigation
|
1685
1699
|
delete_selected
|
1700
|
+
when KEY_a
|
1701
|
+
if event.state & ALTMASK != 0
|
1702
|
+
select_all
|
1703
|
+
end
|
1704
|
+
when KEY_n
|
1705
|
+
if event.state & ALTMASK != 0
|
1706
|
+
clear_selection
|
1707
|
+
draw
|
1708
|
+
end
|
1686
1709
|
when KEY_c
|
1687
1710
|
if event.state & CONTROLMASK != 0
|
1688
1711
|
FXMapperWindow::copy_selected(self)
|
@@ -46,7 +46,7 @@ require 'IFMapper/FXWarningBox'
|
|
46
46
|
class FXMapperWindow < FXMainWindow
|
47
47
|
|
48
48
|
PROGRAM_NAME = "Interactive Fiction Mapper"
|
49
|
-
VERSION = '1.0
|
49
|
+
VERSION = '1.1.0'
|
50
50
|
AUTHOR = "Gonzalo Garramuño"
|
51
51
|
|
52
52
|
@@copy_buffer = nil
|
@@ -894,6 +894,7 @@ class FXMapperWindow < FXMainWindow
|
|
894
894
|
map = current_map
|
895
895
|
return if not map
|
896
896
|
map.clear_selection
|
897
|
+
map.draw
|
897
898
|
end
|
898
899
|
|
899
900
|
#
|
@@ -902,14 +903,7 @@ class FXMapperWindow < FXMainWindow
|
|
902
903
|
def select_all_cb( sender, id, event )
|
903
904
|
map = current_map
|
904
905
|
return if not map
|
905
|
-
|
906
|
-
sect.rooms.each { |r|
|
907
|
-
r.selected = true
|
908
|
-
}
|
909
|
-
sect.connections.each { |c|
|
910
|
-
c.selected = true
|
911
|
-
}
|
912
|
-
map.draw
|
906
|
+
map.select_all
|
913
907
|
end
|
914
908
|
|
915
909
|
def roomlist(sender, sel, event)
|
@@ -1585,6 +1579,7 @@ class FXMapperWindow < FXMainWindow
|
|
1585
1579
|
|
1586
1580
|
@colors = nil
|
1587
1581
|
@mdimenu = nil
|
1582
|
+
@search = nil
|
1588
1583
|
|
1589
1584
|
create_widgets
|
1590
1585
|
|
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ifmapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 1.0.9
|
10
|
+
version: 1.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gonzalo Garramuno
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-23 00:00:00 -03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -256,6 +256,7 @@ files:
|
|
256
256
|
- maps/risorgimento.map
|
257
257
|
- maps/Tangle.map
|
258
258
|
- maps/The_Blind_House.map
|
259
|
+
- maps/The_Lost_Islands_of_Alabaz.map
|
259
260
|
- maps/The_Lost_Sheep.map
|
260
261
|
- maps/trinity.map
|
261
262
|
- maps/Unforgotten.map
|