savio 0.1.0

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.
@@ -0,0 +1,3 @@
1
+ module Savio
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,25 @@
1
+ require_relative 'lib/savio/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "savio"
5
+ spec.version = Savio::VERSION
6
+ spec.authors = ["TheRealSavi"]
7
+ spec.email = ["JohnGibbons167@gmail.com"]
8
+
9
+ spec.summary = %q{Adds IO Elements to ruby2D}
10
+ spec.description = %q{Alows you to easily ask for user input through sliders, buttons, text boxs, etc}
11
+ spec.homepage = "http://www.gibbonsiv.com"
12
+ spec.license = "MIT"
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
+
15
+
16
+ # Specify which files should be added to the gem when it is released.
17
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ end
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+ spec.add_dependency "ruby2d", "~> 0.9.2"
25
+ end
@@ -0,0 +1,27 @@
1
+ require 'ruby2d'
2
+ require_relative 'lib/savio.rb'
3
+ puts 'hello world'
4
+ sldr = Slider.new(x:100,y:20, draggingEnabled: true, dragType: 'duplicate')
5
+ inpt = InputBox.new()
6
+ butn = Button.new(x: 500, y:50)
7
+ but2 = Button.new(x: 500, y:100)
8
+ btmn = ButtonManager.new(type: 'radio')
9
+ clsl = ColorSlider.new(x: 200,y:200)
10
+
11
+ but2.buttonManager = btmn
12
+ butn.buttonManager = btmn
13
+
14
+ butn.onClick do
15
+ Savio.hide
16
+ end
17
+ but2.onClick do
18
+ Savio.unhide
19
+ end
20
+
21
+ puts Savio.makeBool(0)
22
+
23
+ update do
24
+
25
+ inpt.value = inpt.y.to_s
26
+ end
27
+ show()
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: savio
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - TheRealSavi
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-03-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ruby2d
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.9.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.9.2
27
+ description: Alows you to easily ask for user input through sliders, buttons, text
28
+ boxs, etc
29
+ email:
30
+ - JohnGibbons167@gmail.com
31
+ executables: []
32
+ extensions: []
33
+ extra_rdoc_files: []
34
+ files:
35
+ - ".DS_Store"
36
+ - ".gitignore"
37
+ - Gemfile
38
+ - LICENSE.txt
39
+ - README.md
40
+ - Rakefile
41
+ - bin/console
42
+ - bin/setup
43
+ - lib/.DS_Store
44
+ - lib/savio.rb
45
+ - lib/savio/.DS_Store
46
+ - lib/savio/Button.rb
47
+ - lib/savio/ButtonManager.rb
48
+ - lib/savio/ColorSlider.rb
49
+ - lib/savio/IORenderable.rb
50
+ - lib/savio/InputBox.rb
51
+ - lib/savio/Scene.rb
52
+ - lib/savio/Slider.rb
53
+ - lib/savio/hsv2rgb.rb
54
+ - lib/savio/io.rb
55
+ - lib/savio/version.rb
56
+ - savio.gemspec
57
+ - testing.rb
58
+ homepage: http://www.gibbonsiv.com
59
+ licenses:
60
+ - MIT
61
+ metadata: {}
62
+ post_install_message:
63
+ rdoc_options: []
64
+ require_paths:
65
+ - lib
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 2.3.0
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ requirements: []
77
+ rubygems_version: 3.0.3
78
+ signing_key:
79
+ specification_version: 4
80
+ summary: Adds IO Elements to ruby2D
81
+ test_files: []