rbgooey 0.0.4 → 0.0.5
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/CHANGES +22 -0
- data/GPL +674 -0
- data/README +37 -0
- data/lib/check.rb +13 -16
- data/lib/display.rb +15 -16
- data/lib/files.rb +32 -34
- data/lib/imagerender.rb +13 -15
- data/lib/imageui.rb +17 -15
- data/lib/mouse.rb +13 -15
- data/lib/rbgooey.rb +14 -16
- data/lib/rectcollide.rb +13 -15
- data/lib/setup.rb +14 -16
- data/lib/text.rb +13 -15
- data/lib/textrender.rb +15 -17
- data/lib/type.rb +3 -3
- data/lib/typelowercase.rb +14 -16
- data/lib/typelowerspecial.rb +15 -16
- data/lib/typespecialcommands.rb +14 -16
- data/lib/uidata.rb +3 -2
- metadata +43 -33
data/README
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
rbgooey:
|
|
2
|
+
|
|
3
|
+
Rbgooey is an alternative GUI library for Rubygame users. This is version 0.0.5.
|
|
4
|
+
|
|
5
|
+
Copyright (C) 2007-2008 Han Dao (wikipediankiba@gmail.com) and contributors
|
|
6
|
+
|
|
7
|
+
See website for more information on this library. You can access the web site at http://kibabase.libregamewiki.org/index.php/RbGooey
|
|
8
|
+
|
|
9
|
+
==INSTALLATION==
|
|
10
|
+
This instruction is made for Ubuntu GNU/Linux. Please make sure that you have rubygem installed before continuing.
|
|
11
|
+
|
|
12
|
+
1. Install rubygame:
|
|
13
|
+
1. sudo apt-get install libsdl1.2-all libsdl1.2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev
|
|
14
|
+
2. sudo gem install rubygame --platform=ruby
|
|
15
|
+
|
|
16
|
+
2. sudo gem install rbgooey-0.0.5
|
|
17
|
+
==Using the library==
|
|
18
|
+
|
|
19
|
+
Documentation is sparse right now as of this release. Check http://kibabase.libregamewiki.org/index.php/RbGooey for documentation update.
|
|
20
|
+
==LICENSE==
|
|
21
|
+
Rbgooey source code is copyright (C) 2008 Han Dao and contributors.
|
|
22
|
+
|
|
23
|
+
Rbgooey is free software; you can redistribute it and/or modify it
|
|
24
|
+
under the terms of the GNU General Public License as published by the
|
|
25
|
+
Free Software Foundation; either version 3 of the License, or (at your
|
|
26
|
+
option) any later version.
|
|
27
|
+
|
|
28
|
+
Rbgooey distributed in the hope that it will be useful, but
|
|
29
|
+
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
30
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
31
|
+
General Public License for more details.
|
|
32
|
+
|
|
33
|
+
You should have received a copy of the GNU General Public License
|
|
34
|
+
along with Rbgooey; if not, write to the Free Software Foundation,
|
|
35
|
+
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
36
|
+
|
|
37
|
+
|
data/lib/check.rb
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
#Copyright (C)
|
|
2
|
-
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
#
|
|
6
|
-
#
|
|
7
|
-
|
|
8
|
-
# This program is distributed in the hope that it will be useful,
|
|
9
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
# GNU General Public License for more details.
|
|
1
|
+
#Copyright (C) 2007-2008 Han Dao and contributors
|
|
2
|
+
#
|
|
3
|
+
#This program is free software: you can redistribute it and/or modify
|
|
4
|
+
#it under the terms of the GNU General Public License as published by
|
|
5
|
+
#the Free Software Foundation, either version 3 of the License, or
|
|
6
|
+
#(at your option) any later version.
|
|
12
7
|
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
#
|
|
8
|
+
#This program is distributed in the hope that it will be useful,
|
|
9
|
+
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+
#GNU General Public License for more details.
|
|
16
12
|
#
|
|
17
|
-
#You
|
|
13
|
+
#You should have received a copy of the GNU General Public License
|
|
14
|
+
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
18
15
|
|
|
19
16
|
#PROJECT: Rbgooey
|
|
20
17
|
#DESCRIPTION: A GUI library for the rubygame library.
|
|
@@ -45,4 +42,4 @@ class Check
|
|
|
45
42
|
return @n
|
|
46
43
|
end
|
|
47
44
|
end
|
|
48
|
-
end
|
|
45
|
+
end
|
data/lib/display.rb
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
#Copyright (C) 2007
|
|
2
|
-
|
|
3
|
-
# This program is free software; you can redistribute it and/or modify
|
|
4
|
-
# it under the terms of the GNU General Public License as published by
|
|
5
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
6
|
-
# (at your option) any later version.
|
|
7
|
-
|
|
8
|
-
# This program is distributed in the hope that it will be useful,
|
|
9
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
# GNU General Public License for more details.
|
|
1
|
+
#Copyright (C) 2007-2008 Han Dao and contributors
|
|
12
2
|
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
# Foundation,
|
|
3
|
+
#This program is free software: you can redistribute it and/or modify
|
|
4
|
+
#it under the terms of the GNU General Public License as published by
|
|
5
|
+
#the Free Software Foundation, either version 3 of the License, or
|
|
6
|
+
#(at your option) any later version.
|
|
16
7
|
#
|
|
17
|
-
#
|
|
8
|
+
#This program is distributed in the hope that it will be useful,
|
|
9
|
+
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+
#GNU General Public License for more details.
|
|
12
|
+
#
|
|
13
|
+
#You should have received a copy of the GNU General Public License
|
|
14
|
+
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
|
+
|
|
18
16
|
|
|
17
|
+
#You can contract the author at wikipediankiba@gmail.com
|
|
19
18
|
#PROJECT: Rbgooey
|
|
20
19
|
#DESCRIPTION: A GUI library for the rubygame library.
|
|
21
20
|
#FUNCTION OF THIS PART: This class contain basic display screen setting as well as colors.
|
|
@@ -50,4 +49,4 @@ class Display
|
|
|
50
49
|
end
|
|
51
50
|
screenmode()
|
|
52
51
|
end
|
|
53
|
-
end
|
|
52
|
+
end
|
data/lib/files.rb
CHANGED
|
@@ -1,34 +1,32 @@
|
|
|
1
|
-
#Copyright (C)
|
|
2
|
-
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
#
|
|
6
|
-
#
|
|
7
|
-
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
-
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
#
|
|
18
|
-
|
|
19
|
-
#
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
end
|
|
34
|
-
end
|
|
1
|
+
#Copyright (C) 2007-2008 Han Dao and contributors
|
|
2
|
+
#
|
|
3
|
+
#This program is free software: you can redistribute it and/or modify
|
|
4
|
+
#it under the terms of the GNU General Public License as published by
|
|
5
|
+
#the Free Software Foundation, either version 3 of the License, or
|
|
6
|
+
#(at your option) any later version.
|
|
7
|
+
#
|
|
8
|
+
#This program is distributed in the hope that it will be useful,
|
|
9
|
+
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+
#GNU General Public License for more details.
|
|
12
|
+
#
|
|
13
|
+
#You should have received a copy of the GNU General Public License
|
|
14
|
+
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
#PROJECT: rbgooey
|
|
18
|
+
#DESCRIPTION: A GUI library for the Rubygame library
|
|
19
|
+
#FUNCTION OF THIS PART: Yaml file loading system.
|
|
20
|
+
|
|
21
|
+
class FileSys
|
|
22
|
+
#Read the file
|
|
23
|
+
def yaml_read filename
|
|
24
|
+
yaml_string = File.read filename; YAML:: load yaml_string
|
|
25
|
+
end
|
|
26
|
+
#Write to the file
|
|
27
|
+
def yaml_write object , filename
|
|
28
|
+
File.open filename , 'w' do |f|
|
|
29
|
+
f.write(object.to_yaml)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
data/lib/imagerender.rb
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
#Copyright (C) 2007
|
|
2
|
-
|
|
3
|
-
# This program is free software; you can redistribute it and/or modify
|
|
4
|
-
# it under the terms of the GNU General Public License as published by
|
|
5
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
6
|
-
# (at your option) any later version.
|
|
7
|
-
|
|
8
|
-
# This program is distributed in the hope that it will be useful,
|
|
9
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
# GNU General Public License for more details.
|
|
1
|
+
#Copyright (C) 2007-2008 Han Dao and contributors
|
|
12
2
|
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
# Foundation,
|
|
3
|
+
#This program is free software: you can redistribute it and/or modify
|
|
4
|
+
#it under the terms of the GNU General Public License as published by
|
|
5
|
+
#the Free Software Foundation, either version 3 of the License, or
|
|
6
|
+
#(at your option) any later version.
|
|
16
7
|
#
|
|
17
|
-
#
|
|
8
|
+
#This program is distributed in the hope that it will be useful,
|
|
9
|
+
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+
#GNU General Public License for more details.
|
|
12
|
+
#
|
|
13
|
+
#You should have received a copy of the GNU General Public License
|
|
14
|
+
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
|
+
|
|
18
16
|
|
|
19
17
|
#PROJECT: rbgooey
|
|
20
18
|
#DESCRIPTION: A GUI library for the rubygame library.
|
data/lib/imageui.rb
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
#Copyright (C) 2007
|
|
2
|
-
|
|
3
|
-
# This program is free software; you can redistribute it and/or modify
|
|
4
|
-
# it under the terms of the GNU General Public License as published by
|
|
5
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
6
|
-
# (at your option) any later version.
|
|
7
|
-
|
|
8
|
-
# This program is distributed in the hope that it will be useful,
|
|
9
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
# GNU General Public License for more details.
|
|
1
|
+
#Copyright (C) 2007-2008 Han Dao and contributors
|
|
12
2
|
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
# Foundation,
|
|
3
|
+
#This program is free software: you can redistribute it and/or modify
|
|
4
|
+
#it under the terms of the GNU General Public License as published by
|
|
5
|
+
#the Free Software Foundation, either version 3 of the License, or
|
|
6
|
+
#(at your option) any later version.
|
|
16
7
|
#
|
|
17
|
-
#
|
|
8
|
+
#This program is distributed in the hope that it will be useful,
|
|
9
|
+
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+
#GNU General Public License for more details.
|
|
12
|
+
#
|
|
13
|
+
#You should have received a copy of the GNU General Public License
|
|
14
|
+
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
|
+
|
|
16
|
+
#PROJECT: rbgooey
|
|
17
|
+
#DESCRIPTION: A GUI library for the rubygame library.
|
|
18
|
+
#FUNCTION OF THIS PART: This class deal with GUI elements
|
|
19
|
+
|
|
18
20
|
|
|
19
21
|
#PROJECT: rbgooey
|
|
20
22
|
#DESCRIPTION: A GUI library for the rubygame library.
|
data/lib/mouse.rb
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
#Copyright (C)
|
|
2
|
-
|
|
3
|
-
# This program is free software; you can redistribute it and/or modify
|
|
4
|
-
# it under the terms of the GNU General Public License as published by
|
|
5
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
6
|
-
# (at your option) any later version.
|
|
7
|
-
|
|
8
|
-
# This program is distributed in the hope that it will be useful,
|
|
9
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
# GNU General Public License for more details.
|
|
1
|
+
#Copyright (C) 2007-2008 Han Dao and contributors
|
|
12
2
|
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
# Foundation,
|
|
3
|
+
#This program is free software: you can redistribute it and/or modify
|
|
4
|
+
#it under the terms of the GNU General Public License as published by
|
|
5
|
+
#the Free Software Foundation, either version 3 of the License, or
|
|
6
|
+
#(at your option) any later version.
|
|
16
7
|
#
|
|
17
|
-
#
|
|
8
|
+
#This program is distributed in the hope that it will be useful,
|
|
9
|
+
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+
#GNU General Public License for more details.
|
|
12
|
+
#
|
|
13
|
+
#You should have received a copy of the GNU General Public License
|
|
14
|
+
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
|
+
|
|
18
16
|
|
|
19
17
|
#PROJECT: Rbgooey
|
|
20
18
|
#DESCRIPTION: A GUI library for the rubygame library.
|
data/lib/rbgooey.rb
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
#Copyright (C)
|
|
2
|
-
|
|
3
|
-
# This program is free software; you can redistribute it and/or modify
|
|
4
|
-
# it under the terms of the GNU General Public License as published by
|
|
5
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
6
|
-
# (at your option) any later version.
|
|
7
|
-
|
|
8
|
-
# This program is distributed in the hope that it will be useful,
|
|
9
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
# GNU General Public License for more details.
|
|
1
|
+
#Copyright (C) 2007-2008 Han Dao and contributors
|
|
12
2
|
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
# Foundation,
|
|
3
|
+
#This program is free software: you can redistribute it and/or modify
|
|
4
|
+
#it under the terms of the GNU General Public License as published by
|
|
5
|
+
#the Free Software Foundation, either version 3 of the License, or
|
|
6
|
+
#(at your option) any later version.
|
|
16
7
|
#
|
|
17
|
-
#
|
|
8
|
+
#This program is distributed in the hope that it will be useful,
|
|
9
|
+
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+
#GNU General Public License for more details.
|
|
12
|
+
#
|
|
13
|
+
#You should have received a copy of the GNU General Public License
|
|
14
|
+
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
|
+
|
|
18
16
|
|
|
19
17
|
#PROJECT: rbgooey
|
|
20
18
|
#DESCRIPTION: A GUI library for the rubygame library.
|
|
@@ -35,4 +33,4 @@ require"type.rb"
|
|
|
35
33
|
require"typelowercase.rb"
|
|
36
34
|
require"typelowerspecial.rb"
|
|
37
35
|
require"typespecialcommands.rb"
|
|
38
|
-
require"uidata.rb"
|
|
36
|
+
require"uidata.rb"
|
data/lib/rectcollide.rb
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
#Copyright (C) 2007
|
|
2
|
-
|
|
3
|
-
# This program is free software; you can redistribute it and/or modify
|
|
4
|
-
# it under the terms of the GNU General Public License as published by
|
|
5
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
6
|
-
# (at your option) any later version.
|
|
7
|
-
|
|
8
|
-
# This program is distributed in the hope that it will be useful,
|
|
9
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
# GNU General Public License for more details.
|
|
1
|
+
#Copyright (C) 2007-2008 Han Dao and contributors
|
|
12
2
|
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
# Foundation,
|
|
3
|
+
#This program is free software: you can redistribute it and/or modify
|
|
4
|
+
#it under the terms of the GNU General Public License as published by
|
|
5
|
+
#the Free Software Foundation, either version 3 of the License, or
|
|
6
|
+
#(at your option) any later version.
|
|
16
7
|
#
|
|
17
|
-
#
|
|
8
|
+
#This program is distributed in the hope that it will be useful,
|
|
9
|
+
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+
#GNU General Public License for more details.
|
|
12
|
+
#
|
|
13
|
+
#You should have received a copy of the GNU General Public License
|
|
14
|
+
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
|
+
|
|
18
16
|
|
|
19
17
|
#PROJECT: Rbgooey
|
|
20
18
|
#DESCRIPTION: A GUI library for the rubygame library.
|
data/lib/setup.rb
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
#Copyright (C) 2007
|
|
2
|
-
|
|
3
|
-
# This program is free software; you can redistribute it and/or modify
|
|
4
|
-
# it under the terms of the GNU General Public License as published by
|
|
5
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
6
|
-
# (at your option) any later version.
|
|
7
|
-
|
|
8
|
-
# This program is distributed in the hope that it will be useful,
|
|
9
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
# GNU General Public License for more details.
|
|
1
|
+
#Copyright (C) 2007-2008 Han Dao and contributors
|
|
12
2
|
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
# Foundation,
|
|
3
|
+
#This program is free software: you can redistribute it and/or modify
|
|
4
|
+
#it under the terms of the GNU General Public License as published by
|
|
5
|
+
#the Free Software Foundation, either version 3 of the License, or
|
|
6
|
+
#(at your option) any later version.
|
|
16
7
|
#
|
|
17
|
-
#
|
|
8
|
+
#This program is distributed in the hope that it will be useful,
|
|
9
|
+
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+
#GNU General Public License for more details.
|
|
12
|
+
#
|
|
13
|
+
#You should have received a copy of the GNU General Public License
|
|
14
|
+
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
|
+
|
|
18
16
|
|
|
19
17
|
#PROJECT: rbgooey
|
|
20
18
|
#DESCRIPTION: A GUI library for the Rubygame library
|
|
@@ -67,4 +65,4 @@ class Setup
|
|
|
67
65
|
def dir
|
|
68
66
|
@ui.imageui.setup(@data['dir'])
|
|
69
67
|
end
|
|
70
|
-
end
|
|
68
|
+
end
|
data/lib/text.rb
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
#Copyright (C) 2007
|
|
2
|
-
|
|
3
|
-
# This program is free software; you can redistribute it and/or modify
|
|
4
|
-
# it under the terms of the GNU General Public License as published by
|
|
5
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
6
|
-
# (at your option) any later version.
|
|
7
|
-
|
|
8
|
-
# This program is distributed in the hope that it will be useful,
|
|
9
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
# GNU General Public License for more details.
|
|
1
|
+
#Copyright (C) 2007-2008 Han Dao and contributors
|
|
12
2
|
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
# Foundation,
|
|
3
|
+
#This program is free software: you can redistribute it and/or modify
|
|
4
|
+
#it under the terms of the GNU General Public License as published by
|
|
5
|
+
#the Free Software Foundation, either version 3 of the License, or
|
|
6
|
+
#(at your option) any later version.
|
|
16
7
|
#
|
|
17
|
-
#
|
|
8
|
+
#This program is distributed in the hope that it will be useful,
|
|
9
|
+
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+
#GNU General Public License for more details.
|
|
12
|
+
#
|
|
13
|
+
#You should have received a copy of the GNU General Public License
|
|
14
|
+
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
|
+
|
|
18
16
|
|
|
19
17
|
#PROJECT: Rbgooey
|
|
20
18
|
#DESCRIPTION: A GUI library for the rubygame library.
|
data/lib/textrender.rb
CHANGED
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
#Copyright (C) 2007
|
|
2
|
-
|
|
3
|
-
# This program is free software; you can redistribute it and/or modify
|
|
4
|
-
# it under the terms of the GNU General Public License as published by
|
|
5
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
6
|
-
# (at your option) any later version.
|
|
7
|
-
|
|
8
|
-
# This program is distributed in the hope that it will be useful,
|
|
9
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
# GNU General Public License for more details.
|
|
1
|
+
#Copyright (C) 2007-2008 Han Dao and contributors
|
|
12
2
|
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
# Foundation,
|
|
3
|
+
#This program is free software: you can redistribute it and/or modify
|
|
4
|
+
#it under the terms of the GNU General Public License as published by
|
|
5
|
+
#the Free Software Foundation, either version 3 of the License, or
|
|
6
|
+
#(at your option) any later version.
|
|
16
7
|
#
|
|
17
|
-
#
|
|
8
|
+
#This program is distributed in the hope that it will be useful,
|
|
9
|
+
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+
#GNU General Public License for more details.
|
|
12
|
+
#
|
|
13
|
+
#You should have received a copy of the GNU General Public License
|
|
14
|
+
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
|
+
|
|
18
16
|
|
|
19
17
|
#PROJECT: rbgooey
|
|
20
18
|
#DESCRIPTION: A GUI library for the rubygame library.
|
|
21
19
|
#FUNCTION OF THIS PART: Class TextRender render texts.
|
|
22
20
|
|
|
23
21
|
class TextRender
|
|
24
|
-
attr_accessor :ui
|
|
22
|
+
attr_accessor :ui , :y_value
|
|
25
23
|
def initialize ui
|
|
26
24
|
@ui = ui
|
|
27
25
|
@y_value = 0
|
|
@@ -74,4 +72,4 @@ class TextRender
|
|
|
74
72
|
def undraw
|
|
75
73
|
@background.blit(@ui.display.screen,[0,0])
|
|
76
74
|
end
|
|
77
|
-
end
|
|
75
|
+
end
|
data/lib/type.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#Copyright (C) 2007 Han Dao
|
|
1
|
+
#Copyright (C) 2007-2008 Han Dao and contributors
|
|
2
2
|
#
|
|
3
3
|
#This program is free software: you can redistribute it and/or modify
|
|
4
4
|
#it under the terms of the GNU General Public License as published by
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
#You should have received a copy of the GNU General Public License
|
|
14
14
|
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
|
|
17
17
|
#PROJECT: Rbgooey
|
|
18
18
|
#DESCRIPTION: A GUI library for the rubygame library.
|
|
@@ -102,4 +102,4 @@ class Type
|
|
|
102
102
|
@string = nil
|
|
103
103
|
@void = true
|
|
104
104
|
end
|
|
105
|
-
end
|
|
105
|
+
end
|
data/lib/typelowercase.rb
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
#Copyright (C) 2007
|
|
2
|
-
|
|
3
|
-
# This program is free software; you can redistribute it and/or modify
|
|
4
|
-
# it under the terms of the GNU General Public License as published by
|
|
5
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
6
|
-
# (at your option) any later version.
|
|
7
|
-
|
|
8
|
-
# This program is distributed in the hope that it will be useful,
|
|
9
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
# GNU General Public License for more details.
|
|
1
|
+
#Copyright (C) 2007-2008 Han Dao and contributors
|
|
12
2
|
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
# Foundation,
|
|
3
|
+
#This program is free software: you can redistribute it and/or modify
|
|
4
|
+
#it under the terms of the GNU General Public License as published by
|
|
5
|
+
#the Free Software Foundation, either version 3 of the License, or
|
|
6
|
+
#(at your option) any later version.
|
|
16
7
|
#
|
|
17
|
-
#
|
|
8
|
+
#This program is distributed in the hope that it will be useful,
|
|
9
|
+
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+
#GNU General Public License for more details.
|
|
12
|
+
#
|
|
13
|
+
#You should have received a copy of the GNU General Public License
|
|
14
|
+
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
|
+
|
|
18
16
|
|
|
19
17
|
#PROJECT: Rbgooey
|
|
20
18
|
#DESCRIPTION: A GUI library for the rubygame library.
|
|
@@ -83,4 +81,4 @@ class Lowercase
|
|
|
83
81
|
end
|
|
84
82
|
end
|
|
85
83
|
end
|
|
86
|
-
end
|
|
84
|
+
end
|
data/lib/typelowerspecial.rb
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
#Copyright (C) 2007
|
|
2
|
-
|
|
3
|
-
# This program is free software; you can redistribute it and/or modify
|
|
4
|
-
# it under the terms of the GNU General Public License as published by
|
|
5
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
6
|
-
# (at your option) any later version.
|
|
7
|
-
|
|
8
|
-
# This program is distributed in the hope that it will be useful,
|
|
9
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
# GNU General Public License for more details.
|
|
1
|
+
#Copyright (C) 2007-2008 Han Dao and contributors
|
|
12
2
|
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
# Foundation,
|
|
3
|
+
#This program is free software: you can redistribute it and/or modify
|
|
4
|
+
#it under the terms of the GNU General Public License as published by
|
|
5
|
+
#the Free Software Foundation, either version 3 of the License, or
|
|
6
|
+
#(at your option) any later version.
|
|
16
7
|
#
|
|
17
|
-
#
|
|
8
|
+
#This program is distributed in the hope that it will be useful,
|
|
9
|
+
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+
#GNU General Public License for more details.
|
|
12
|
+
#
|
|
13
|
+
#You should have received a copy of the GNU General Public License
|
|
14
|
+
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
|
+
|
|
18
16
|
|
|
17
|
+
#You can contract the author at wikipediankiba@gmail.com
|
|
19
18
|
#PROJECT: Rbgooey
|
|
20
19
|
#DESCRIPTION: A GUI library for the rubygame library.
|
|
21
20
|
#FUNCTION OF THIS PART: This class is responsible for lowercase typing.
|
|
@@ -61,4 +60,4 @@ class LowerSpecial
|
|
|
61
60
|
end
|
|
62
61
|
end
|
|
63
62
|
end
|
|
64
|
-
end
|
|
63
|
+
end
|
data/lib/typespecialcommands.rb
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
#Copyright (C) 2007
|
|
2
|
-
|
|
3
|
-
# This program is free software; you can redistribute it and/or modify
|
|
4
|
-
# it under the terms of the GNU General Public License as published by
|
|
5
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
6
|
-
# (at your option) any later version.
|
|
7
|
-
|
|
8
|
-
# This program is distributed in the hope that it will be useful,
|
|
9
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
# GNU General Public License for more details.
|
|
1
|
+
#Copyright (C) 2007-2008 Han Dao and contributors
|
|
12
2
|
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
# Foundation,
|
|
3
|
+
#This program is free software: you can redistribute it and/or modify
|
|
4
|
+
#it under the terms of the GNU General Public License as published by
|
|
5
|
+
#the Free Software Foundation, either version 3 of the License, or
|
|
6
|
+
#(at your option) any later version.
|
|
16
7
|
#
|
|
17
|
-
#
|
|
8
|
+
#This program is distributed in the hope that it will be useful,
|
|
9
|
+
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+
#GNU General Public License for more details.
|
|
12
|
+
#
|
|
13
|
+
#You should have received a copy of the GNU General Public License
|
|
14
|
+
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
|
+
|
|
18
16
|
|
|
19
17
|
#PROJECT: Rbgooey
|
|
20
18
|
#DESCRIPTION: A GUI library for the rubygame library.
|
|
@@ -37,4 +35,4 @@ class SpecialCommands
|
|
|
37
35
|
end
|
|
38
36
|
end
|
|
39
37
|
end
|
|
40
|
-
end
|
|
38
|
+
end
|