Feat: add description to report bug

This commit is contained in:
Linventif 2024-08-16 15:30:03 +00:00
parent eed6ccf2a6
commit cd294bebd9
6 changed files with 26 additions and 7 deletions

View File

@ -1,6 +1,6 @@
local Fields = {
{
["title"] = gmInte.getTranslation("report_bug.title", "Report a bug"),
["title"] = gmInte.getTranslation("report_bug.screenshot", "Screenshot"),
["type"] = "image",
},
{
@ -82,10 +82,23 @@ function gmInte.openReportBug()
frame:SetTitle(gmInte.getFrameName(gmInte.getTranslation("report_bug.title", "Report Bug")))
frame:MakePopup()
gmInte.applyPaint(frame)
// bug report = screenshot, description, steps to reproduce, expected result, actual result
local dPanel = vgui.Create("DScrollPanel", frame)
dPanel:Dock(FILL)
gmInte.applyPaint(dPanel)
local label = vgui.Create("DLabel", dPanel)
label:Dock(TOP)
label:DockMargin(5, 5, 5, 5)
label:SetText(gmInte.getTranslation("report_bug.description", "Description"))
label:SetFont("DermaDefaultBold")
local messagePanel = vgui.Create("DPanel", dPanel)
messagePanel:Dock(TOP)
messagePanel:SetTall(70)
messagePanel:DockMargin(5, 0, 5, 5)
messagePanel:SetBackgroundColor(Color(0, 0, 0, 0))
local messageLabel = vgui.Create("DLabel", messagePanel)
messageLabel:Dock(FILL)
messageLabel:SetText(gmInte.getTranslation("gmod_integration.report_bug.description.full", "Hey, your about to report a bug to the owners of this server.\nPlease provide as much information as possible to help us fix the issue.\nThank you for helping us improve the server.\n\nIf you have a issue with Gmod Integration, please use our discord server."))
messageLabel:SetWrap(true)
local elements = {}
for _ = 1, #Fields do
local field = Fields[_]
@ -93,6 +106,7 @@ function gmInte.openReportBug()
label:Dock(TOP)
label:DockMargin(5, 5, 5, 5)
label:SetText(field.title)
label:SetFont("DermaDefaultBold")
if field.type == "image" then
local image = vgui.Create("DImage", dPanel)
image:Dock(TOP)

View File

@ -28,4 +28,5 @@ gmod_integration.chat.authentication_failed=Authentifizierung fehlgeschlagen
gmod_integration.chat.server_link=, Server verknüpft als {1}.
gmod_integration.chat.server_fail=, überprüfen Sie Ihre ID und Ihr Token.
gmod_integration.chat.error.screenshot_failed=Fehler beim Erstellen des Screenshots. Ihr System unterstützt diese Funktion möglicherweise nicht.
gmod_integration.chat.screenshot.sent=Screenshot an Discord gesendet.
gmod_integration.chat.screenshot.sent=Screenshot an Discord gesendet.
gmod_integration.report_bug.description.full=Hey, du bist dabei, einen Fehler an die Besitzer dieses Servers zu melden.\nBitte gib so viele Informationen wie möglich an, um uns bei der Behebung des Problems zu helfen.\nVielen Dank, dass du uns hilfst, den Server zu verbessern.\n\nWenn du ein Problem mit Gmod Integration hast, benutze bitte unseren Discord-Server.

View File

@ -28,4 +28,5 @@ gmod_integration.chat.authentication_failed=Failed to Authenticate
gmod_integration.chat.server_link=, server linked as {1}.
gmod_integration.chat.server_fail=, check your ID and Token.
gmod_integration.chat.error.screenshot_failed=Failed to take screenshot, your system may not support this feature.
gmod_integration.chat.screenshot.sent=Screenshot sent to Discord.
gmod_integration.chat.screenshot.sent=Screenshot sent to Discord.
gmod_integration.report_bug.description.full=Hey, your about to report a bug to the owners of this server.\nPlease provide as much information as possible to help us fix the issue.\nThank you for helping us improve the server.\n\nIf you have a issue with Gmod Integration, please use our discord server.

View File

@ -28,4 +28,5 @@ gmod_integration.chat.authentication_failed=Error de autenticación
gmod_integration.chat.server_link=, servidor vinculado como {1}.
gmod_integration.chat.server_fail=, verifica tu ID y Token.
gmod_integration.chat.error.screenshot_failed=Error al tomar la captura de pantalla, es posible que tu sistema no admita esta función.
gmod_integration.chat.screenshot.sent=Captura de pantalla enviada a Discord.
gmod_integration.chat.screenshot.sent=Captura de pantalla enviada a Discord.
gmod_integration.report_bug.description.full=Hola, estás a punto de informar un error a los propietarios de este servidor.\nPor favor, proporciona la mayor cantidad de información posible para ayudarnos a solucionar el problema.\nGracias por ayudarnos a mejorar el servidor.\n\nSi tienes un problema con Gmod Integration, por favor utiliza nuestro servidor de Discord.

View File

@ -28,4 +28,5 @@ gmod_integration.chat.authentication_failed=Échec de l'authentification
gmod_integration.chat.server_link=, serveur lié en tant que {1}.
gmod_integration.chat.server_fail=, vérifiez votre ID et votre jeton.
gmod_integration.chat.error.screenshot_failed=Échec de la capture d'écran, votre système peut ne pas prendre en charge cette fonctionnalité.
gmod_integration.chat.screenshot.sent=Capture d'écran envoyée sur Discord.
gmod_integration.chat.screenshot.sent=Capture d'écran envoyée sur Discord.
gmod_integration.report_bug.description.full=Bonjour, vous êtes sur le point de signaler un bug aux propriétaires de ce serveur.\nVeuillez fournir autant d'informations que possible pour nous aider à résoudre le problème.\nMerci de nous aider à améliorer le serveur.\n\nSi vous avez un problème avec Gmod Integration, veuillez utiliser notre serveur Discord.

View File

@ -28,4 +28,5 @@ gmod_integration.chat.authentication_failed=Не удалось выполнит
gmod_integration.chat.server_link=, сервер связан как {1}.
gmod_integration.chat.server_fail=, проверьте ваш ID и токен.
gmod_integration.chat.error.screenshot_failed=Не удалось сделать скриншот, возможно, ваша система не поддерживает эту функцию.
gmod_integration.chat.screenshot.sent=Скриншот отправлен в Discord.
gmod_integration.chat.screenshot.sent=Скриншот отправлен в Discord.
gmod_integration.report_bug.description.full=Привет, вы собираетесь сообщить об ошибке владельцам этого сервера.\nПожалуйста, предоставьте как можно больше информации, чтобы помочь нам исправить проблему.\nСпасибо, что помогаете нам улучшить сервер.\n\nЕсли у вас есть проблема с Gmod Integration, используйте наш сервер Discord.