[apps/code/varbox] Subtitles and basic items are displayed properly

This commit is contained in:
Léa Saviot
2020-04-03 17:52:15 +02:00
committed by Émilie Feral
parent 34a1a8e35f
commit 96d68d6b44
9 changed files with 39 additions and 18 deletions

View File

@@ -8,6 +8,7 @@ namespace Code {
class ScriptNode {
public:
constexpr static uint16_t CurrentScriptIndex = -1;
enum class Type : bool {
Function,
Variable
@@ -15,7 +16,7 @@ public:
ScriptNode(Type type = Type::Variable, const char * name = nullptr, int nameLength = 0, uint16_t scriptIndex = 0) :
m_type(type),
m_name(name),
m_scriptIndex(scriptIndex),
m_scriptIndex(-1),
m_nameLength(nameLength)
{}
Type type() const { return m_type; }