| /proc/get_icon_dimensions | Returns a list containing the width and height of an icon file |
|---|
| /proc/generate_and_hash_rsc_file | Generates a filename for a given asset.
Like generate_asset_name(), except returns the rsc reference and the rsc file hash as well as the asset name (sans extension)
Used so that certain asset files dont have to be hashed twice |
|---|
| /proc/get_dummy_savefile | Gets a dummy savefile for usage in icon generation.
Savefiles generated from this proc will be empty. |
|---|
| /proc/icon2base64 | Converts an icon to base64. Operates by putting the icon in the iconCache savefile,
exporting it as text, and then parsing the base64 from that.
(This relies on byond automatically storing icons in savefiles as base64) |
|---|
| /proc/icon_exists | Checks if the given iconstate exists in the given file, caching the result. Setting scream to TRUE will print a stack trace ONCE. |
|---|
| /proc/is_valid_dmi_file | given a text string, returns whether it is a valid dmi icons folder path |
|---|
| /proc/get_icon_dmi_path | Given an icon object, dmi file path, or atom/image/mutable_appearance, attempts to find and return an associated dmi file path.
A weird quirk about dm is that /icon objects represent both compile-time or dynamic icons in the rsc,
But stringifying rsc references returns a dmi file path
ONLY if that icon represents a completely unchanged dmi file from when the game was compiled.
So if the given object is associated with an icon that was in the rsc when the game was compiled, this returns a path. otherwise it returns "" |
|---|
| /proc/generate_asset_name | Generate a filename for this asset
The same asset will always lead to the same asset name
(Generated names do not include file extention.) |
|---|
| /proc/icon2html | generate an asset for the given icon or the icon of the given appearance for [thing], and send it to any clients in target.
Arguments: |
|---|
| /proc/center_image | Center's an image. Only run this on float overlays and not physical
Requires:
The Image
The x dimension of the icon file used in the image
The y dimension of the icon file used in the image
eg: center_image(image_to_center, 32,32)
eg2: center_image(image_to_center, 96,96) |
|---|
| /proc/get_small_overlay | Fikou's fix for making toast alerts look nice - resets offsets, transforms to fit |
|---|
| /proc/pixel_shift_dir | Returns a list with pixel_shift values that will shift an object's icon one tile in the direction passed. |
|---|