ifmapper 1.2.1 → 1.2.2

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 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.2.1'
5
+ spec.version = '1.2.2'
6
6
  spec.author = "Gonzalo Garramuno"
7
7
  spec.email = 'ggarra13@gmail.com'
8
8
  spec.homepage = 'http://www.rubyforge.org/projects/ifmapper/'
@@ -105,7 +105,7 @@ class FXMap < Map
105
105
  #
106
106
  def rename_section
107
107
  @sections[@section].properties(self)
108
- modified = true
108
+ self.modified = true
109
109
  end
110
110
 
111
111
  #
@@ -117,7 +117,7 @@ class FXMap < Map
117
117
  return if w.execute == 0
118
118
 
119
119
  delete_section_at(@section)
120
- modified = true
120
+ self.modified = true
121
121
  end
122
122
 
123
123
  #
@@ -910,9 +910,6 @@ class FXMap < Map
910
910
  def mousewheel_cb(sender, sel, event)
911
911
  case event.code
912
912
  when -120 # Hmm, there does not seem to be constants for these
913
- pos = @scrollwindow.position
914
- x = event.last_x
915
- y = event.last_y
916
913
  zoom_out
917
914
  # @scrollwindow.setPosition( -x, -y )
918
915
  when 120 # Hmm, there does not seem to be constants for these
@@ -1476,7 +1473,7 @@ class FXMap < Map
1476
1473
  status MSG_COMPLEX_CONNECTION_STOPPED
1477
1474
  end
1478
1475
 
1479
- modified = true
1476
+ self.modified = true
1480
1477
  create_pathmap
1481
1478
  draw
1482
1479
  end
@@ -1508,7 +1505,7 @@ class FXMap < Map
1508
1505
  status MSG_COMPLEX_CONNECTION_STOPPED
1509
1506
  end
1510
1507
 
1511
- modified = true
1508
+ self.modified = true
1512
1509
  create_pathmap
1513
1510
  draw
1514
1511
  end
@@ -198,7 +198,7 @@ class FXMapperSettings < Hash
198
198
 
199
199
  begin
200
200
  require "IFMapper/locales/#{language}/Messages.rb"
201
- rescue LoadError => e
201
+ rescue LoadError
202
202
  $stderr.puts "Language '#{language}' was not found. Using English."
203
203
  require "IFMapper/locales/en/Messages.rb"
204
204
  end
@@ -48,7 +48,7 @@ require 'IFMapper/FXWarningBox'
48
48
  class FXMapperWindow < FXMainWindow
49
49
 
50
50
  PROGRAM_NAME = "Interactive Fiction Mapper"
51
- VERSION = '1.2.1'
51
+ VERSION = '1.2.2'
52
52
  AUTHOR = "Gonzalo Garramuno"
53
53
 
54
54
  @@copy_buffer = nil
@@ -1553,7 +1553,6 @@ class FXMapperWindow < FXMainWindow
1553
1553
  end
1554
1554
  }
1555
1555
  @section.connect(SEL_UPDATE) { |s,m,e|
1556
- v = s.text.to_i
1557
1556
  map = current_map
1558
1557
  update_section if map
1559
1558
  }
@@ -12,9 +12,9 @@ class FXRoom < Room
12
12
  @@win = nil
13
13
 
14
14
  def copy(b)
15
- xx = b.xx
16
- yy = b.yy
17
- selected = b.selected
15
+ self.xx = b.xx
16
+ self.yy = b.yy
17
+ self.selected = b.selected
18
18
  super b
19
19
  end
20
20
 
@@ -151,9 +151,9 @@ class FXRoomDialogBox < FXDialogBox
151
151
  FRAME_RAISED|FRAME_THICK|LAYOUT_RIGHT|LAYOUT_CENTER_Y)
152
152
 
153
153
  # Cancel
154
- cmd = FXButton.new(buttons, BUTTON_CANCEL, nil, self,
155
- FXDialogBox::ID_CANCEL,
156
- FRAME_RAISED|FRAME_THICK|LAYOUT_RIGHT|LAYOUT_CENTER_Y)
154
+ FXButton.new(buttons, BUTTON_CANCEL, nil, self,
155
+ FXDialogBox::ID_CANCEL,
156
+ FRAME_RAISED|FRAME_THICK|LAYOUT_RIGHT|LAYOUT_CENTER_Y)
157
157
  else
158
158
  @name.connect(SEL_CHANGED) { copy_to() }
159
159
  @objects.connect(SEL_CHANGED) { copy_to()}
@@ -36,9 +36,9 @@ class FXWarningBox < FXDialogBox
36
36
  LAYOUT_SIDE_BOTTOM|FRAME_NONE|
37
37
  LAYOUT_FILL_X|PACK_UNIFORM_WIDTH)
38
38
  # Accept
39
- yes = FXButton.new(buttons, "&Yes", nil, self, FXDialogBox::ID_ACCEPT,
40
- FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|
41
- LAYOUT_RIGHT|LAYOUT_CENTER_Y)
39
+ FXButton.new(buttons, "&Yes", nil, self, FXDialogBox::ID_ACCEPT,
40
+ FRAME_RAISED|FRAME_THICK|LAYOUT_FILL_X|
41
+ LAYOUT_RIGHT|LAYOUT_CENTER_Y)
42
42
 
43
43
  # Cancel
44
44
  no = FXButton.new(buttons, "&No", nil, self, FXDialogBox::ID_CANCEL,
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: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 1
10
- version: 1.2.1
9
+ - 2
10
+ version: 1.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gonzalo Garramuno