minigl 2.1.0 → 2.1.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 +4 -4
- data/README.md +2 -4
- data/lib/minigl/forms.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 21fdeb1f68b17c20f28e8345c9b1a5db961e04554699f9a5dc175c2f4f5f7bb0
|
|
4
|
+
data.tar.gz: 65bb71085c732da8b3188a6659036a47bcd5e86ce0d05e455cb539c6a01ef282
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7fbb1f9834e57746593e019a758313cd1a7e8d6029c35d5aa6b47def648097300e54d6230f084e30e69381da41278b9fe29edff7f1570cf81a5f7208356be39
|
|
7
|
+
data.tar.gz: 9176e9708fa07145843149419468427de83a0dea7d08952bf572c09991dbb82006459113fec68b87a2e35db8d8c636b23775ecc78a32fa21eb18435d37f1df2b
|
data/README.md
CHANGED
|
@@ -29,8 +29,6 @@ After installing the Gosu dependencies, you can just `gem install minigl`.
|
|
|
29
29
|
* The [wiki](https://github.com/victords/minigl/wiki) is a work in progress with tutorials and examples.
|
|
30
30
|
* Test package and examples aren't complete!
|
|
31
31
|
|
|
32
|
-
## Version 2.1.
|
|
32
|
+
## Version 2.1.1
|
|
33
33
|
|
|
34
|
-
*
|
|
35
|
-
* Added the `retro`, `scale_x` and `scale_y` options to the constructors of all form controls.
|
|
36
|
-
* Added color options to the `draw` methods of all form controls.
|
|
34
|
+
* Fixed the `TextField`'s selection when scaled.
|
data/lib/minigl/forms.rb
CHANGED
|
@@ -772,8 +772,8 @@ module MiniGL
|
|
|
772
772
|
selection_color = ((alpha / 2) << 24) | @selection_color
|
|
773
773
|
G.window.draw_quad @nodes[@anchor1], @text_y, selection_color,
|
|
774
774
|
@nodes[@anchor2] + 1, @text_y, selection_color,
|
|
775
|
-
@nodes[@anchor2] + 1, @text_y + @font.height, selection_color,
|
|
776
|
-
@nodes[@anchor1], @text_y + @font.height, selection_color, z_index
|
|
775
|
+
@nodes[@anchor2] + 1, @text_y + @font.height * @scale_y, selection_color,
|
|
776
|
+
@nodes[@anchor1], @text_y + @font.height * @scale_y, selection_color, z_index
|
|
777
777
|
end
|
|
778
778
|
|
|
779
779
|
if @cursor_visible
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: minigl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Victor David Santos
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-07-
|
|
11
|
+
date: 2018-07-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gosu
|