mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2026-11-06 09:23:54 +00:00
Added initial support for pages, fixed image not accounting for margin refactor
This commit is contained in:
@@ -14,8 +14,8 @@ module CyberarmEngine
|
||||
|
||||
def render
|
||||
@image.draw(
|
||||
styled(:border_thickness_left) + styled(:padding_left) + @x,
|
||||
styled(:border_thickness_top) + styled(:padding_top) + @y,
|
||||
styled(:margin_left) + styled(:border_thickness_left) + styled(:padding_left) + @x,
|
||||
styled(:margin_top) + styled(:border_thickness_top) + styled(:padding_top) + @y,
|
||||
@z + 2,
|
||||
@scale_x, @scale_y, styled(:color)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user