From 14505cd0065a3c475067a3d55e3a79395ca9539f Mon Sep 17 00:00:00 2001 From: Yoshi Askharoun Date: Sun, 20 Jul 2025 10:24:35 -0500 Subject: [PATCH] Use boolean literals in scripts --- libs/UIX.DecompXml/Mock/IrisExpression.cs | 1 + test/ABOUTDIALOG.31_48_decomp.uix | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/UIX.DecompXml/Mock/IrisExpression.cs b/libs/UIX.DecompXml/Mock/IrisExpression.cs index a935671..82a32c2 100644 --- a/libs/UIX.DecompXml/Mock/IrisExpression.cs +++ b/libs/UIX.DecompXml/Mock/IrisExpression.cs @@ -41,6 +41,7 @@ internal abstract class IrisExpression : Expression { null => LiteralExpression(SyntaxKind.NullLiteralExpression), int intValue => LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal(intValue)), + bool boolValue => LiteralExpression(boolValue ? SyntaxKind.TrueLiteralExpression : SyntaxKind.FalseLiteralExpression), string strValue => LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(strValue)), IStringEncodable strEnc => ParseExpression(strEnc.EncodeString()), diff --git a/test/ABOUTDIALOG.31_48_decomp.uix b/test/ABOUTDIALOG.31_48_decomp.uix index 82ca396..d345140 100644 --- a/test/ABOUTDIALOG.31_48_decomp.uix +++ b/test/ABOUTDIALOG.31_48_decomp.uix @@ -17,7 +17,7 @@ DefaultButtonModel = Dialog.Cancel; ButtonModelToFocus = Dialog.Cancel;