mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-03-21 19:56:14 +00:00
Limit game events to 1, hide currently unused winetricks bit of settings
This commit is contained in:
@@ -278,7 +278,7 @@ class W3DHub
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Game Events
|
# Game Events
|
||||||
@game_events_container = flow(width: 1.0, height: 128, padding: 8, visible: false) do
|
@game_events_container = stack(width: 1.0, height: 128, padding: 8, scroll: true, visible: false) do
|
||||||
end
|
end
|
||||||
|
|
||||||
# Game News
|
# Game News
|
||||||
@@ -513,15 +513,15 @@ class W3DHub
|
|||||||
@game_events_container.show unless events.empty?
|
@game_events_container.show unless events.empty?
|
||||||
@game_events_container.hide if events.empty?
|
@game_events_container.hide if events.empty?
|
||||||
|
|
||||||
@game_events_container.clear do
|
return unless (event = events.flatten.first)
|
||||||
events.flatten.each do |event|
|
|
||||||
stack(fill: true, height: 1.0, margin_left: 8, margin_right: 8, border_thickness: 1, border_color: lighten(Gosu::Color.new(game.color))) do
|
|
||||||
background 0x44_000000
|
|
||||||
|
|
||||||
title event.title, width: 1.0, text_align: :center
|
@game_events_container.clear do
|
||||||
title event.start_time.strftime("%A"), width: 1.0, text_align: :center
|
stack(width: 1.0, fill: true, margin_left: 8, margin_right: 8, border_thickness: 1, border_color: lighten(Gosu::Color.new(game.color))) do
|
||||||
caption event.start_time.strftime("%B %e, %Y %l:%M %p"), width: 1.0, text_align: :center
|
background 0x44_000000
|
||||||
end
|
|
||||||
|
title event.title, width: 1.0, text_align: :center
|
||||||
|
title event.start_time.strftime("%A"), width: 1.0, text_align: :center
|
||||||
|
caption event.start_time.strftime("%B %e, %Y %l:%M %p"), width: 1.0, text_align: :center
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -53,24 +53,24 @@ class W3DHub
|
|||||||
end
|
end
|
||||||
para "Leave empty to use default global prefix.", margin_left: 16
|
para "Leave empty to use default global prefix.", margin_left: 16
|
||||||
|
|
||||||
|
# TODO: support winetricks stuff
|
||||||
|
# tagline "Winetricks", margin_top: 16
|
||||||
|
# caption "Winetricks Command", margin_left: 16
|
||||||
|
# flow(width: 1.0, margin_left: 16) do
|
||||||
|
# @winetricks_command_input = edit_line Store.settings[:winetricks_command], fill: true, enabled: false
|
||||||
|
# button "Browse...", width: 128, tip: "Browse for winetricks executable", enabled: false do
|
||||||
|
# path = W3DHub.ask_file(filters: %w[winetricks protontricks])
|
||||||
|
# @winetricks_command_input.value = path unless path.empty?
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
|
||||||
tagline "Winetricks", margin_top: 16
|
# caption "Fixups", margin_left: 16, margin_top: 16
|
||||||
caption "Winetricks Command", margin_left: 16
|
# button "Install d3dcompiler_47", margin_left: 16, enabled: false
|
||||||
flow(width: 1.0, margin_left: 16) do
|
# para "Fixes games instantly crashing at startup due to not being able to compile shaders.", margin_left: 16
|
||||||
@winetricks_command_input = edit_line Store.settings[:winetricks_command], fill: true, enabled: false
|
|
||||||
button "Browse...", width: 128, tip: "Browse for winetricks executable", enabled: false do
|
|
||||||
path = W3DHub.ask_file(filters: %w[winetricks protontricks])
|
|
||||||
@winetricks_command_input.value = path unless path.empty?
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
caption "Fixups", margin_left: 16, margin_top: 16
|
# button "Install DXVK", margin_left: 16, margin_top: 16, enabled: false
|
||||||
button "Install d3dcompiler_47", margin_left: 16, enabled: false
|
# para "Use Vulkan-based DirectX translation layers.", margin_left: 16
|
||||||
para "Fixes games instantly crashing at startup due to not being able to compile shaders.", margin_left: 16
|
# para "WARNING: Games will stop working if your hardware does not support Vulkan!", margin_left: 16
|
||||||
|
|
||||||
button "Install DXVK", margin_left: 16, margin_top: 16, enabled: false
|
|
||||||
para "Use Vulkan-based DirectX translation layers.", margin_left: 16
|
|
||||||
para "WARNING: Games will stop working if your hardware does not support Vulkan!", margin_left: 16
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user