mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +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:
@@ -16,7 +16,9 @@ class IMICFPS
|
||||
@input = Text.new("", x: 4, y: @height - (PADDING * 2), z: Console::Z + 1, font: MONOSPACE_FONT)
|
||||
@input.y -= @input.height
|
||||
|
||||
@history = Text.new("=== #{IMICFPS::NAME} v#{IMICFPS::VERSION} (#{IMICFPS::RELEASE_NAME}) ===\n\n", x: 4, z: Console::Z + 1, font: MONOSPACE_FONT)
|
||||
@history = Text.new(
|
||||
"=== #{IMICFPS::NAME} v#{IMICFPS::VERSION} (#{IMICFPS::RELEASE_NAME}) ===\n\n",
|
||||
x: 4, z: Console::Z + 1, font: MONOSPACE_FONT, border: true, border_color: Gosu::Color::BLACK)
|
||||
update_history_y
|
||||
|
||||
@command_history = []
|
||||
|
||||
@@ -22,7 +22,9 @@ class IMICFPS
|
||||
@accent_color = ACCENT_COLOR
|
||||
window.needs_cursor = true
|
||||
|
||||
@__version_text = CyberarmEngine::Text.new("<b>#{IMICFPS::NAME}</b> v#{IMICFPS::VERSION} (#{IMICFPS::RELEASE_NAME})", font: BOLD_SANS_FONT)
|
||||
@__version_text = CyberarmEngine::Text.new(
|
||||
"<b>#{IMICFPS::NAME}</b> v#{IMICFPS::VERSION} (#{IMICFPS::RELEASE_NAME})",
|
||||
font: BOLD_SANS_FONT, border: true, border_color: Gosu::Color::BLACK)
|
||||
@__version_text.x = window.width - (@__version_text.width + 10)
|
||||
@__version_text.y = window.height - (@__version_text.height + 10)
|
||||
|
||||
@@ -39,7 +41,9 @@ class IMICFPS
|
||||
text_size: 100,
|
||||
color: Gosu::Color::BLACK,
|
||||
text_align: :center,
|
||||
width: 1.0
|
||||
text_shadow: true,
|
||||
text_shadow_size: 4,
|
||||
width: 1.0,
|
||||
},
|
||||
Subtitle: {
|
||||
text_size: 50,
|
||||
@@ -51,10 +55,10 @@ class IMICFPS
|
||||
font: BOLD_SANS_FONT,
|
||||
text_size: 50,
|
||||
text_align: :center,
|
||||
text_shadow: true,
|
||||
text_shadow_size: 2,
|
||||
text_shadow_color: Gosu::Color::BLACK,
|
||||
text_shadow_alpha: 100,
|
||||
text_border: true,
|
||||
text_border_size: 2,
|
||||
text_border_color: Gosu::Color::BLACK,
|
||||
text_border_alpha: 100,
|
||||
color: Gosu::Color.rgb(0, 127, 127),
|
||||
width: 1.0,
|
||||
hover: {
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
class IMICFPS
|
||||
class ExtrasMenu < Menu
|
||||
def setup
|
||||
title IMICFPS::NAME
|
||||
subtitle "Extras"
|
||||
title I18n.t("menus.extras")
|
||||
|
||||
link "Asset Viewer" do
|
||||
push_state(IMICFPS::AssetViewerTool::MainMenu)
|
||||
|
||||
@@ -4,8 +4,7 @@ class IMICFPS
|
||||
class GamePauseMenu < Menu
|
||||
def setup
|
||||
@bar_alpha = 50
|
||||
title IMICFPS::NAME
|
||||
subtitle "Paused"
|
||||
title "Paused"
|
||||
|
||||
link "Resume" do
|
||||
pop_state
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
class IMICFPS
|
||||
class LevelSelectMenu < Menu
|
||||
def setup
|
||||
title IMICFPS::NAME
|
||||
title I18n.t("menus.singleplayer")
|
||||
subtitle "Choose a Map"
|
||||
|
||||
Dir.glob("#{GAME_ROOT_PATH}/maps/*.json").map { |file| [file, MapParser.new(map_file: file)] }.each do |file, map|
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
class IMICFPS
|
||||
class MultiplayerMenu < Menu
|
||||
def setup
|
||||
title IMICFPS::NAME
|
||||
subtitle "Multiplayer"
|
||||
title I18n.t("menus.multiplayer")
|
||||
|
||||
link "Quick Join"
|
||||
link "Server Browser" do
|
||||
|
||||
@@ -8,7 +8,7 @@ class IMICFPS
|
||||
end
|
||||
|
||||
stack(width: 0.5, height: 1.0) do
|
||||
label "Profile", text_size: 100, color: Gosu::Color::BLACK, width: 1.0, text_align: :center
|
||||
title "Profile"
|
||||
|
||||
flow width: 1.0 do
|
||||
link I18n.t("menus.back"), width: 0.32 do
|
||||
|
||||
@@ -36,7 +36,7 @@ class IMICFPS
|
||||
|
||||
stack width: 0.5, height: 1.0 do
|
||||
stack width: 1.0, height: 0.25 do
|
||||
label "Server Browser", text_size: 100, text_align: :center, width: 1.0
|
||||
title "Server Browser"
|
||||
|
||||
flow(width: 1.0) do
|
||||
link I18n.t("menus.back"), width: 0.32 do
|
||||
|
||||
@@ -26,7 +26,7 @@ class IMICFPS
|
||||
|
||||
stack(width: 0.5, height: 1.0) do
|
||||
stack(width: 1.0, height: 0.25) do
|
||||
label "Settings", color: Gosu::Color::BLACK, text_size: 100, text_align: :center, width: 1.0
|
||||
title "Settings"
|
||||
|
||||
flow(width: 1.0) do
|
||||
link I18n.t("menus.back"), width: nil do
|
||||
|
||||
Reference in New Issue
Block a user