rubyx-debugger/app/main/lib/registers_view.rb

22 lines
394 B
Ruby
Raw Normal View History

class RegisterView < PIXI::Container
@@register_names = (0..8).collect {|i| "r#{i}"}
def initialize at_y
super()
@registers = {}
x = 0
@@register_names.each do |name|
reg = PIXI::Text.new( name )
reg.position = PIXI::Point.new x , at_y
x += reg.width + 20
@registers[name] = reg
self.add_child reg
end
2015-07-09 15:34:02 +02:00
def update
end
end
end