cyberarm_engine 0.7.0 → 0.7.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4a3c6c90047eb40c2b9ca055ebe48a03e4d7198c753b498fa5475aade057560
4
- data.tar.gz: 3feb7cf1e88075eef8cf2cebd5bc140d5dd0dfd446b3cde768c8b599594da1e1
3
+ metadata.gz: '0482c4bc8711db99340a9ece925032fb23322301aead26491ee98622a6b7c6bb'
4
+ data.tar.gz: eeeb993e54b51a443ad45bd9b341e6f4b3a1c2225cc80434503508a4869b838a
5
5
  SHA512:
6
- metadata.gz: c109e3788237c10b005f10288274e72073b8087a5d085e936aca3777049f534378232be4167daec1519edaf3c79428acdbdd91c7ff0d1b6ee6612c70df9bbc74
7
- data.tar.gz: 00fd0b7150948cb35cffc0f413370fda115c5593a4dcd7664ece0fd816f7d7d40dbc68d368d3154671d8d2400c7c5fd8055f3309627878f69f5082c17bb2df1c
6
+ metadata.gz: 9c3d1154cc5a15eaee40944f1693115d33fdbfbdc55a71333adba065ec2996f1f0d0a8c9c85a07868f2f3e00ec0c1c5f65667259bacf98060d07d39f46f7bf9e
7
+ data.tar.gz: 1c25facb14642fea3e371b810c34dc8eaa28c5df1794c8c4c75e5e0d61965d86564289b4fa8e6b2991f74c6bb4dac2b4389c2ea37c1634dc2b4137e469a55563
@@ -64,7 +64,7 @@ module CyberarmEngine
64
64
  end
65
65
 
66
66
  def recalculate
67
- @current_position = Vector.new(@margin_left, @margin_top)
67
+ @current_position = Vector.new(@margin_left + @padding_left, @margin_top + @padding_top)
68
68
  unless @visible
69
69
  @width = 0
70
70
  @height= 0
@@ -73,8 +73,8 @@ module CyberarmEngine
73
73
 
74
74
  layout
75
75
 
76
- @width = @max_width ? @max_width : (@children.map {|c| c.x + c.width + c.margin_right }.max || 0).round
77
- @height = @max_height ? @max_height : (@children.map {|c| c.y + c.height + c.margin_bottom}.max || 0).round
76
+ @width = @max_width ? @max_width : (@children.map {|c| c.x + c.outer_width }.max || 0).round
77
+ @height = @max_height ? @max_height : (@children.map {|c| c.y + c.outer_height}.max || 0).round
78
78
 
79
79
  # Move child to parent after positioning
80
80
  @children.each do |child|
@@ -56,6 +56,9 @@ module CyberarmEngine
56
56
  end
57
57
 
58
58
  def leave(sender)
59
+ unless @focus
60
+ super
61
+ end
59
62
  end
60
63
 
61
64
  def blur(sender)
@@ -1,4 +1,4 @@
1
1
  module CyberarmEngine
2
2
  NAME = "InDev"
3
- VERSION = "0.7.0"
3
+ VERSION = "0.7.1"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyberarm_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyberarm
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-16 00:00:00.000000000 Z
11
+ date: 2019-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gosu