Line 311: |
Line 311: |
| |} | | |} |
| | | |
− | You can either check the fields individually, or use the game's <samp>Game1.hasOrWillReceiveMail(string id)</samp> method to check all three. | + | You can either check the fields individually, or use the game's <samp>Game1.player.hasOrWillReceiveMail(string id)</samp> method to check all three. |
| |} | | |} |
| | | |
Line 336: |
Line 336: |
| * <samp>ccBulletin</samp> (friendship bonus with many villagers); | | * <samp>ccBulletin</samp> (friendship bonus with many villagers); |
| * <samp>ccCraftsRoom</samp> (repairs bridge to the [[quarry]]); | | * <samp>ccCraftsRoom</samp> (repairs bridge to the [[quarry]]); |
− | * <samp>ccFishTank</samp> (unlocks the [[Copper Pan|copper pan]]); | + | * <samp>ccFishTank</samp> (unlocks the [[Pans|copper pan]]); |
| * <samp>ccPantry</samp> (unlocks the [[greenhouse]]); | | * <samp>ccPantry</samp> (unlocks the [[greenhouse]]); |
| * <samp>ccVault</samp> (repairs the bus and unlocks access to [[The Desert|the desert]]). | | * <samp>ccVault</samp> (repairs the bus and unlocks access to [[The Desert|the desert]]). |
Line 521: |
Line 521: |
| | The player completed the Qi's Challenge [[Quests|quest]] by reaching level 25 in the Skull Cavern. | | | The player completed the Qi's Challenge [[Quests|quest]] by reaching level 25 in the Skull Cavern. |
| |} | | |} |
| + | |
| + | ==Custom mail formatting== |
| + | You can customize mail and [[Secret Notes|secret notes]] by including three custom commands in the letter text (including the <samp>[]</samp> characters): |
| + | {| class="wikitable" |
| + | |- |
| + | ! command |
| + | ! effect |
| + | |- |
| + | | <samp>[letterbg {{t|index}}]</samp> |
| + | | Changes the default letter background to a vanilla background from <samp>LooseSprites/letterBG</samp>. The index can be 0 (default letter), 1 (Sandy's lined paper), 2 (Wizard style), or 3 (Krobus style). This will also set the default text color for that style, unless overridden by <samp>textcolor</samp>. |
| + | |- |
| + | | <samp>[letterbg {{t|asset name}} {{t|index}}]</samp> |
| + | | Changes the default letter background to the given texture. The asset name should match a texture containing two rows: one with 320x180 pixel letter background images, and one with 24x24 pixel button backgrounds shown behind attached items. The index is the sprite to use from those rows, starting at 0 for the first one. |
| + | Only the first 4 letter background images of a row will be properly displayed. |
| + | Only one row of button may exist. |
| + | See image below |
| + | |- |
| + | | <samp>[textcolor {{t|color}}]</samp> |
| + | | Changes the letter text color. The valid colors are <samp>black</samp>, <samp>blue</samp>, <samp>cyan</samp>, <samp>gray</samp>, <samp>green</samp>, <samp>orange</samp>, <samp>purple</samp>, <samp>red</samp>, and <samp>white</samp>. |
| + | |} |
| + | |
| + | |
| + | [[File:Lettersbglayers.png|center|thumb|Example : the letters background images can go on the pale pink, pink and purple spaces, while the buttons can only go on the orange line.]] |
| + | |
| + | |
| [[ru:Модификации:Почта]] | | [[ru:Модификации:Почта]] |
| [[Category:Modding]] | | [[Category:Modding]] |