Added Link element which is basically a button without a border or background, WIP: Element border, margin, padding, and other styles are now easily changable; work is needed to make style changes survive a recalculation

This commit is contained in:
2021-03-22 21:10:06 -05:00
committed by Cyberarm
parent f662fabc56
commit a70c106387
8 changed files with 140 additions and 233 deletions

View File

@@ -65,6 +65,15 @@ module CyberarmEngine
font
end
def swap_font(size, font_name = @font)
if @size != size || @font != font_name
@size = size
@font = font_name
@textobject = check_cache(size, font_name)
end
end
def text=(string)
@rendered_shadow = nil
@text = string