![]() |
GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
Generate user friendly sentences and information from an action or condition metadata. More...
#include <InstructionSentenceFormatter.h>
Public Member Functions | |
| std::vector< std::pair< gd::String, gd::TextFormatting > > | GetAsFormattedText (const gd::Instruction &instr, const gd::InstructionMetadata &metadata) |
| Create a formatted sentence from an instruction and its metadata. | |
| gd::String | GetFullText (const gd::Instruction &instr, const gd::InstructionMetadata &metadata) |
Static Public Member Functions | |
| static gd::String | GetFormattedParameterValue (const gd::String &rawValue, const gd::String ¶meterType) |
Return the value to display for a parameter, normalizing types (like yesorno/trueorfalse) whose runtime interpretation differs from the raw stored value. More... | |
| static InstructionSentenceFormatter * | Get () |
| static void | DestroySingleton () |
Generate user friendly sentences and information from an action or condition metadata.
|
static |
Return the value to display for a parameter, normalizing types (like yesorno/trueorfalse) whose runtime interpretation differs from the raw stored value.
Look at EventsCodeGenerator::GenerateParameterCodes and AdvancedExtension.cpp (for GDJS) for related logic that must stay consistent.