mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Use boolean literals in scripts
This commit is contained in:
@@ -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()),
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ DefaultButtonModel = Dialog.Cancel;
|
||||
ButtonModelToFocus = Dialog.Cancel;</Script>
|
||||
<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);
|
||||
}</Script>
|
||||
</Scripts>
|
||||
|
||||
Reference in New Issue
Block a user