Tweak server info panel layout a bit

This commit is contained in:
2026-09-10 23:05:17 -05:00
parent 132d39d3a4
commit 21e0888f8e

View File

@@ -87,7 +87,7 @@ module W3DHubLauncher
end end
# server details container # server details container
@server_details_container = stack(width: 400, height: 1.0, margin_left: HALF_PADDING, padding: PADDING, background_nine_slice: NINE_SLICE_ROUNDED, background_nine_slice_from_edge: NINE_SLICE_EDGE, background_nine_slice_color: ALPHA_GRAY) do @server_details_container = stack(width: 300, height: 1.0, margin_left: HALF_PADDING, padding: PADDING, background_nine_slice: NINE_SLICE_ROUNDED, background_nine_slice_from_edge: NINE_SLICE_EDGE, background_nine_slice_color: ALPHA_GRAY) do
tagline "SERVER NAME HERE SERVER NAME HERE SERVER NAME HERE", text_wrap: :none tagline "SERVER NAME HERE SERVER NAME HERE SERVER NAME HERE", text_wrap: :none
image safe_get_image("#{ROOT_PATH}/media/default_map_preview.png"), width: 1.0, tip: "MAP NAME APPEARS HERE", margin_bottom: PADDING image safe_get_image("#{ROOT_PATH}/media/default_map_preview.png"), width: 1.0, tip: "MAP NAME APPEARS HERE", margin_bottom: PADDING
@@ -102,46 +102,46 @@ module W3DHubLauncher
stack(width: 1.0, padding: HALF_PADDING, background_nine_slice: NINE_SLICE_ROUNDED, background_nine_slice_from_edge: NINE_SLICE_EDGE, background_nine_slice_color: ALPHA_GRAY) do stack(width: 1.0, padding: HALF_PADDING, background_nine_slice: NINE_SLICE_ROUNDED, background_nine_slice_from_edge: NINE_SLICE_EDGE, background_nine_slice_color: ALPHA_GRAY) do
flow(width: 1.0) do flow(width: 1.0) do
stack(width: 1.0 / 3) do stack(width: 1.0 / 3) do
caption "Map" caption "Map", text_wrap: :none
para "TheBacon.mix" para "TheBacon.mix", text_wrap: :none
end end
stack(width: 1.0 / 3) do stack(width: 1.0 / 3) do
caption "Ping" caption "Ping", text_wrap: :none
para "9945ms" para "9945ms", text_wrap: :none
end end
stack(width: 1.0 / 3) do stack(width: 1.0 / 3) do
caption "Players" caption "Players", text_wrap: :none
para "127/127" para "127/127", text_wrap: :none
end end
end end
flow(width: 1.0) do flow(width: 1.0) do
stack(width: 1.0 / 3) do stack(width: 1.0 / 3) do
caption "Next Map" caption "Next Map", text_wrap: :none
para "Bacon.mix" para "Bacon.mix", text_wrap: :none
end end
stack(width: 1.0 / 3) do stack(width: 1.0 / 3) do
caption "Time" caption "Time", text_wrap: :none
para "00:00:00" para "00:00:00", text_wrap: :none
end end
stack(width: 1.0 / 3) do stack(width: 1.0 / 3) do
caption "Time Left" caption "Time Left", text_wrap: :none
para "00:00:00" para "00:00:00", text_wrap: :none
end end
end end
flow(width: 1.0) do flow(width: 1.0) do
stack(width: 1.0 / 3) do stack(width: 1.0 / 3) do
caption "Region" caption "Region", text_wrap: :none
para "North America" para "North America", text_wrap: :none
end end
stack(width: 1.0 / 3) do stack(width: 1.0 / 3) do
caption "Channel" caption "Channel", text_wrap: :none
para "Release" para "Release", text_wrap: :none
end end
stack(width: 1.0 / 3) do stack(width: 1.0 / 3) do
caption "Version" caption "Version", text_wrap: :none
para "3.8.1.0" para "3.8.1.0", text_wrap: :none
end end
end end
end end
@@ -149,24 +149,24 @@ module W3DHubLauncher
# team data # team data
2.times do |i| 2.times do |i|
stack(width: 1.0, margin_top: PADDING, padding: HALF_PADDING, background_nine_slice: NINE_SLICE_ROUNDED, background_nine_slice_from_edge: NINE_SLICE_EDGE, background_nine_slice_color: ALPHA_GRAY) do stack(width: 1.0, margin_top: PADDING, padding: HALF_PADDING, background_nine_slice: NINE_SLICE_ROUNDED, background_nine_slice_from_edge: NINE_SLICE_EDGE, background_nine_slice_color: ALPHA_GRAY) do
tagline "TEAM #{i}" tagline "TEAM #{i}", text_wrap: :none
flow(width: 1.0) do flow(width: 1.0) do
stack(width: 1 / 4.0) do stack(width: 1 / 4.0) do
caption "Score" caption "Score", text_wrap: :none
para "450,000" para "450,000", text_wrap: :none
end end
stack(width: 1 / 4.0) do stack(width: 1 / 4.0) do
caption "Kills" caption "Kills", text_wrap: :none
para "4,500" para "4,500", text_wrap: :none
end end
stack(width: 1 / 4.0) do stack(width: 1 / 4.0) do
caption "Deaths" caption "Deaths", text_wrap: :none
para "450" para "450", text_wrap: :none
end end
stack(width: 1 / 4.0) do stack(width: 1 / 4.0) do
caption "Players" caption "Players", text_wrap: :none
para "45/127" para "45/127", text_wrap: :none
end end
end end
@@ -174,23 +174,23 @@ module W3DHubLauncher
flow(width: 1.0) do flow(width: 1.0) do
stack(fill: true) do stack(fill: true) do
caption "Name" caption "Name", text_wrap: :none
end
stack(width: 1 / 5.0) do
caption "Score", text_wrap: :none
end end
stack(width: 1 / 6.0) do stack(width: 1 / 6.0) do
caption "Score" caption "Kills", text_wrap: :none
end end
stack(width: 1 / 8.0) do stack(width: 1 / 4.0) do
caption "Kills" caption "Deaths", text_wrap: :none
end
stack(width: 1 / 6.0) do
caption "Deaths"
end
stack(width: 1 / 8.0) do
caption "Ping"
end
stack(width: 1 / 6.0) do
caption "Time"
end end
# stack(width: 1 / 7.0) do
# caption "Ping", text_wrap: :none
# end
# stack(width: 1 / 7.0) do
# caption "Time", text_wrap: :none
# end
end end
24.times do |i| 24.times do |i|
@@ -198,21 +198,21 @@ module W3DHubLauncher
stack(fill: true, margin_right: HALF_PADDING) do stack(fill: true, margin_right: HALF_PADDING) do
inscription ["[Dragon]rufeng", "PXD2000", "SteelGhost", "Winter_Spyder", "ChopBam", "cyberarm", "ChAoS", "Silverlight", "moonsense715test", "Name Goes Here Yall"].sample, text_wrap: :none inscription ["[Dragon]rufeng", "PXD2000", "SteelGhost", "Winter_Spyder", "ChopBam", "cyberarm", "ChAoS", "Silverlight", "moonsense715test", "Name Goes Here Yall"].sample, text_wrap: :none
end end
stack(width: 1 / 6.0) do stack(width: 1 / 5.0) do
inscription "5,232", text_wrap: :none inscription "5,232", text_wrap: :none
end end
stack(width: 1 / 8.0) do stack(width: 1 / 6.0) do
inscription "341", text_wrap: :none inscription "341", text_wrap: :none
end end
stack(width: 1 / 6.0) do stack(width: 1 / 4.0) do
inscription "123", text_wrap: :none inscription "123", text_wrap: :none
end end
stack(width: 1 / 8.0) do # stack(width: 1 / 7.0) do
inscription "431", text_wrap: :none # inscription "431", text_wrap: :none
end # end
stack(width: 1 / 6.0) do # stack(width: 1 / 7.0) do
inscription "00:00:00", text_wrap: :none # inscription "00:00:00", text_wrap: :none
end # end
end end
end end
end end