Changes

Jump to navigation Jump to search
→‎Custom shops: update for new fields in build 22267
Line 3,643: Line 3,643:  
| <samp>Currency</samp>
 
| <samp>Currency</samp>
 
| ''(Optional)'' The currency in which all items in the shop should be priced. The valid values are 0 (money), 1 (star tokens), 2 (Qi coins), and 4 (Qi gems). Default 0. For item trading, see <samp>TradeItemId</samp> for each item.
 
| ''(Optional)'' The currency in which all items in the shop should be priced. The valid values are 0 (money), 1 (star tokens), 2 (Qi coins), and 4 (Qi gems). Default 0. For item trading, see <samp>TradeItemId</samp> for each item.
 +
|-
 +
| <samp>OpenSound</samp>
 +
| ''(Optional)'' The [[#Custom audio|audio cue ID]] to play when the shop menu is opened. Defaults to <samp>dwop</samp>.
 +
|-
 +
| <samp>PurchaseSound</samp>
 +
| ''(Optional)'' The [[#Custom audio|audio cue ID]] to play when an item is purchased normally. Defaults to <samp>purchaseClick</samp>.
 +
|-
 +
| <samp>purchaseRepeatSound</samp>
 +
| ''(Optional)'' The [[#Custom audio|audio cue ID]] to play when accumulating a stack to purchase (e.g. by holding right-click on PC). Defaults to <samp>purchaseRepeat</samp>.
 
|-
 
|-
 
| <samp>PriceModifiers</samp>
 
| <samp>PriceModifiers</samp>
Line 3,649: Line 3,658:  
| <samp>PriceModifierMode</samp>
 
| <samp>PriceModifierMode</samp>
 
| ''(Optional)'' A [[#Quantity modifiers|quantity modifier mode]] which indicates what to do if multiple modifiers in the <samp>PriceModifiers</samp> field apply at the same time. This only affects that specific field, it won't affect price modifiers under <samp>ItemGroups</samp>. Default <samp>Stack</samp>.
 
| ''(Optional)'' A [[#Quantity modifiers|quantity modifier mode]] which indicates what to do if multiple modifiers in the <samp>PriceModifiers</samp> field apply at the same time. This only affects that specific field, it won't affect price modifiers under <samp>ItemGroups</samp>. Default <samp>Stack</samp>.
 +
|-
 +
| <samp>VisualTheme</samp>
 +
| ''(Optional)'' The visual theme to apply to the shop UI, or omit to use the default theme. The first matching theme is applied. All fields are optional and will fallback to the default theme.
 +
 +
This consists of a list of models with these fields:
 +
{| class="wikitable"
 +
|-
 +
! field
 +
! effect
 +
|-
 +
| <samp>Condition</samp>
 +
| ''(Optional)'' A [[#Game state queries|game state query]] which indicates whether this theme should be applied. Defaults to always true.
 +
|-
 +
| <samp>WindowBorderTexture</samp><br /><samp>WindowBorderSourceRect</samp>
 +
| ''(Optional)'' The texture asset name, and the pixel area within it, for the shop window border. Defaults to <samp>LooseSprites\Cursors</samp> at (384, 373) with size 18×18.
 +
|-
 +
| <samp>PortraitBackgroundTexture</samp><br /><samp>PortraitBackgroundSourceRect</samp>
 +
| ''(Optional)'' The texture asset name, and the pixel area within it, for the NPC portrait background. Defaults to <samp>LooseSprites\Cursors</samp> at (603, 414) with size 74×74.
 +
|-
 +
| <samp>DialogueBackgroundTexture</samp><br /><samp>DialogueBackgroundSourceRect</samp>
 +
| ''(Optional)'' The texture asset name, and the pixel area within it, for the NPC dialogue background. Defaults to <samp>LooseSprites\Cursors</samp> at (0, 256) with size 60×60.
 +
|-
 +
| <samp>DialogueColor</samp><br /><samp>DialogueShadowColor</samp>
 +
| ''(Optional)'' The sprite text color for the dialogue text. This can be any of the [https://docs.microsoft.com/en-us/previous-versions/windows/xna/ff433752(v=xnagamestudio.42) <samp>Color</samp> field names], like <samp>ForestGreen</samp>. Defaults to the game's standard text color.
 +
|-
 +
| <samp>ItemRowBorderTexture</samp><br /><samp>ItemRowBorderSourceRect</samp>
 +
| ''(Optional)'' The texture asset name, and the pixel area within it, for the item row border. Defaults to <samp>LooseSprites\Cursors</samp> at (384, 396) with size 15×15.
 +
|-
 +
| <samp>ItemRowBorderHoverColor</samp>
 +
| ''(Optional)'' The color tint to apply to the item row border when the cursor is hovering over it, or <samp>White</samp> for no tint. This can be any of the [https://docs.microsoft.com/en-us/previous-versions/windows/xna/ff433752(v=xnagamestudio.42) <samp>Color</samp> field names], like <samp>ForestGreen</samp>. Defaults to <samp>Wheat</samp>.
 +
|-
 +
| <samp>ItemRowTextColor</samp>
 +
| ''(Optional)'' The sprite text color for the item text. This can be any of the [https://docs.microsoft.com/en-us/previous-versions/windows/xna/ff433752(v=xnagamestudio.42) <samp>Color</samp> field names], like <samp>ForestGreen</samp>. Defaults to the game's standard text color.
 +
|-
 +
| <samp>ItemIconBackgroundTexture</samp><br /><samp>ItemIconBackgroundSourceRect</samp>
 +
| ''(Optional)'' The texture asset name, and the pixel area within it, for the background behind the item icons. Defaults to <samp>LooseSprites\Cursors</samp> at (33, 256) with size 18×18.
 +
|-
 +
| <samp>ScrollUpTexture</samp><br /><samp>ScrollUpSourceRect</samp>
 +
| ''(Optional)'' The texture asset name, and the pixel area within it, for the up arrow icon above the scrollbar. Defaults to <samp>LooseSprites\Cursors</samp> at (421, 459) with size 11×12.
 +
|-
 +
| <samp>ScrollDownTexture</samp><br /><samp>ScrollDownSourceRect</samp>
 +
| ''(Optional)'' The texture asset name, and the pixel area within it, for the down arrow icon beneath the scrollbar. Defaults to <samp>LooseSprites\Cursors</samp> at (421, 472) with size 11×12.
 +
|-
 +
| <samp>ScrollBarFrontTexture</samp><br /><samp>ScrollBarFrontSourceRect</samp>
 +
| ''(Optional)'' The texture asset name, and the pixel area within it, for the sliding scrollbar foreground. Defaults to <samp>LooseSprites\Cursors</samp> at (432, 463) with size 6×10.
 +
|-
 +
| <samp>ScrollBarBackTexture</samp><br /><samp>ScrollBarFrontBackRect</samp>
 +
| ''(Optional)'' The texture asset name, and the pixel area within it, for the scrollbar background. Defaults to <samp>LooseSprites\Cursors</samp> at (403, 383) with size 6×6.
 +
|}
 
|}
 
|}
  
translators
8,446

edits

Navigation menu