limelight 0.1.0-java → 0.2.0-java
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/bin/limelight +0 -0
- data/bin/ll +2 -2
- data/bin/ll.bat +2 -2
- data/lib/init.rb +5 -3
- data/lib/limelight.jar +0 -0
- data/lib/limelight/animation.rb +20 -0
- data/lib/limelight/build_exception.rb +1 -1
- data/lib/limelight/builtin/players.rb +12 -0
- data/lib/limelight/builtin/players/button.rb +24 -0
- data/lib/limelight/builtin/players/check_box.rb +31 -0
- data/lib/limelight/builtin/players/combo_box.rb +55 -0
- data/lib/limelight/builtin/players/combo_box_popup_list.rb +19 -0
- data/lib/limelight/builtin/players/combo_box_popup_list_item.rb +21 -0
- data/lib/limelight/builtin/players/curtains.rb +22 -0
- data/lib/limelight/builtin/players/radio_button.rb +41 -0
- data/lib/limelight/builtin/players/text_area.rb +25 -0
- data/lib/limelight/builtin/players/text_box.rb +25 -0
- data/lib/limelight/builtin/styles.rb +35 -0
- data/lib/limelight/button_group_cache.rb +2 -2
- data/lib/limelight/casting_director.rb +9 -6
- data/lib/limelight/commands.rb +3 -3
- data/lib/limelight/file_chooser.rb +1 -1
- data/lib/limelight/file_filter.rb +1 -1
- data/lib/limelight/java_couplings.rb +57 -0
- data/lib/limelight/java_util.rb +1 -1
- data/lib/limelight/limelight_exception.rb +1 -1
- data/lib/limelight/loaders/file_scene_loader.rb +3 -2
- data/lib/limelight/menu_bar.rb +1 -1
- data/lib/limelight/paint_action.rb +2 -2
- data/lib/limelight/pen.rb +2 -2
- data/lib/limelight/producer.rb +21 -5
- data/lib/limelight/production.rb +1 -1
- data/lib/limelight/production_builder.rb +1 -1
- data/lib/limelight/prop.rb +49 -39
- data/lib/limelight/prop_builder.rb +1 -1
- data/lib/limelight/scene.rb +3 -3
- data/lib/limelight/stage.rb +5 -5
- data/lib/limelight/stage_builder.rb +1 -1
- data/lib/limelight/styles.rb +2 -2
- data/lib/limelight/styles_builder.rb +7 -7
- data/lib/limelight/theater.rb +2 -2
- data/lib/limelight/util.rb +1 -1
- data/lib/limelight/version.rb +2 -2
- data/productions/examples/8thlight.com/about/about.txt +3 -3
- data/productions/examples/8thlight.com/about/props.rb +1 -1
- data/productions/examples/8thlight.com/about/styles.rb +1 -1
- data/productions/examples/8thlight.com/footer.rb +1 -1
- data/productions/examples/8thlight.com/home/props.rb +1 -1
- data/productions/examples/8thlight.com/home/styles.rb +1 -1
- data/productions/examples/8thlight.com/images/bg.jpg +0 -0
- data/productions/examples/8thlight.com/images/button_bg.jpg +0 -0
- data/productions/examples/8thlight.com/images/canvas_bg.jpg +0 -0
- data/productions/examples/8thlight.com/images/thumbnail_book.jpg +0 -0
- data/productions/examples/8thlight.com/menu.rb +1 -1
- data/productions/examples/8thlight.com/services/props.rb +1 -1
- data/productions/examples/8thlight.com/services/services.txt +1 -1
- data/productions/examples/8thlight.com/services/styles.rb +1 -1
- data/productions/examples/8thlight.com/stages.rb +1 -1
- data/productions/examples/8thlight.com/styles.rb +8 -1
- data/productions/examples/calculator/players/button.rb +1 -1
- data/productions/examples/calculator/players/calculator.rb +1 -1
- data/productions/examples/calculator/players/calculator_model.rb +1 -1
- data/productions/examples/calculator/props.rb +1 -1
- data/productions/examples/calculator/styles.rb +1 -1
- data/productions/examples/langstons_ant/players/ant.rb +1 -1
- data/productions/examples/langstons_ant/players/log.rb +1 -1
- data/productions/examples/langstons_ant/players/start_stop_button.rb +1 -1
- data/productions/examples/langstons_ant/players/world.rb +1 -1
- data/productions/examples/langstons_ant/props.rb +1 -1
- data/productions/examples/langstons_ant/styles.rb +1 -1
- data/productions/examples/sandbox/click_me/players/chromaton.rb +1 -1
- data/productions/examples/sandbox/click_me/props.rb +1 -1
- data/productions/examples/sandbox/click_me/styles.rb +1 -1
- data/productions/examples/sandbox/floaters/players/floater.rb +21 -11
- data/productions/examples/sandbox/floaters/players/surface.rb +5 -1
- data/productions/examples/sandbox/floaters/props.rb +1 -1
- data/productions/examples/sandbox/floaters/styles.rb +1 -1
- data/productions/examples/sandbox/gradients/players/spinner.rb +5 -12
- data/productions/examples/sandbox/gradients/players/teaser.rb +7 -14
- data/productions/examples/sandbox/gradients/players/wave.rb +7 -14
- data/productions/examples/sandbox/gradients/players/waves.rb +7 -14
- data/productions/examples/sandbox/gradients/props.rb +1 -1
- data/productions/examples/sandbox/gradients/styles.rb +1 -1
- data/productions/examples/sandbox/header.rb +2 -1
- data/productions/examples/sandbox/homer/players/homer.rb +12 -8
- data/productions/examples/sandbox/homer/props.rb +1 -1
- data/productions/examples/sandbox/homer/styles.rb +1 -1
- data/productions/examples/sandbox/inputs/players/button_input.rb +1 -1
- data/productions/examples/sandbox/inputs/players/check_box_input.rb +1 -1
- data/productions/examples/sandbox/inputs/players/combo_box_input.rb +3 -3
- data/productions/examples/sandbox/inputs/players/radio_button_input.rb +1 -1
- data/productions/examples/sandbox/inputs/players/text_area_input.rb +1 -1
- data/productions/examples/sandbox/inputs/players/text_box_input.rb +1 -1
- data/productions/examples/sandbox/inputs/props.rb +3 -3
- data/productions/examples/sandbox/inputs/styles.rb +2 -1
- data/productions/examples/sandbox/players/sandbox.rb +1 -1
- data/productions/examples/sandbox/rounded_corners/players/box.rb +1 -1
- data/productions/examples/sandbox/rounded_corners/props.rb +1 -1
- data/productions/examples/sandbox/rounded_corners/styles.rb +1 -1
- data/productions/examples/sandbox/scrolling/players/add_button.rb +19 -0
- data/productions/examples/sandbox/scrolling/players/cell.rb +1 -2
- data/productions/examples/sandbox/scrolling/props.rb +9 -4
- data/productions/examples/sandbox/scrolling/styles.rb +10 -1
- data/productions/examples/sandbox/sketching/players/sketchpad.rb +1 -1
- data/productions/examples/sandbox/sketching/props.rb +1 -1
- data/productions/examples/sandbox/sketching/styles.rb +1 -2
- data/productions/examples/sandbox/sounds/bird.au +0 -0
- data/productions/examples/sandbox/sounds/cat.au +0 -0
- data/productions/examples/sandbox/sounds/cow.au +0 -0
- data/productions/examples/sandbox/sounds/dog.au +0 -0
- data/productions/examples/sandbox/sounds/donkey.au +0 -0
- data/productions/examples/sandbox/sounds/duck.au +0 -0
- data/productions/examples/sandbox/sounds/players/clip.rb +10 -0
- data/productions/examples/sandbox/sounds/props.rb +10 -0
- data/productions/examples/sandbox/sounds/styles.rb +17 -0
- data/productions/examples/sandbox/stages.rb +2 -1
- data/productions/examples/sandbox/styles.rb +6 -6
- data/productions/examples/sandbox/teaser/players/fader.rb +22 -16
- data/productions/examples/sandbox/teaser/props.rb +1 -1
- data/productions/examples/sandbox/teaser/styles.rb +1 -1
- data/productions/examples/tutorials/tutorial_1/players/sample.rb +1 -1
- data/productions/examples/tutorials/tutorial_1/props.rb +1 -1
- data/productions/examples/tutorials/tutorial_1/styles.rb +1 -1
- data/productions/stage_composer/init.rb +1 -1
- data/productions/stage_composer/inspector/players/inspector.rb +1 -1
- data/productions/stage_composer/inspector/players/prop_row.rb +1 -1
- data/productions/stage_composer/inspector/players/prop_tree.rb +1 -1
- data/productions/stage_composer/inspector/players/style_table.rb +1 -1
- data/productions/stage_composer/inspector/players/style_value.rb +1 -1
- data/productions/stage_composer/inspector/props.rb +2 -2
- data/productions/stage_composer/inspector/styles.rb +3 -3
- data/productions/stage_composer/lib/init.rb +1 -1
- data/productions/stage_composer/lib/limelight/composer/controller.rb +1 -1
- data/productions/stage_composer/lib/limelight/composer/lethargy.rb +1 -1
- data/productions/stage_composer/production.rb +1 -1
- data/productions/stage_composer/stages.rb +1 -1
- data/productions/startup/players/browse_button.rb +3 -0
- data/productions/startup/players/download_button.rb +4 -1
- data/productions/startup/players/sandbox_button.rb +4 -1
- data/productions/startup/props.rb +3 -5
- data/productions/startup/styles.rb +5 -5
- data/spec/builtin/players/button_spec.rb +21 -0
- data/spec/builtin/players/check_box_spec.rb +29 -0
- data/spec/builtin/players/combo_box_spec.rb +29 -0
- data/spec/{players → builtin/players}/radio_button_spec.rb +9 -20
- data/spec/builtin/players/text_area_spec.rb +27 -0
- data/spec/builtin/players/text_box_spec.rb +27 -0
- data/spec/casting_director_spec.rb +3 -3
- data/spec/commands_spec.rb +2 -2
- data/spec/file_chooser_spec.rb +1 -1
- data/spec/file_filter_spec.rb +1 -1
- data/spec/java_util_spec.rb +1 -1
- data/spec/loaders/file_loader_spec.rb +1 -1
- data/spec/paint_action_spec.rb +1 -1
- data/spec/pen_spec.rb +1 -1
- data/spec/producer_spec.rb +14 -4
- data/spec/production_builder_spec.rb +1 -1
- data/spec/production_spec.rb +1 -1
- data/spec/prop_builder_spec.rb +1 -1
- data/spec/prop_spec.rb +66 -5
- data/spec/scene_spec.rb +2 -2
- data/spec/spec_helper.rb +4 -1
- data/spec/stage_builder_spec.rb +1 -1
- data/spec/stage_spec.rb +1 -1
- data/spec/styles_builder_spec.rb +34 -2
- data/spec/theater_spec.rb +1 -1
- metadata +130 -106
- data/lib/limelight/players.rb +0 -9
- data/lib/limelight/players/button.rb +0 -29
- data/lib/limelight/players/check_box.rb +0 -38
- data/lib/limelight/players/combo_box.rb +0 -44
- data/lib/limelight/players/radio_button.rb +0 -47
- data/lib/limelight/players/text_area.rb +0 -25
- data/lib/limelight/players/text_box.rb +0 -25
- data/spec/players/button_spec.rb +0 -31
- data/spec/players/check_box_spec.rb +0 -40
- data/spec/players/combo_box_spec.rb +0 -39
- data/spec/players/text_area_spec.rb +0 -37
- data/spec/players/text_box_spec.rb +0 -37
data/bin/limelight
CHANGED
|
File without changes
|
data/bin/ll
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#! /bin/bash
|
|
2
2
|
|
|
3
3
|
JAVA_OPTS=$JAVA_OPTS' -Dapple.laf.useScreenMenuBar=true '
|
|
4
|
-
JAVA_OPTS=$JAVA_OPTS' -Xdock:name=Limelight '
|
|
5
4
|
JAVA_OPTS=$JAVA_OPTS' -Dapple.awt.showGrowBox=true '
|
|
5
|
+
JAVA_OPTS=$JAVA_OPTS' -Xdock:name=Limelight '
|
|
6
6
|
JAVA_OPTS=$JAVA_OPTS-Xdock:icon=$LIMELIGHT_HOME/bin/icons/limelight.icns
|
|
7
7
|
|
|
8
|
-
java -cp $LIMELIGHT_HOME/lib/limelight.jar:$LIMELIGHT_HOME/jruby/lib/jruby.jar $JAVA_OPTS -Dlimelight.home=$LIMELIGHT_HOME limelight.Main $1 $2 $3 $4 $5
|
|
8
|
+
java -Xmx512M -cp $LIMELIGHT_HOME/lib/limelight.jar:$LIMELIGHT_HOME/jruby/lib/jruby.jar $JAVA_OPTS -Dlimelight.home=$LIMELIGHT_HOME limelight.Main $1 $2 $3 $4 $5
|
|
9
9
|
|
|
10
10
|
|
data/bin/ll.bat
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
set LIMELIGHT_HOME=Y:\Projects\limelight
|
|
1
|
+
set LIMELIGHT_HOME=Y:\Projects\limelight
|
|
2
2
|
|
|
3
|
-
java -cp
|
|
3
|
+
java -cp lib\limelight.jar;jruby\lib\jruby.jar %JAVA_OPTS% -Dlimelight.home=%LIMELIGHT_HOME% limelight.Main %1 %2 %3 %4 %5
|
|
4
4
|
|
|
5
5
|
|
data/lib/init.rb
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
#- Copyright 2008 8th Light, Inc.
|
|
1
|
+
#- Copyright 2008 8th Light, Inc. All Rights Reserved.
|
|
2
2
|
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
$: <<
|
|
4
|
+
$LIMELIGHT_LIB = File.expand_path(File.dirname(__FILE__))
|
|
5
|
+
$: << $LIMELIGHT_LIB unless $:.include?($LIMELIGHT_LIB)
|
|
6
|
+
$LIMELIGHT_HOME = File.expand_path(File.join($LIMELIGHT_LIB, ".."))
|
|
6
7
|
|
|
7
8
|
require 'java'
|
|
8
9
|
require File.expand_path(File.dirname(__FILE__) + "/limelight.jar")
|
|
9
10
|
|
|
10
11
|
# ENV["GEM_HOME"] = ENV["GEM_PATH"] = File.expand_path(File.dirname(__FILE__) + "/../../jruby/lib/ruby/gems/1.8")
|
|
11
12
|
require 'rubygems'
|
|
13
|
+
require 'limelight/java_couplings'
|
data/lib/limelight.jar
CHANGED
|
Binary file
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#- Copyright 2008 8th Light, Inc. All Rights Reserved.
|
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
|
3
|
+
|
|
4
|
+
class Animation < Limelight::AnimationTask
|
|
5
|
+
|
|
6
|
+
def initialize(prop, block, options={})
|
|
7
|
+
@block = block
|
|
8
|
+
name = options[:name] || "#{prop.to_s} animation"
|
|
9
|
+
updates_per_second = options[:updates_per_second] || 60
|
|
10
|
+
super(name, updates_per_second, prop.panel)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def doPerform
|
|
14
|
+
@block.call
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def running?
|
|
18
|
+
return is_running
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#- Copyright 2008 8th Light, Inc. All Rights Reserved.
|
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
|
3
|
+
|
|
4
|
+
require 'limelight/builtin/players/button'
|
|
5
|
+
require 'limelight/builtin/players/check_box'
|
|
6
|
+
require 'limelight/builtin/players/combo_box'
|
|
7
|
+
require 'limelight/builtin/players/radio_button'
|
|
8
|
+
require 'limelight/builtin/players/text_area'
|
|
9
|
+
require 'limelight/builtin/players/text_box'
|
|
10
|
+
require 'limelight/builtin/players/combo_box_popup_list_item'
|
|
11
|
+
require 'limelight/builtin/players/combo_box_popup_list'
|
|
12
|
+
require 'limelight/builtin/players/curtains'
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#- Copyright 2008 8th Light, Inc. All Rights Reserved.
|
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
|
3
|
+
|
|
4
|
+
module Limelight
|
|
5
|
+
module Builtin
|
|
6
|
+
module Players
|
|
7
|
+
|
|
8
|
+
module Button
|
|
9
|
+
class << self
|
|
10
|
+
|
|
11
|
+
def extended(prop)
|
|
12
|
+
button = Limelight::UI::Model::Inputs::ButtonPanel.new
|
|
13
|
+
prop.panel.add(button)
|
|
14
|
+
prop.button = button.button
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
attr_accessor :button
|
|
19
|
+
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#- Copyright 2008 8th Light, Inc. All Rights Reserved.
|
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
|
3
|
+
|
|
4
|
+
module Limelight
|
|
5
|
+
module Builtin
|
|
6
|
+
module Players
|
|
7
|
+
|
|
8
|
+
module CheckBox
|
|
9
|
+
class << self
|
|
10
|
+
def extended(prop)
|
|
11
|
+
check_box = Limelight::UI::Model::Inputs::CheckBoxPanel.new
|
|
12
|
+
prop.panel.add(check_box)
|
|
13
|
+
prop.check_box = check_box.check_box
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
attr_accessor :check_box
|
|
18
|
+
|
|
19
|
+
def checked=(value)
|
|
20
|
+
check_box.selected = value
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def checked
|
|
24
|
+
return check_box.selected?
|
|
25
|
+
end
|
|
26
|
+
alias :checked? :checked
|
|
27
|
+
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#- Copyright 2008 8th Light, Inc. All Rights Reserved.
|
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
|
3
|
+
|
|
4
|
+
module Limelight
|
|
5
|
+
module Builtin
|
|
6
|
+
module Players
|
|
7
|
+
|
|
8
|
+
module ComboBox
|
|
9
|
+
class << self
|
|
10
|
+
def extended(prop)
|
|
11
|
+
combo_box = Limelight::UI::Model::Inputs::ComboBoxPanel.new
|
|
12
|
+
prop.panel.add(combo_box)
|
|
13
|
+
prop.combo_box = combo_box.combo_box
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
attr_accessor :combo_box
|
|
18
|
+
|
|
19
|
+
def choices=(value)
|
|
20
|
+
value = eval(value) if value.is_a? String
|
|
21
|
+
raise "Invalid choices type: #{value.class}. Choices have to be an array." if !value.is_a?(Array)
|
|
22
|
+
@values = value
|
|
23
|
+
combo_box.remove_all_items
|
|
24
|
+
value.each { |choice| combo_box.add_item(choice) }
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def value=(text)
|
|
28
|
+
self.text = text
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def value
|
|
32
|
+
return self.text
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def mouse_pressed(e)
|
|
36
|
+
curtains = Limelight::Prop.new(:name => "limelight_builtin_players_curtains", :players => "curtains")
|
|
37
|
+
|
|
38
|
+
popup_list = Limelight::Prop.new(:name => "limelight_builtin_players_combo_box_popup_list", :players => "combo_box_popup_list", :curtains => curtains)
|
|
39
|
+
popup_style = popup_list.style
|
|
40
|
+
popup_style.x = panel.absolute_location.x.to_s
|
|
41
|
+
popup_style.y = panel.absolute_location.y.to_s
|
|
42
|
+
popup_style.width = panel.width.to_s
|
|
43
|
+
|
|
44
|
+
@values.each do |value|
|
|
45
|
+
popup_list.add(Limelight::Prop.new(:name => "limelight_builtin_players_combo_box_popup_list_item", :text => value, :players => "combo_box_popup_list_item", :combo_box => self))
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
curtains.add(popup_list)
|
|
49
|
+
scene.add(curtains)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#- Copyright 2008 8th Light, Inc. All Rights Reserved.
|
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
|
3
|
+
|
|
4
|
+
module Limelight
|
|
5
|
+
module Builtin
|
|
6
|
+
module Players
|
|
7
|
+
|
|
8
|
+
module ComboBoxPopupList
|
|
9
|
+
|
|
10
|
+
attr_accessor :curtains
|
|
11
|
+
|
|
12
|
+
def close
|
|
13
|
+
@curtains.open
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#- Copyright 2008 8th Light, Inc. All Rights Reserved.
|
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
|
3
|
+
|
|
4
|
+
module Limelight
|
|
5
|
+
module Builtin
|
|
6
|
+
module Players
|
|
7
|
+
|
|
8
|
+
module ComboBoxPopupListItem
|
|
9
|
+
|
|
10
|
+
attr_accessor :combo_box
|
|
11
|
+
|
|
12
|
+
def mouse_clicked(e)
|
|
13
|
+
@combo_box.value = text
|
|
14
|
+
parent.close
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#- Copyright 2008 8th Light, Inc. All Rights Reserved.
|
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
|
3
|
+
|
|
4
|
+
module Limelight
|
|
5
|
+
module Builtin
|
|
6
|
+
module Players
|
|
7
|
+
|
|
8
|
+
module Curtains
|
|
9
|
+
|
|
10
|
+
def open
|
|
11
|
+
scene.remove(self)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def mouse_clicked(e)
|
|
15
|
+
open
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#- Copyright 2008 8th Light, Inc. All Rights Reserved.
|
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
|
3
|
+
|
|
4
|
+
module Limelight
|
|
5
|
+
module Builtin
|
|
6
|
+
module Players
|
|
7
|
+
|
|
8
|
+
module RadioButton
|
|
9
|
+
class << self
|
|
10
|
+
def extended(prop)
|
|
11
|
+
radio_button = Limelight::UI::Model::Inputs::RadioButtonPanel.new
|
|
12
|
+
prop.panel.add(radio_button)
|
|
13
|
+
prop.radio_button = radio_button.radio_button
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
attr_accessor :radio_button
|
|
18
|
+
attr_reader :button_group
|
|
19
|
+
|
|
20
|
+
def group=(group_name)
|
|
21
|
+
@button_group = scene.button_groups[group_name]
|
|
22
|
+
@button_group.add(@radio_button)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def checked=(value)
|
|
26
|
+
@radio_button.selected = value
|
|
27
|
+
end
|
|
28
|
+
alias :selected= :checked=
|
|
29
|
+
|
|
30
|
+
def checked
|
|
31
|
+
return @radio_button.is_selected
|
|
32
|
+
end
|
|
33
|
+
alias :checked? :checked
|
|
34
|
+
alias :selected? :checked
|
|
35
|
+
alias :selected :checked
|
|
36
|
+
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#- Copyright 2008 8th Light, Inc. All Rights Reserved.
|
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
|
3
|
+
|
|
4
|
+
module Limelight
|
|
5
|
+
module Builtin
|
|
6
|
+
module Players
|
|
7
|
+
|
|
8
|
+
module TextArea
|
|
9
|
+
class << self
|
|
10
|
+
|
|
11
|
+
def extended(prop)
|
|
12
|
+
text_area = Limelight::UI::Model::Inputs::TextAreaPanel.new
|
|
13
|
+
prop.panel.add(text_area)
|
|
14
|
+
prop.text_area = text_area.text_area
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
attr_accessor :text_area
|
|
20
|
+
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#- Copyright 2008 8th Light, Inc. All Rights Reserved.
|
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
|
3
|
+
|
|
4
|
+
module Limelight
|
|
5
|
+
module Builtin
|
|
6
|
+
module Players
|
|
7
|
+
|
|
8
|
+
module TextBox
|
|
9
|
+
class << self
|
|
10
|
+
|
|
11
|
+
def extended(prop)
|
|
12
|
+
text_box = Limelight::UI::Model::Inputs::TextBoxPanel.new
|
|
13
|
+
prop.panel.add(text_box)
|
|
14
|
+
prop.text_box = text_box.text_box
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
attr_accessor :text_box
|
|
20
|
+
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#- Copyright 2008 8th Light, Inc. All Rights Reserved.
|
|
2
|
+
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
|
3
|
+
|
|
4
|
+
limelight_builtin_players_curtains {
|
|
5
|
+
float :on
|
|
6
|
+
x 0
|
|
7
|
+
y 0
|
|
8
|
+
width "100%"
|
|
9
|
+
height "100%"
|
|
10
|
+
background_color "#FFF0"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
limelight_builtin_players_combo_box_popup_list {
|
|
14
|
+
float "on"
|
|
15
|
+
background_color "#EEED"
|
|
16
|
+
rounded_corner_radius 5
|
|
17
|
+
border_width 1
|
|
18
|
+
border_color "#dcdcdc"
|
|
19
|
+
vertical_scroll_bar :on
|
|
20
|
+
min_height 50
|
|
21
|
+
max_height 200
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
limelight_builtin_players_combo_box_popup_list_item {
|
|
25
|
+
width "100%"
|
|
26
|
+
padding 3
|
|
27
|
+
left_padding 10
|
|
28
|
+
hover {
|
|
29
|
+
text_color :white
|
|
30
|
+
background_color "#0f38e8"
|
|
31
|
+
secondary_background_color "#506ff6"
|
|
32
|
+
gradient_angle 90
|
|
33
|
+
gradient :on
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#- Copyright 2008 8th Light, Inc.
|
|
1
|
+
#- Copyright 2008 8th Light, Inc. All Rights Reserved.
|
|
2
2
|
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
|
3
3
|
|
|
4
4
|
module Limelight
|
|
5
|
-
ButtonGroupCache =
|
|
5
|
+
ButtonGroupCache = UI::ButtonGroupCache
|
|
6
6
|
class ButtonGroupCache
|
|
7
7
|
def [](key)
|
|
8
8
|
return self.get(key)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
#- Copyright 2008 8th Light, Inc.
|
|
1
|
+
#- Copyright 2008 8th Light, Inc. All Rights Reserved.
|
|
2
2
|
#- Limelight and all included source files are distributed under terms of the GNU LGPL.
|
|
3
3
|
|
|
4
|
-
require 'limelight/players'
|
|
4
|
+
require 'limelight/builtin/players'
|
|
5
5
|
|
|
6
6
|
module Limelight
|
|
7
7
|
|
|
@@ -61,10 +61,13 @@ module Limelight
|
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
def load_builtin_player(player_name)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
begin
|
|
65
|
+
module_name = player_name.camalized
|
|
66
|
+
return if !Limelight::Builtin::Players.const_defined?(module_name)
|
|
67
|
+
mod = Limelight::Builtin::Players.const_get(module_name)
|
|
68
|
+
@known_players[player_name] = mod
|
|
69
|
+
rescue NameError
|
|
70
|
+
end
|
|
68
71
|
end
|
|
69
72
|
|
|
70
73
|
end
|