Skip to content

colors.yml

colors.yml is the palette of one cosmetic. It opens when you click that cosmetic while Colors is on. It always has 6 rows, and its layout works as under Layout.

title

title is the palette's title. Default: "Colors". Here is the title in the Download folder:

# menus/colors.yml in the Download folder
title: "<image:color_menu_row_6>Colors"

swatch

swatch is the icon of each colour, and swatch.picked is the icon of the picked colour. With item: "" in swatch.picked, or an item that cannot be found, the swatch item shows with the glint. Default: LEATHER_CHESTPLATE. In the Download folder, the icons are pack:boxcosmetics:color_swatch and pack:boxcosmetics:color_swatch_picked.

# menus/colors.yml
swatch:
  item: LEATHER_CHESTPLATE
  glow: false
  picked:
    item: ""                   # any icon; "" uses the swatch item with the glint
    glow: false
  hint:                        # under each colour but the picked one
    - "<yellow>Click:<gray> pick"
  • swatch and swatch.picked must take dye: leather armor, or a pack model with a dye tint.

reset, confirm and cancel

Reset and Confirm are the buttons left and right of the cosmetic. Each has an inactive icon, with no tooltip, for while there is no piece left to colour: for example, a worn cosmetic that was taken off while its palette was open. In the Download folder, the icons are pack:boxcosmetics:reset, pack:boxcosmetics:confirm and pack:boxcosmetics:cancel, and pack:boxcosmetics:reset_icon and pack:boxcosmetics:confirm_icon while inactive.

# menus/colors.yml
reset:
  item: WATER_BUCKET
  glow: false
  inactive:                    # while there is no piece left to colour
    item: BUCKET
    glow: false
  name: "Reset color"
confirm:
  item: LIME_DYE
  glow: false
  inactive:
    item: GRAY_DYE
    glow: false
  name: "Confirm"
cancel:                        # shown in the Reset button's place
  item: BARRIER
  glow: false
  name: "Cancel"
  • When there is no colour to reset, Cancel takes Reset's place. After a reset, Cancel brings the old colour back.
  • Only the palette opened from the Collection has a Back button. When the palette is opened anywhere else, Cancel, or Confirm with no change made, goes back.

preview

preview.hint is the lore under the cosmetic when it is not worn, on the palettes opened from the Collection and from the showcase page. A click on the cosmetic then puts it on in the picked colour.

# menus/colors.yml
preview:
  hint:
    - "<yellow>Click:<gray> wear it in this color"
The whole file
# Docs: https://docs.boxpixstudios.com/boxcosmetics/configuration/menus/colors/

title: "Colors"
layout:
  back: 45
  reset: 48
  preview: 49
  confirm: 50
  swatches: 0-35
  hues: 36-44

swatch:
  item: LEATHER_CHESTPLATE
  glow: false
  picked:
    item: ""
    glow: false
  hint:
    - "<yellow>Click:<gray> pick"
preview:
  hint:
    - "<yellow>Click:<gray> wear it in this color"

reset:
  item: WATER_BUCKET
  glow: false
  inactive:
    item: BUCKET
    glow: false
  name: "Reset color"
confirm:
  item: LIME_DYE
  glow: false
  inactive:
    item: GRAY_DYE
    glow: false
  name: "Confirm"
cancel:
  item: BARRIER
  glow: false
  name: "Cancel"