From 59ddfc2c1545740a9d5cac0c822ae97b503732eb Mon Sep 17 00:00:00 2001 From: N Date: Tue, 4 Aug 2026 17:13:34 -0300 Subject: [PATCH] Document `SMODS.card_to_image` --- Utility.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Utility.md b/Utility.md index b2822971..add7fc90 100644 --- a/Utility.md +++ b/Utility.md @@ -7,6 +7,7 @@ Steamodded provides utility functions that extend or replace vanilla functionali - [Mod-facing Utilities](#mod-facing-utilities) - [Joker Effects](#joker-effects) - [Card Methods](#card-methods) +- [Miscellaneous](#miscellaneous) *** @@ -270,3 +271,11 @@ This function checks whether a card object should display the front sprite or no This function checks if a Joker is a certain rarity. Accepts a number for vanilla rarities, or a key as a string for modded rarities. #### `Card:can_calculate(ignore_debuff, ignore_sliced) -> boolean` This function checks whether a card can run its `calculate` function. + +## Miscellaneous + +#### `SMODS.card_to_image(card, scale, filename)` +Renders one card to a `.png` file, saved to your save directory (the folder above the Mods folder). + - `card` - Card to save as an image + - `scale` Scale to render the card at (default = `G.SETTINGS.GRAPHICS.texture_scaling`) + - `filename` - Name of the file (default = `card.config.center.key`) \ No newline at end of file