Use boolean literals in scripts

This commit is contained in:
Yoshi Askharoun
2025-07-20 10:24:35 -05:00
parent 8cbf503008
commit 14505cd006
2 changed files with 2 additions and 1 deletions
@@ -41,6 +41,7 @@ internal abstract class IrisExpression : Expression
{ {
null => LiteralExpression(SyntaxKind.NullLiteralExpression), null => LiteralExpression(SyntaxKind.NullLiteralExpression),
int intValue => LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal(intValue)), int intValue => LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal(intValue)),
bool boolValue => LiteralExpression(boolValue ? SyntaxKind.TrueLiteralExpression : SyntaxKind.FalseLiteralExpression),
string strValue => LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(strValue)), string strValue => LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(strValue)),
IStringEncodable strEnc => ParseExpression(strEnc.EncodeString()), IStringEncodable strEnc => ParseExpression(strEnc.EncodeString()),
+1 -1
View File
@@ -17,7 +17,7 @@ DefaultButtonModel = Dialog.Cancel;
ButtonModelToFocus = Dialog.Cancel;</Script> ButtonModelToFocus = Dialog.Cancel;</Script>
<Script>if (iris:Application.RenderingType == iris:RenderingType.GDI) <Script>if (iris:Application.RenderingType == iris:RenderingType.GDI)
{ {
GDIModeLabel.Visible = True; GDIModeLabel.Visible = true;
GDIModeLabel.Content = zuneUI:Shell.LoadString(zuneUI:StringId.IDS_ABOUTDIALOG_GDI_MODE_NOTICE); GDIModeLabel.Content = zuneUI:Shell.LoadString(zuneUI:StringId.IDS_ABOUTDIALOG_GDI_MODE_NOTICE);
}</Script> }</Script>
</Scripts> </Scripts>