Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:DynamicImageClearCustomShader

From RoR Wiki
Revision as of 19:42, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · DynamicImage functions
Version: WAR 1.4.8

Meant to remove a custom shader from a DynamicImage. In the current client it only checks its argument and does nothing else.

DynamicImageClearCustomShader(imageName)

Arguments

imageName
string – Name of a DynamicImage window.

Returns

Nothing.

Details

  • The client looks up the window and checks that it is a DynamicImage. After that the function returns without changing anything.
  • DynamicImageSetCustomShader does not set a shader either, so there is nothing to clear.
  • The error messages name DynamicImageSetRotation, not this function.
  • The function needs at least one argument and only reads the last one.
  • The stock UI never calls DynamicImageClearCustomShader.

Errors

These are written to the UI log; the call returns normally.

  • Error in function call 'DynamicImageSetRotation': Window %s does not exist
  • Error in function call 'DynamicImageSetRotation': Window %s is not a DynamicImage

Example

A minimal example built from the signature above:

DynamicImageClearCustomShader( "MyImage" )

See also