mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2026-11-06 09:23:54 +00:00
Refactored GuiState Element style handling to simplify mutating them
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user