ServiceMenu: utilitza "lang" per als textos

This commit is contained in:
2025-06-07 12:37:33 +02:00
parent 1bd488e3e3
commit 06fc8c8579
15 changed files with 144 additions and 83 deletions

View File

@@ -6,6 +6,7 @@
#include <memory>
#include <SDL3/SDL.h>
#include "utils.h"
#include "lang.h"
class Text;
@@ -131,7 +132,7 @@ private:
switch (type)
{
case ValueType::BOOL:
return (*(static_cast<bool *>(linked_variable))) ? "ON" : "OFF";
return (*(static_cast<bool *>(linked_variable))) ? lang::getText("[SERVICE_MENU] ON") : lang::getText("[SERVICE_MENU] OFF");
case ValueType::INT:
return std::to_string(*(static_cast<int *>(linked_variable)));
default: