Celestia/Celx Scripting/CELX Lua Methods/CEL command settextureresolution

From Wikibooks, open books for an open world
Jump to navigation Jump to search

settextureresolution[edit]

settextureresolution { resolution <string> }

Set the texture resolution.


Arguments:

resolution <string>
String, that corresponds with one of the available texture resolutions. Must be:
  • "low" for low resolution (lores)
  • "medium" for medium resolution (medres)
  • "high" for high resolution (hires)


CELX equivalent:

Based on the 1.6.0 celestia:settextureresolution() method.

  • Set the resolution to <string>.
    • If <string> is "low", <number> is 0
    • If <string> is "medium", <number> is 1
    • If <string> is "high", <number> is 2
celestia:settextureresolution(<number>)


Example:
The non commented line determines the texture resolution.

CEL:

# settextureresolution { resolution "low" }
# settextureresolution { resolution "medium" }
settextureresolution { resolution "high" }

CELX:

-- celestia:settextureresolution(0)
-- celestia:settextureresolution(1)
celestia:settextureresolution(2)


Back to CEL command index