Guest User

Untitled

a guest
Jul 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. def open_entity(entity)
  2. if gui = @gui
  3. position = entity.position
  4. window = Boleite::GUI::Window.new
  5. window.header_text = "#{position.x}x#{position.y} #{entity.template.name}"
  6. window.size = Boleite::Vector2f.new(200.0, 200.0)
  7. window.set_next_to @window
  8. window.add_close_button do
  9. unless gui.nil?
  10. gui.remove_root window
  11. end
  12. end
  13. gui.add_root window
  14. @entity_windows << window
  15. end
  16. end
Add Comment
Please, Sign In to add comment