mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-18 22:02:34 +00:00
Made Text account for shadow and border effects in width/height methods, made TextBlock support disabled state styling
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user