rbgooey 0.0.3 → 0.0.4
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/lib/imageui.rb +1 -1
- data/lib/type.rb +5 -5
- metadata +11 -11
data/lib/imageui.rb
CHANGED
|
@@ -32,7 +32,7 @@ class ImageUi
|
|
|
32
32
|
end
|
|
33
33
|
#Add a image
|
|
34
34
|
def add image, x, y
|
|
35
|
-
image = Rubygame::Surface.
|
|
35
|
+
image = Rubygame::Surface.load("#{@dir}/#{image}")
|
|
36
36
|
@ui.image << image
|
|
37
37
|
@ui.name[@ui.status][0] << @ui.image.length - 1
|
|
38
38
|
@ui.name[@ui.status][3] << "image"
|
data/lib/type.rb
CHANGED
|
@@ -27,6 +27,7 @@ class Type
|
|
|
27
27
|
@lower = Lowercase.new(self)
|
|
28
28
|
@special = LowerSpecial.new(self)
|
|
29
29
|
@command = SpecialCommands.new(self)
|
|
30
|
+
@string = nil
|
|
30
31
|
end
|
|
31
32
|
#check the length of @ui.string
|
|
32
33
|
def length
|
|
@@ -34,7 +35,7 @@ class Type
|
|
|
34
35
|
end
|
|
35
36
|
#switch the state from false to true and vice versa
|
|
36
37
|
def switch
|
|
37
|
-
if @state ==
|
|
38
|
+
if @state == 3
|
|
38
39
|
@state = true
|
|
39
40
|
length()
|
|
40
41
|
else
|
|
@@ -78,10 +79,9 @@ class Type
|
|
|
78
79
|
end
|
|
79
80
|
#set up the position of where the typing will occur
|
|
80
81
|
def position x , y
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
end
|
|
82
|
+
@state = 3
|
|
83
|
+
@x = x
|
|
84
|
+
@y = y
|
|
85
85
|
end
|
|
86
86
|
#typing beings when state is true
|
|
87
87
|
def active ev
|
metadata
CHANGED
|
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: rbgooey
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 0.0.
|
|
7
|
-
date: 2008-
|
|
6
|
+
version: 0.0.4
|
|
7
|
+
date: 2008-06-13 00:00:00 -04:00
|
|
8
8
|
summary: GUI library for the Rubygame library
|
|
9
9
|
require_paths:
|
|
10
10
|
- - lib
|
|
@@ -30,20 +30,20 @@ authors:
|
|
|
30
30
|
- Han Dao
|
|
31
31
|
files:
|
|
32
32
|
- lib/check.rb
|
|
33
|
-
- lib/
|
|
34
|
-
- lib/
|
|
33
|
+
- lib/display.rb
|
|
34
|
+
- lib/files.rb
|
|
35
35
|
- lib/imagerender.rb
|
|
36
|
-
- lib/
|
|
37
|
-
- lib/text.rb
|
|
38
|
-
- lib/typelowercase.rb
|
|
36
|
+
- lib/imageui.rb
|
|
39
37
|
- lib/mouse.rb
|
|
38
|
+
- lib/rbgooey.rb
|
|
40
39
|
- lib/rectcollide.rb
|
|
41
|
-
- lib/typelowerspecial.rb
|
|
42
40
|
- lib/setup.rb
|
|
43
|
-
- lib/
|
|
41
|
+
- lib/text.rb
|
|
42
|
+
- lib/textrender.rb
|
|
43
|
+
- lib/type.rb
|
|
44
|
+
- lib/typelowercase.rb
|
|
45
|
+
- lib/typelowerspecial.rb
|
|
44
46
|
- lib/typespecialcommands.rb
|
|
45
|
-
- lib/display.rb
|
|
46
|
-
- lib/rbgooey.rb
|
|
47
47
|
- lib/uidata.rb
|
|
48
48
|
test_files: []
|
|
49
49
|
|