mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-16 05:02:34 +00:00
Fixed overdrawing on BorderCanvas for left side, fixed BackgroundImage fill mode not filling correctly, fixed Progress in marquee mode not request repaint each frame.
This commit is contained in:
@@ -75,7 +75,7 @@ module CyberarmEngine
|
|||||||
end
|
end
|
||||||
|
|
||||||
def draw_fill
|
def draw_fill
|
||||||
if @width * width_scale > height * height_scale
|
if (@image.width * width_scale) >= @width && (@image.height * width_scale) >= @height
|
||||||
draw_fill_width
|
draw_fill_width
|
||||||
else
|
else
|
||||||
draw_fill_height
|
draw_fill_height
|
||||||
|
|||||||
@@ -62,11 +62,11 @@ module CyberarmEngine
|
|||||||
|
|
||||||
def update
|
def update
|
||||||
# TOP
|
# TOP
|
||||||
@top.x = @element.x # + @element.border_thickness_left
|
@top.x = @element.x + @element.style.border_thickness_left
|
||||||
@top.y = @element.y
|
@top.y = @element.y
|
||||||
@top.z = @element.z
|
@top.z = @element.z
|
||||||
|
|
||||||
@top.width = @element.width
|
@top.width = @element.width - @element.style.border_thickness_left
|
||||||
@top.height = @element.style.border_thickness_top
|
@top.height = @element.style.border_thickness_top
|
||||||
|
|
||||||
# RIGHT
|
# RIGHT
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ module CyberarmEngine
|
|||||||
@marquee_animation_time = Gosu.milliseconds if @marquee_offset > range
|
@marquee_animation_time = Gosu.milliseconds if @marquee_offset > range
|
||||||
|
|
||||||
update_background
|
update_background
|
||||||
|
root.gui_state.request_repaint
|
||||||
end
|
end
|
||||||
|
|
||||||
def type=(type)
|
def type=(type)
|
||||||
|
|||||||
Reference in New Issue
Block a user