mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Replaced usages of Text shadow with properly named border, use new correct Text shadow for menu titles, use text border for a few more elements
This commit is contained in:
@@ -4,7 +4,7 @@ class IMICFPS
|
||||
class HUD
|
||||
class AmmoWidget < HUD::Widget
|
||||
def setup
|
||||
@text = Text.new("", size: 64, font: MONOSPACE_FONT, shadow: true, shadow_color: Gosu::Color::BLACK)
|
||||
@text = Text.new("", size: 64, font: MONOSPACE_FONT, border: true, border_color: Gosu::Color::BLACK)
|
||||
@background = Gosu::Color.new(0x88c64600)
|
||||
end
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ class IMICFPS
|
||||
"",
|
||||
size: 16,
|
||||
x: Widget.margin, y: Widget.margin, z: 45,
|
||||
shadow_color: Gosu::Color::BLACK,
|
||||
border_color: Gosu::Color::BLACK,
|
||||
font: BOLD_SANS_FONT
|
||||
)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ class IMICFPS
|
||||
class HealthWidget < HUD::Widget
|
||||
def setup
|
||||
@spacer = 0
|
||||
@text = Text.new("", font: MONOSPACE_FONT, shadow: true, shadow_color: Gosu::Color::BLACK)
|
||||
@text = Text.new("", font: MONOSPACE_FONT, border: true, border_color: Gosu::Color::BLACK)
|
||||
@width = 512
|
||||
@height = 24
|
||||
@slant = 32
|
||||
|
||||
@@ -12,7 +12,7 @@ class IMICFPS
|
||||
@border_color = Gosu::Color.new(0x88c64600)
|
||||
@radar_color = Gosu::Color.new(0x88212121)
|
||||
|
||||
@text = Text.new("RADAR", size: 18, font: MONOSPACE_FONT, shadow: true, shadow_color: Gosu::Color::BLACK)
|
||||
@text = Text.new("RADAR", size: 18, font: MONOSPACE_FONT, border: true, border_color: Gosu::Color::BLACK)
|
||||
@image = Gosu::Image.new("#{CYBERARM_ENGINE_ROOT_PATH}/assets/textures/default.png", retro: true)
|
||||
@scale = (@size - Widget.padding * 2.0) / @image.width
|
||||
end
|
||||
|
||||
@@ -10,8 +10,8 @@ class IMICFPS
|
||||
"",
|
||||
size: 16,
|
||||
x: Widget.margin, y: Widget.margin, z: 45,
|
||||
shadow: true,
|
||||
shadow_color: Gosu::Color::BLACK,
|
||||
border: true,
|
||||
border_color: Gosu::Color::BLACK,
|
||||
font: BOLD_SANS_FONT
|
||||
)
|
||||
|
||||
|
||||
@@ -16,8 +16,8 @@ class IMICFPS
|
||||
size: 18,
|
||||
font: SANS_FONT,
|
||||
color: @color,
|
||||
shadow: true,
|
||||
shadow_color: Gosu::Color::BLACK,
|
||||
border: true,
|
||||
border_color: Gosu::Color::BLACK,
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user