using Godot; using Rokojori; using System.Globalization; namespace Rokojori; [Tool] [GlobalClass] public partial class UINumberVariable:Resource { [Export] public string variableName = ""; [Export] public string variableValue = ""; [Export] public float variableScale = 1; public string GetFormula() { return "( " + variableScale.ToString( CultureInfo.InvariantCulture ) + " * " + variableValue + " )"; } public bool IsEqualTo( UINumberVariable other ) { if ( other == null ) { return false; } if ( other.variableName != variableName ) { return false; } if ( other.variableScale != variableScale ) { return false; } if ( other.variableValue != variableValue ) { return false; } return true; } [Export,ReadOnly] public string compileResult = ""; }