mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Fixed AssetViewer crashing when loading a scripted asset
This commit is contained in:
@@ -11,8 +11,25 @@ class IMICFPS
|
||||
end
|
||||
|
||||
def draw
|
||||
draw_rect(window.width / 2 - @size, (window.height / 2 - @size) - @thickness / 2, @size * 2, @thickness, @color, 0, :default)
|
||||
draw_rect((window.width / 2) - @thickness / 2, window.height / 2 - (@size * 2), @thickness, @size * 2, @color, 0, :default)
|
||||
draw_rect(
|
||||
window.width / 2 - @size,
|
||||
(window.height / 2 - @size) - @thickness / 2,
|
||||
@size * 2,
|
||||
@thickness,
|
||||
@color,
|
||||
0,
|
||||
:default
|
||||
)
|
||||
|
||||
draw_rect(
|
||||
(window.width / 2) - @thickness / 2,
|
||||
window.height / 2 - (@size * 2),
|
||||
@thickness,
|
||||
@size * 2,
|
||||
@color,
|
||||
0,
|
||||
:default
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user