mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-16 21:22:33 +00:00
Added color support to Image
This commit is contained in:
@@ -14,7 +14,7 @@ module CyberarmEngine
|
|||||||
@style.border_thickness_left + @style.padding_left + @x,
|
@style.border_thickness_left + @style.padding_left + @x,
|
||||||
@style.border_thickness_top + @style.padding_top + @y,
|
@style.border_thickness_top + @style.padding_top + @y,
|
||||||
@z + 2,
|
@z + 2,
|
||||||
@scale_x, @scale_y) # TODO: Add color support?
|
@scale_x, @scale_y, @style.color)
|
||||||
end
|
end
|
||||||
|
|
||||||
def clicked_left_mouse_button(sender, x, y)
|
def clicked_left_mouse_button(sender, x, y)
|
||||||
|
|||||||
@@ -94,6 +94,7 @@ module CyberarmEngine
|
|||||||
},
|
},
|
||||||
|
|
||||||
Image: { # < Element
|
Image: { # < Element
|
||||||
|
color: Gosu::Color::WHITE,
|
||||||
retro: false
|
retro: false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user