mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 17:22:35 +00:00
Hide nonfunctional game modifications tab
This commit is contained in:
@@ -184,7 +184,7 @@ class W3DHub
|
|||||||
|
|
||||||
path = case File.basename(command)
|
path = case File.basename(command)
|
||||||
when "zenity", "matedialog", "qarma"
|
when "zenity", "matedialog", "qarma"
|
||||||
`#{command} --file-selection --directory --title "#{title} #{Dir.home}"`
|
`#{command} --file-selection --directory --title "#{title}"`
|
||||||
when "kdialog"
|
when "kdialog"
|
||||||
`#{command} --title "#{title}" --getexistingdirectory #{Dir.home}"`
|
`#{command} --title "#{title}" --getexistingdirectory #{Dir.home}"`
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -232,8 +232,10 @@ class W3DHub
|
|||||||
end
|
end
|
||||||
|
|
||||||
unless Store.offline_mode
|
unless Store.offline_mode
|
||||||
menu_item(I18n.t(:"games.game_modifications")) do
|
if W3DHUB_DEVELOPER
|
||||||
populate_game_modifications(game, channel)
|
menu_item(I18n.t(:"games.game_modifications")) do
|
||||||
|
populate_game_modifications(game, channel)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if game.id != "ren"
|
if game.id != "ren"
|
||||||
|
|||||||
@@ -438,8 +438,8 @@ class W3DHub
|
|||||||
end
|
end
|
||||||
|
|
||||||
if W3DHUB_DEVELOPER
|
if W3DHUB_DEVELOPER
|
||||||
list_box(items: (1..12).to_a.map(&:to_s), margin_left: 16, width: 72, tip: "Number of game clients", **TESTING_BUTTON)
|
list_box(items: (1..12).to_a.map(&:to_s), margin_left: 16, width: 72, tip: "Number of game clients", enabled: (game_installed && !game_updatable), **TESTING_BUTTON)
|
||||||
button "Multijoin", tip: "Launch multiple clients with configured username_\#{number}", **TESTING_BUTTON, enabled: true
|
button "Multijoin", tip: "Launch multiple clients with configured username_\#{number}", enabled: (game_installed && !game_updatable), **TESTING_BUTTON
|
||||||
end
|
end
|
||||||
|
|
||||||
flow(fill: true)
|
flow(fill: true)
|
||||||
|
|||||||
Reference in New Issue
Block a user