Sha256: b4b95f13f0ba454ab189668c120885365d0ee204fc9c67fd5148b51e7dd9cdc8
Contents?: true
Size: 1.71 KB
Versions: 22
Compression:
Stored size: 1.71 KB
Contents
# frozen_string_literal: true button = box({smooth: 6,left: 55,top: 160, color:{red: 0.3, green: 0.3, blue: 0.3},id: :my_box}) button.shadow({ id: :s1, left: 3, top: 3, blur: 9, invert: true, red: 0, green: 0, blue: 0, alpha: 0.7 }) button.touch(true) do button.controller(:hello) end slider=box({ width: 333, height: 25, top: 45, left: 55, smooth: 9, color:{red: 0.3, green: 0.3, blue: 0.3}}) slider.shadow({ id: :s2, left: 3, top: 3, blur: 9, invert: true, red: 0, green: 0, blue: 0, alpha: 0.7 }) cursor= slider.circle({width: 30, height: 30, left: 2, top: 1, color:{red: 0.3, green: 0.3, blue: 0.3}}) cursor.left(0) cursor.top(0) cursor.shadow({ id: :s4, left: 1, top: 1, blur: 3, option: :natural, red: 0, green: 0, blue: 0, alpha: 0.6 }) label=text({data: 0, top: 69, left: 69, component: { size: 12 }, color: :gray}) cursor.drag({ restrict: {max:{ left: 309, top: 0}} }) do |event| puts cursor.left value = cursor.left/309*100 label.data(value) cursor.controller({ action: :setModuleParameterValue, params: { moduleId: 6456549897,parameterId: 9846546, value: value} }) end support=box({top: 300, left: 55, width: 300, height: 40, smooth: 9, color:{red: 0.3, green: 0.3, blue: 0.3}, id: :support }) support.shadow({ id: :s3, left: 3, top: 3, blur: 9, invert: true, red: 0, green: 0, blue: 0, alpha: 0.7 }) support.import(true) do |content| puts "add code here, content: #{content}" end in_box=input_box
Version data entries
22 entries across 22 versions & 2 rubygems