User Tools

Site Tools


plugin-card-layers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin-card-layers [2024/12/03 11:56] – [Badge Text] banerjeeswplugin-card-layers [2025/06/27 22:41] (current) – [Badge Notetags] isiahgames
Line 20: Line 20:
 ===== Layer Properties ===== ===== Layer Properties =====
  
-Layers all have the following properties, with some exceptions:+Card Art Layer elements all have the following properties:
  
 |  **Name**  | The name of the Layer. | |  **Name**  | The name of the Layer. |
-|  **Priority**  | A number representing the order of all Layers in the Card. Higher number means farther in front. |+|  **Priority**  | A number representing the order of all Elements in the Card. Higher number means farther in front. |
 |  **Image**  | The image of the Layer, located in img/CGC/bases for the Back and Base Layers and in img/CGC/art for all other Layers | |  **Image**  | The image of the Layer, located in img/CGC/bases for the Back and Base Layers and in img/CGC/art for all other Layers |
 |  **Position Offset**  | The offset position of the Layer. | |  **Position Offset**  | The offset position of the Layer. |
Line 107: Line 107:
 ===== Badges ===== ===== Badges =====
  
-Badges are special components that have an image property and a text property. Instead of having a Priority, they're associated with a Layer and are placed directly on that Layer. Badges have the following properties:+Badges are special components that have an image property and a text property. Badges have the following properties:
  
 | **Name** | The name of the Badge. | | **Name** | The name of the Badge. |
-| **Layer Name** | The Layer the Badge is attached to. |+| **Priority** | A number representing the order of all Elements in the Card. Higher number means farther in front. |
 | **Image** | The image of the Badge, located in img/CGC/art. | | **Image** | The image of the Badge, located in img/CGC/art. |
 | **Position Offset** | The offset position of the Badge. | | **Position Offset** | The offset position of the Badge. |
Line 158: Line 158:
 card.cardVar(1) card.cardVar(1)
 </code> </code>
 +
 +===== Badge Notetags =====
 +
 +Badge notetags work similarly to Layer notetags and use the following syntax:
 +
 +<code>
 +BadgeName (Priority): TextCode | ImageName | X Y | Condition
 +</code>
 +
 +|  **BadgeName**  | The name of the Badge whose values are being defined/overridden. Can have spaces and is case-insensitive. |
 +| **Priority** | A number from 1 to 500 that overrides the default Priority of the badge. |
 +| **TextCode** | The code that returns the text for the Badge to display. |
 +| **ImageName** | The name of the image file to use for the Badge. Can have spaces. |
 +| **X** | The new X offset |
 +| **Y** | The new Y offset |
 +| **Condition** | The new condition for the Badge. |
 +
 +Just like with Layers, you can use notetags to define entirely new Badges or override the values defined through the Custom Badges plugin parameter.
 ===== Conditions ===== ===== Conditions =====
  
plugin-card-layers.1733223397.txt.gz · Last modified: 2024/12/03 11:56 by banerjeesw