Added Accessibility Module w/ Misc Fix

-- Added new accessibility module
-- Added multiple colour convert functions (rgb to hex, rgb to hsl, hsl to rgb, hex to rgb)
-- Added adjusment function for colours
-- Added check for colourbliness alteration
-- Added colourblindness command uses `accessibility.cb_command` as command string
-- Added menu option to change colourblind options.
-- Added multiple accessibility locale enteries within en.json
-- Added multiple accessibility locale enteries within pt.json (translated via google translate)
-- Fixed disabled not showing up when using qb-menu.
-- Updated init.lua and fxmanifest.lua to include new module entry
This commit is contained in:
cityparadise committed 2025-04-03 08:52:47 +01:00
1 parent 3e936d2c1c
commit 8c4c170e64
6 files changed
+276 -15

No files matched your search

+43 -14
View File
@@ -1,16 +1,45 @@
{
"locale-unit-test": "This is a test string",
"place_object_place": "[E] Place \n",
"place_object_cancel": "[X] Cancel \n",
"place_object_scroll_up": "[SCROLL UP] Turn right \n",
"place_object_scroll_down": "[SCROLL DOWN] Turn left",
"enter_text": "Enter Text",
"no_prop_defined": "You didnt define any object to place",
"Shops": {"NotEnoughMoney": "You dont have enough money to buy this item", "Input":"Amount Input", "PurchaseAmount":"Purchase Quanity","PurchasedItem": "You Have Purchased ", "CurrencySymbol": "$", "Confirm":"Confirm Purchase","AreYouSure":"Are you sure you want to purchase a ", "PayByCash": "Pay by cash", "PayByCard": "Pay by card" },
"locale-unit-test": "This is a test string",
"place_object_place": "[E] Place \n",
"place_object_cancel": "[X] Cancel \n",
"place_object_scroll_up": "[SCROLL UP] Turn right \n",
"place_object_scroll_down": "[SCROLL DOWN] Turn left",
"enter_text": "Enter Text",
"no_prop_defined": "You didnt define any object to place",
"Shops": {
"NotEnoughMoney": "You dont have enough money to buy this item",
"Input": "Amount Input",
"PurchaseAmount": "Purchase Quanity",
"PurchasedItem": "You Have Purchased ",
"CurrencySymbol": "$",
"Confirm": "Confirm Purchase",
"AreYouSure": "Are you sure you want to purchase a ",
"PayByCash": "Pay by cash",
"PayByCard": "Pay by card"
},
"UNITTEST": {
"UNITTESTA": "Im a %s %s",
"UNITTEST": {
"UNITTESTA": "Im a %s %s",
"UNITTEST": {
"UNITTESTA": "\n.-._ _,-,\n`._`-._ _,-'_,'\n `._ `-._ _,-' _,'\n `._ `-._ __.-----.__ _,-' _,'\n `._ `#===\\\"\\\"\\\" \\\"\\\"\\\"===#' _,'\n `._/) ._ _. (\\_,'\n )*' **.__ __.** '*(\n # .==..__ \\\"\\\" \\\"\\\" __..==, #\n # `\\\"._(_). .(_)_.\\\"' #"
}
}
}
"UNITTESTA": "\n.-._ _,-,\n`._`-._ _,-'_,'\n `._ `-._ _,-' _,'\n `._ `-._ __.-----.__ _,-' _,'\n `._ `#===\\\"\\\"\\\" \\\"\\\"\\\"===#' _,'\n `._/) ._ _. (\\_,'\n )*' **.__ __.** '*(\n # .==..__ \\\"\\\" \\\"\\\" __..==, #\n # `\\\"._(_). .(_)_.\\\"' #"
}
},
"accessibility": {
"cb_command": "colourblindness",
"cb_title": "Colourblindness Options",
"cb_desc": "Select your type of colourblindness\nCurrent Colourblindness: %s",
"cb_none": "None",
"cb_updated": "Colourblindness has been updated to %s",
"cb_default_title": "No Colourblindness",
"cb_default_desc": "No colourblindness.\nThis is the default option.",
"cb_protanomaly_title": "Protanomaly",
"cb_protanomaly_desc": "Red-green color blindness.\nMakes certain shades of red look more green and less bright.\nThis type is mild and usually doesn’t get in the way of normal activities.",
"cb_deuteranomaly_title": "Deuteranomaly",
"cb_deuteranomaly_desc": "Red-green color blindness.\nIt makes certain shades of green look more red.\nThis type is mild and doesn’t usually get in the way of normal activities.",
"cb_dual_title": "Protanopia and Deuteranopia",
"cb_dual_desc": "Red-green color blindness.\nMakes someone unable to tell the difference between red and green at all.",
"cb_tritanopia_title": "Tritanopia",
"cb_tritanopia_desc": "Blue-yellow color blindness that makes someone unable to tell the difference between blue and green, purple and red, and yellow and pink.\nIt also makes colors look less bright.",
"cb_tritanomaly_title": "Tritanomaly",
"cb_tritanomaly_desc": "Blue-yellow color blindness makes it hard to tell the difference between blue and green and between yellow and red."
}
}
+20 -1
View File
@@ -5,5 +5,24 @@
"place_object_scroll_up": "[SCROLL UP] Direita\n",
"place_object_scroll_down": "[SCROLL DOWN] Esquerda",
"enter_text": "Inserir Texto",
"no_prop_defined": "Não definiu nenhum objeto para colocar"
"no_prop_defined": "Não definiu nenhum objeto para colocar",
"accessibility": {
"cb_command": "daltônico",
"cb_title": "Opções de daltonismo",
"cb_desc": "Selecione seu tipo de daltonismo\nDaltonismo atual: %s",
"cb_none": "Nenhum",
"cb_updated": "O daltonismo foi atualizado para %s",
"cb_default_title": "Sem daltonismo",
"cb_default_desc": "Sem daltonismo.\nEsta é a opção padrão.",
"cb_protanomaly_title": "Protanomalia",
"cb_protanomaly_desc": "Daltonismo vermelho-verde.\nFaz com que certos tons de vermelho pareçam mais verdes e menos brilhantes.\nEste tipo é leve e geralmente não atrapalha as atividades normais.",
"cb_deuteranomaly_title": "Deuteranomalia",
"cb_deuteranomaly_desc": "Daltonismo vermelho-verde.\nFaz com que certos tons de verde pareçam mais vermelhos.\nEste tipo é leve e geralmente não atrapalha as atividades normais.",
"cb_dual_title": "Protanopia e Deuteranopia",
"cb_dual_desc": "Daltonismo vermelho-verde.\nFaz com que alguém não consiga distinguir entre vermelho e verde.",
"cb_tritanopia_title": "Tritanopia",
"cb_tritanopia_desc": "Daltonismo azul-amarelo que faz com que alguém não consiga distinguir a diferença entre azul e verde, roxo e vermelho, e amarelo e rosa.\nTambém faz com que as cores pareçam menos brilhantes.",
"cb_tritanomaly_title": "Tritanomalia",
"cb_tritanomaly_desc": "O daltonismo azul-amarelo dificulta a distinção entre azul e verde e entre amarelo e vermelho.",
}
}