Refactored GuiState Element style handling to simplify mutating them

This commit is contained in:
2026-03-21 21:01:28 -05:00
parent 16bd9168e4
commit e031039a77
12 changed files with 167 additions and 214 deletions

View File

@@ -14,10 +14,10 @@ module CyberarmEngine
def render
@image.draw(
@style.border_thickness_left + @style.padding_left + @x,
@style.border_thickness_top + @style.padding_top + @y,
styled(:border_thickness_left) + styled(:padding_left) + @x,
styled(:border_thickness_top) + styled(:padding_top) + @y,
@z + 2,
@scale_x, @scale_y, @style.color
@scale_x, @scale_y, styled(:color)
)
end