Skip to content

[Questions] Is it possible to only have some options added to the sorting and filtering and not all #30

@noaskers

Description

@noaskers
    sorting:
      slots$: 'last_slot - 7'
      type: COMPARATOR
      name$: '@{SORTING-NAME}'
      lore$:
      - '" "'
      - |
        if not has_permission then
          @{SORTING-LORE-NO-PERMISSION}
        else
          flatten(
            map(sorting_selections, (entry, entry_index) => (
              (if entry_index == selected_index then
                @{SORTING-LORE-ENTRY-PREFIX-ACTIVE}
              else
                @{SORTING-LORE-ENTRY-PREFIX-INACTIVE})
              & (lut["sortingSelectionStyle"][str(entry.selection)] ?? "&4?")
              & (lut["sortingCriteria"][str(entry.criterion)] ?? "&4?")
            )),
            " ",
            @{SORTING-LORE-LEFT-CLICK-DESCRIPTION},
            @{SORTING-LORE-RIGHT-CLICK-DESCRIPTION},
            @{SORTING-LORE-DROP-DESCRIPTION},
            @{SORTING-LORE-DROP-ALL-DESCRIPTION}
          )

I want to be able to change that only a few are visible I like the coding support its very nice but might be a bit hard to understand for some.

Wanted to look if it was possible to remove the hole thing and make it like: the one you are on is active but thats something for later down the line!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions