Made Text account for shadow and border effects in width/height methods, made TextBlock support disabled state styling

This commit is contained in:
2021-06-03 01:00:13 +00:00
parent 1b080f9fb9
commit a92d1ad746
3 changed files with 17 additions and 4 deletions

View File

@@ -22,6 +22,12 @@ module CyberarmEngine
end
def recalculate
unless @enabled
@text.color = @style.disabled[:color]
else
@text.color = @style.color
end
@width = 0
@height = 0