Skip to content

Commit

Permalink
Allow JavaScript extensions to use resource parameters. (#5559)
Browse files Browse the repository at this point in the history
  • Loading branch information
D8H authored Aug 11, 2023
1 parent 71fead7 commit 99804f3
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,36 @@ export default function ValueTypeEditor({
label={t`Created objects`}
/>
)}
{!isExpressionType && (
<SelectOption
value="imageResource"
label={t`Image resource (JavaScript only)`}
/>
)}
{!isExpressionType && (
<SelectOption
value="audioResource"
label={t`Audio resource (JavaScript only)`}
/>
)}
{!isExpressionType && (
<SelectOption
value="jsonResource"
label={t`JSON resource (JavaScript only)`}
/>
)}
{!isExpressionType && (
<SelectOption
value="fontResource"
label={t`Font resource (JavaScript only)`}
/>
)}
{!isExpressionType && (
<SelectOption
value="bitmapFontResource"
label={t`Bitmap font resource (JavaScript only)`}
/>
)}
</SelectField>
)}
{valueTypeMetadata.isObject() && (
Expand Down

0 comments on commit 99804f3

Please sign in to comment.