Skip to content

Commit

Permalink
Add global wait functions
Browse files Browse the repository at this point in the history
  • Loading branch information
morganwillcock committed Nov 5, 2022
1 parent ec24138 commit bedfd6e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/prism-ags.js
Expand Up @@ -95,12 +95,14 @@ Prism.languages.ags = {
"FadeIn" "FadeOut" "FlipScreen" "SetFadeColor" "SetNextScreenTransition" "SetScreenTransition" "ShakeScreen" "ShakeScreenBackground" "TintScreen"
"SkipWait" "Wait" "WaitInput" "WaitKey" "WaitMouseKey" "WaitMouse"
"FloatToInt" "IntToFloat"
"StopDialog"
*/
'global-function': {
pattern: /\b(?:A(?:bortGame|reThingsOverlapping)|C(?:DAudio|allRoomScript|laimEvent|yclePalette)|D(?:e(?:bug|leteSaveSlot)|is(?:able(?:GroundLevelAreas|Interface)|play(?:AtY?|Message(?:AtY)?|TopBar)?))|En(?:able(?:GroundLevelAreas|Interface)|dCutscene)|F(?:ade(?:In|Out)|l(?:ipScreen|oatToInt))|G(?:et(?:BackgroundFrame|DrawingSurfaceForWalk(?:ableArea|behind)|Font(?:Height|LineSpacing)|G(?:ame(?:Option|Parameter|Speed)|lobalInt|raphicalVariable)|LocationType|PlayerCharacter|ScalingAt|T(?:ext(?:Height|Width)|ranslation)|Viewport[XY]|WalkableAreaAt(?:Room|Screen)?)|iveScore)|HasPlayerBeenInRoom|I(?:n(?:tToFloat|ventoryScreen)|s(?:GamePaused|Inter(?:actionAvailable|faceEnabled)|KeyPressed|SpeechVoxAvailable|T(?:imerExpired|ranslationAvailable)))|MoveCharacterTo(?:(?:Hotspo|Objec)t)|P(?:auseGame|lay(?:Flic|SilentMIDI|Video))|QuitGame|R(?:andom|e(?:leaseViewport|moveWalkableArea|s(?:etRoom|t(?:artGame|ore(?:Game(?:Dialog|Slot)|WalkableArea))))|unAGSGame)|S(?:ave(?:Game(?:Dialog|Slot)|ScreenShot)|et(?:A(?:mbient(?:LightLevel|Tint)|reaScaling)|BackgroundFrame|FadeColor|G(?:ame(?:Option|Speed)|lobalInt|raphicalVariable)|MultitaskingMode|NextScreenTransition|PalRGB|RestartPoint|S(?:creenTransition|peechVolume)|T(?:extWindowGUI|imer)|Viewport|WalkBehindBase)|hakeScreen(?:Background)?|kip(?:Cutscene|UntilCharacterStops)|t(?:artCutscene|opDialog))|TintScreen|U(?:nPauseGame|pdate(?:Inventory|Palette)))\b/,
pattern: /\b(?:A(?:bortGame|reThingsOverlapping)|C(?:DAudio|allRoomScript|laimEvent|yclePalette)|D(?:e(?:bug|leteSaveSlot)|is(?:able(?:GroundLevelAreas|Interface)|play(?:AtY?|Message(?:AtY)?|TopBar)?))|En(?:able(?:GroundLevelAreas|Interface)|dCutscene)|F(?:ade(?:In|Out)|l(?:ipScreen|oatToInt))|G(?:et(?:BackgroundFrame|DrawingSurfaceForWalk(?:ableArea|behind)|Font(?:Height|LineSpacing)|G(?:ame(?:Option|Parameter|Speed)|lobalInt|raphicalVariable)|LocationType|PlayerCharacter|ScalingAt|T(?:ext(?:Height|Width)|ranslation)|Viewport[XY]|WalkableAreaAt(?:Room|Screen)?)|iveScore)|HasPlayerBeenInRoom|I(?:n(?:tToFloat|ventoryScreen)|s(?:GamePaused|Inter(?:actionAvailable|faceEnabled)|KeyPressed|SpeechVoxAvailable|T(?:imerExpired|ranslationAvailable)))|MoveCharacterTo(?:(?:Hotspo|Objec)t)|P(?:auseGame|lay(?:Flic|SilentMIDI|Video))|QuitGame|R(?:andom|e(?:leaseViewport|moveWalkableArea|s(?:etRoom|t(?:artGame|ore(?:Game(?:Dialog|Slot)|WalkableArea))))|unAGSGame)|S(?:ave(?:Game(?:Dialog|Slot)|ScreenShot)|et(?:A(?:mbient(?:LightLevel|Tint)|reaScaling)|BackgroundFrame|FadeColor|G(?:ame(?:Option|Speed)|lobalInt|raphicalVariable)|MultitaskingMode|NextScreenTransition|PalRGB|RestartPoint|S(?:creenTransition|peechVolume)|T(?:extWindowGUI|imer)|Viewport|WalkBehindBase)|hakeScreen(?:Background)?|kip(?:Cutscene|UntilCharacterStops|Wait)|t(?:artCutscene|opDialog))|TintScreen|U(?:nPauseGame|pdate(?:Inventory|Palette))|Wait(?:Input|Key|Mouse(?:Key)?)?)\b/,
alias: 'builtin'
},
/*
Expand Down
6 changes: 6 additions & 0 deletions examples/prism-ags.html
Expand Up @@ -556,12 +556,18 @@ <h2>Global functions</h2>
ShakeScreenBackground
SkipCutscene
SkipUntilCharacterStops
SkipWait
StartCutscene
StopDialog
TintScreen
UnPauseGame
UpdateInventory
UpdatePalette
Wait
WaitInput
WaitKey
WaitMouse
WaitMouseKey
</code></pre>

<h2>Global objects</h2>
Expand Down

0 comments on commit bedfd6e

Please sign in to comment.