diff --git a/loc/CZ/strings_db.lua b/loc/CZ/strings_db.lua index 3c0bbaf40c..97bf265177 100644 --- a/loc/CZ/strings_db.lua +++ b/loc/CZ/strings_db.lua @@ -6649,6 +6649,7 @@ tooltipui0705="Nastavení" tooltipui0706="This dialog allows you to save a snapshot of the current game configuration and reload it later.\n\nOnce the game settings are as you want them, use the \"Create\" button on this dialog to store it. You can reload the stored configuration by selecting it and pressing the \"Load\" button.\n\nThe \"Save\" button will overwrite a selected existing preset with the current configuration." tooltipui0707="Odeslat názor" tooltipui0708="Otevře vlákno na fóru o této misi" +tooltipui0709="Open a web page to share your opinion about the current ladder map pool" trans_log_0000="Záznam hovorů" trans_log_0001="Bez záznamu" trans_log_0002="%d - %d z %d záznamů" diff --git a/loc/DE/strings_db.lua b/loc/DE/strings_db.lua index 3c687059ec..ec3bc2a61a 100644 --- a/loc/DE/strings_db.lua +++ b/loc/DE/strings_db.lua @@ -6413,6 +6413,7 @@ tooltipui0705="Einstellungen" tooltipui0706="Hier kann die aktuelle Einstellung des Spiels gespeichert und später wieder geladen werden.\n\nWenn du die Spieloptionen so eingestellt hast wie du sie haben möchtest, benutze \"Erstellen\" zum speichern einer neuen Voreinstellung. Diese kann später mit \"Laden\" wiederhergestellt werden.\n\nMit \"Speichern\" kann eine bereits vorhandene Abspeicherung mit den aktuellen Einstellungen überschreiben werden." tooltipui0707="Feedback Senden" tooltipui0708="Eröffnet einen Forumsbeitrag zu dieser Mission" +tooltipui0709="Open a web page to share your opinion about the current ladder map pool" trans_log_0000="Übertragungsprotokoll" trans_log_0001="Keine Einträge" trans_log_0002="%d - %d von %d Einträgen" diff --git a/loc/ES/strings_db.lua b/loc/ES/strings_db.lua index 3438cb940a..1db68aade5 100644 --- a/loc/ES/strings_db.lua +++ b/loc/ES/strings_db.lua @@ -6543,6 +6543,7 @@ tooltipui0705="Configuración" tooltipui0706="Este diálogo te permite guardar una copia de la configuración de partida actual y volver a cargarla después.\n\nUna vez la configuración sea tal cual la quieres, usa el botón de \"Crear\" en este diálogo para guardarla. Puedes volver a cargar dicha configuración seleccionando y presionando el botón de \"Cargar\".\n\nEl botón de \"Guardar\" sobreescribirá una pre-configuración seleccionada ya existente con la configuración actual." tooltipui0707="Déjenos tus comentarios" tooltipui0708="Quedamos a la espera de tus comentarios en el foro" +tooltipui0709="Open a web page to share your opinion about the current ladder map pool" trans_log_0000="Registro de transmisiones" trans_log_0001="Sin entradas" trans_log_0002="%d - %d de %d entradas" diff --git a/loc/FR/strings_db.lua b/loc/FR/strings_db.lua index c637458c07..9192e227b5 100644 --- a/loc/FR/strings_db.lua +++ b/loc/FR/strings_db.lua @@ -7587,6 +7587,7 @@ tooltipui0705="Paramètres" tooltipui0706="Cette fenêtre permet de créer une sauvegarde des paramètres pour la restaurer plus tard.\n\nUne fois les paramètres à votre convenance, utilisez le bouton \"Créer\" pour les sauvegarder. Vous pouvez restaurer la configuration sauvegardée en la selectionnant, puis en appuyant sur le bouton \"Charger\". \n\nLe bouton \"Créer\" écrasera toute sauvegarde selectionnée avec la configuration actuelle." tooltipui0707="Donner un avis" tooltipui0708="Créer une discussion sur cette mission" +tooltipui0709="Open a web page to share your opinion about the current ladder map pool" uimod_0010 = "Ce mod entre en conflit avec un ou plusieurs autres mods activés. Voulez-vous automatiquement désactiver les autres mods conflictuels ?" uimod_0016 = "Mod de jeu activé" --[[ r: "Game mod" est par la suite systèmatiquement traduit par << Mod de jeu >> --]] uimod_0017 = "Mod d'interface activé" diff --git a/loc/IT/strings_db.lua b/loc/IT/strings_db.lua index c6e6f7a84c..8082843f6c 100644 --- a/loc/IT/strings_db.lua +++ b/loc/IT/strings_db.lua @@ -7729,6 +7729,7 @@ tooltipui0705="Settings" tooltipui0706="This dialog allows you to save a snapshot of the current game configuration and reload it later.\n\nOnce the game settings are as you want them, use the \"Create\" button on this dialog to store it. You can reload the stored configuration by selecting it and pressing the \"Load\" button.\n\nThe \"Save\" button will overwrite a selected existing preset with the current configuration." tooltipui0707="Manda commenti" tooltipui0708="Apri una discussione sul forum online riguardo questa missione" +tooltipui0709="Open a web page to share your opinion about the current ladder map pool" uimod_0010 = "Questo mod è in conflitto con alcune delle altre mod attivate. Vogliamo disattivare quelle mod e attivate questa?" uimod_0016 = "Mod Attivate" uimod_0017 = "UI Mod Attivate" diff --git a/loc/PL/strings_db.lua b/loc/PL/strings_db.lua index 89e7f4e710..caaff6ce01 100644 --- a/loc/PL/strings_db.lua +++ b/loc/PL/strings_db.lua @@ -6648,6 +6648,7 @@ tooltipui0705="Settings" tooltipui0706="This dialog allows you to save a snapshot of the current game configuration and reload it later.\n\nOnce the game settings are as you want them, use the \"Create\" button on this dialog to store it. You can reload the stored configuration by selecting it and pressing the \"Load\" button.\n\nThe \"Save\" button will overwrite a selected existing preset with the current configuration." tooltipui0707="Post Feedback" tooltipui0708="Open a forum thread about this mission" +tooltipui0709="Open a web page to share your opinion about the current ladder map pool" trans_log_0000="Dziennik transmisji" trans_log_0001="Brak wpisów" trans_log_0002="%d - %d z %d wpisów." diff --git a/loc/RU/strings_db.lua b/loc/RU/strings_db.lua index 0cca5c958c..b6f2d7719a 100644 --- a/loc/RU/strings_db.lua +++ b/loc/RU/strings_db.lua @@ -6153,6 +6153,7 @@ tooltipui0668="Модификации разрешены" tooltipui0669="На сервере разрешены модификации. Проверьте менеджер модификаций." tooltipui0707="Оставить отзыв" tooltipui0708="Открыть тему на форме по поводу этой миссии" +tooltipui0709="Open a web page to share your opinion about the current ladder map pool" trans_log_0000="Журнал сообщений" trans_log_0001="Нет сообщений" trans_log_0002="%d - %d из %d записей" diff --git a/loc/TW/strings_db.lua b/loc/TW/strings_db.lua index e439964a50..902440cf99 100644 --- a/loc/TW/strings_db.lua +++ b/loc/TW/strings_db.lua @@ -8307,6 +8307,7 @@ tooltipui0705="Settings" tooltipui0706="This dialog allows you to save a snapshot of the current game configuration and reload it later.\n\nOnce the game settings are as you want them, use the \"Create\" button on this dialog to store it. You can reload the stored configuration by selecting it and pressing the \"Load\" button.\n\nThe \"Save\" button will overwrite a selected existing preset with the current configuration." tooltipui0707="Post Feedback" tooltipui0708="Open a forum thread about this mission" +tooltipui0709="Open a web page to share your opinion about the current ladder map pool" ual0301_Engineer_desc="Support Armoured Command Unit (Engineer Preset)" ual0301_Engineer_help=" Support Armored Command Unit. Enhanced during construction with rapid fabrication enhancement." ual0301_Engineer_name="SACU (Engineer Preset)" diff --git a/loc/TZM/strings_db.lua b/loc/TZM/strings_db.lua index 366ea061e1..bc82f4585d 100644 --- a/loc/TZM/strings_db.lua +++ b/loc/TZM/strings_db.lua @@ -7719,6 +7719,9 @@ tooltipui0703 = "Energy income due to reclaim, and total energy reclaimed so far tooltipui0704="Select name for new preset" tooltipui0705="Settings" tooltipui0706="This dialog allows you to save a snapshot of the current game configuration and reload it later.\n\nOnce the game settings are as you want them, use the \"Create\" button on this dialog to store it. You can reload the stored configuration by selecting it and pressing the \"Load\" button.\n\nThe \"Save\" button will overwrite a selected existing preset with the current configuration." +tooltipui0707="Post Feedback" +tooltipui0708="Open a forum thread about this mission" +tooltipui0709="Open a web page to share your opinion about the current ladder map pool" uimod_0010 = "This mod conflicts with some of the other mods you have active. Shall we turn those mods off and this one on?" uimod_0016 = "Game Mod Activated" uimod_0017 = "UI Mod Activated" diff --git a/loc/US/strings_db.lua b/loc/US/strings_db.lua index 12dae63021..d77f9df1ce 100644 --- a/loc/US/strings_db.lua +++ b/loc/US/strings_db.lua @@ -5282,6 +5282,7 @@ tooltipui0506="Pause/unpause current construction order" tooltipui0507="Current and maximum unit counts" tooltipui0707="Post Feedback" tooltipui0708="Open a forum thread about this mission" +tooltipui0709="Open a web page to share your opinion about the current ladder map pool" -- Begin unit restrictions tooltipui0508="No Tech 1" diff --git a/lua/ui/dialogs/score.lua b/lua/ui/dialogs/score.lua index 852986a4e7..475b2e5da4 100644 --- a/lua/ui/dialogs/score.lua +++ b/lua/ui/dialogs/score.lua @@ -517,17 +517,36 @@ function CreateSkirmishScreen(victory, showCampaign, operationVictoryTable) elapsedTime = UIUtil.CreateText(bg, "", 16, UIUtil.bodyFont) LayoutHelpers.RightOf(elapsedTime, elapsedTimeLabel, 5) - -- Create a Feedback button with a link to the specified forum thread + -- Create a Feedback button with a link to the specified web page + local feedbackButtonData = { + ladder = { + tooltip = 'LadderScore_Feedback', + url = 'http://voting.faforever.com/vote', + }, + campaign = { + tooltip = 'CampaignScore_Feedback', + url = operationVictoryTable.opData.feedbackURL, + }, + } + + local feedbackType = false if showCampaign then - bg.feedbackButton = UIUtil.CreateButtonStd(bg, '/scx_menu/medium-no-br-btn/medium-uef', "Post Feedback", 14, 2) + feedbackType = 'campaign' + elseif GetCommandLineArg('/init', 1)[1] == 'init_ladder1v1.lua' then + feedbackType = 'ladder' + end + + if feedbackType then + bg.feedbackButton = UIUtil.CreateButtonStd(bg, '/scx_menu/medium-no-br-btn/medium-uef', 'Post Feedback', 14, 2) LayoutHelpers.AtLeftIn(bg.feedbackButton, bg, 5) LayoutHelpers.AtBottomIn(bg.feedbackButton, bg, 20) - Tooltip.AddButtonTooltip(bg.feedbackButton, "CampaignScore_Feedback") - bg.feedbackButton.OnClick = function(self, modifiers) - OpenURL(operationVictoryTable.opData.feedbackURL) - end - - if not operationVictoryTable.opData.feedbackURL then + Tooltip.AddButtonTooltip(bg.feedbackButton, feedbackButtonData[feedbackType].tooltip) + -- Add an URL to the button, else disable it + if feedbackButtonData[feedbackType].url then + bg.feedbackButton.OnClick = function(self, modifiers) + OpenURL(feedbackButtonData[feedbackType].url) + end + else bg.feedbackButton:Disable() end end diff --git a/lua/ui/help/tooltips.lua b/lua/ui/help/tooltips.lua index 1a57051b1c..b6a70db72c 100644 --- a/lua/ui/help/tooltips.lua +++ b/lua/ui/help/tooltips.lua @@ -1461,6 +1461,10 @@ Tooltips = { title = "Continue", description = "Exit the Score Screen", }, + LadderScore_Feedback = { + title = "Post Feedback", + description = "Open a web page to share your opinion about the current ladder map pool", + }, -- ********************** -- ** Campaign Score