Initial support for using cyberarm_engine as a mruby mrbgem: Remove/disable usages of defined?, update old gosu mouse and keyboard constants, and replace one usage of window.button_down? with proper Gosu.button_down?

This commit is contained in:
2023-03-24 18:21:41 -05:00
parent 98948c891a
commit 1462f89e24
12 changed files with 72 additions and 35 deletions

View File

@@ -149,6 +149,8 @@ module CyberarmEngine
end
def markup_width(text = @text)
text = text.to_s
spacing = 0
spacing += @border_size if @border
spacing += @shadow_size if @shadow