Skip to content

Add Categories property to Items#1202

Merged
chreden merged 25 commits intomasterfrom
issue/1200
Feb 4, 2024
Merged

Add Categories property to Items#1202
chreden merged 25 commits intomasterfrom
issue/1200

Conversation

@chreden
Copy link
Copy Markdown
Owner

@chreden chreden commented Jan 27, 2024

Add a Categories property to Item. The user can see this category in the items window and is able to use filters against the category property. This will help for finding all pickups, all enemies or for excluding a certain type of item amongst other uses.

The Categories field is accessible from Lua so scripts can alter the categories on an item. The categories are taken as a copy of the initial category values from the type list so they can be safely changed by a script.

Closes #1200

@chreden chreden changed the title Issue/1200 Add Categories property to Items Feb 2, 2024
@chreden chreden self-assigned this Feb 2, 2024
@chreden chreden added this to the Next milestone Feb 2, 2024
@chreden chreden marked this pull request as ready for review February 2, 2024 03:15
@chreden chreden requested a review from makotocchi February 2, 2024 03:16
@chreden chreden requested a review from lahm86 February 2, 2024 03:16
Copy link
Copy Markdown
Collaborator

@lahm86 lahm86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just some category thoughts for type_names.txt.

Comment thread trview.app/Resources/Files/type_names.txt Outdated
Comment thread trview.app/Resources/Files/type_names.txt Outdated
Comment thread trview.app/Resources/Files/type_names.txt Outdated
Comment thread trview.app/Resources/Files/type_names.txt
Comment thread trview.app/Resources/Files/type_names.txt Outdated
Comment thread trview.app/Resources/Files/type_names.txt Outdated
Comment thread trview.app/Resources/Files/type_names.txt Outdated
Comment thread trview.app/Resources/Files/type_names.txt Outdated
Comment thread trview.app/Resources/Files/type_names.txt Outdated
Comment thread trview.app/Resources/Files/type_names.txt Outdated
@chreden chreden merged commit 2e548e7 into master Feb 4, 2024
@chreden chreden deleted the issue/1200 branch February 4, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add IsPickup attribute and add to filters

2 participants