rubyx-debugger/app/main/lib/registers_view.rb
2015-07-14 19:59:21 +03:00

22 lines
401 B
Ruby

class RegisterView < PIXI::Container
@@register_names = (0..8).collect {|i| "r#{i}"}
def initialize max
super()
@registers = {}
x = 0
@@register_names.each do |name|
reg = PIXI::Text.new( name )
reg.position = PIXI::Point.new x , max.x - 100
x += reg.width + 20
@registers[name] = reg
self.add_child reg
end
def draw_me
end
end
end