You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Creates a single DMI or PNG using 'sprites' as a list of icon states / images.
50
+
/// This function is intended for generating icons with only a few states that have little in common with each other, and only one size.
51
+
/// For icons with a large number of states, potentially variable sizes, that re-use sets of transforms more than once, or that benefit from caching, use rustg_iconforge_generate.
52
+
/// sprites - follows the same format as rustg_iconforge_generate.
53
+
/// file_path - the full relative path at which the PNG or DMI will be written. It must be a full filepath such as tmp/my_icon.dmi or my_icon.png
54
+
/// flatten - boolean (0 or 1) determines if the DMI output will be flattened to a single frame/dir if unscoped (null/0 dir or frame values).
55
+
///
56
+
/// Returns a HeadlessResult, decoded to a BYOND list (always, it's not possible for this to panic unless rustg itself has an issue) containing the following fields:
57
+
/// list(
58
+
/// "file_path" = "tmp/my_icon.dmi" // [whatever you input returned back to you, null if there was a fatal error]
59
+
/// "width" = 32 // the width, which is determined by the first entry of 'sprites', null if there was a fatal error
60
+
/// "height" = 32 // the height, which is determined by the first entry of 'sprites', null if there was a fatal error
61
+
/// "error" = "[A string, null if there were no errors.]"
/// Applies a list of Transforms to UniversalIconData immediately and sequentially, while handling any errors. Optionally flattens to only the first dir and frame.
0 commit comments