39 lines
No EOL
1.5 KiB
Markdown
39 lines
No EOL
1.5 KiB
Markdown
# Feature: Build Skills tab
|
|
The second tab of the addon will follow these [designs](./build_skills_tab_design.png).
|
|
|
|
## Acceptance Criteria
|
|
- This screen should show the same skills we use in the main screen, which come from the TRP profile
|
|
- The skills should be sorted by level
|
|
- The skill list should be scrollable, with the "Save" button pinned/sticky to the bottom
|
|
## Editing skills
|
|
- The user should be able to edit the name, level, and numerical score of each skill
|
|
- Edits should not be saved until the user explicitly clicks the "Save" button
|
|
### Skill Level and Value
|
|
- When a skill level is selected, the numerical score dropdown should update to only allow values within the skill level
|
|
- Inept: 0
|
|
- Novice: 1-5
|
|
- Adept: 6-10
|
|
- Expert: 11-19
|
|
- Master: 20
|
|
### Deleting skills
|
|
- Clicking the "Delete" button should remove the skill from the list
|
|
### Adding Skills
|
|
- Clicking the "Add a Row" button should add a new skill row to the list
|
|
- Default values for the new skill should be:
|
|
- Name: Skillname
|
|
- Level: Novice
|
|
- Value: 1
|
|
### Saving Skills
|
|
- When clicking the "Save" button:
|
|
- Newly added skills should be added to the TRP profile
|
|
- Existing skills should be updated in the TRP profile
|
|
- Skills that were deleted should also be removed from the TRP profile
|
|
- Icons should not be changed
|
|
## References
|
|
- Refer to [Data.lua](../Data.lua) for details on how we currently fetch the skills from TRP
|
|
- Refer to the TRP3 source code in case it's necessary [here](https://github.com/Total-RP/Total-RP-3)
|
|
|
|
---
|
|
|
|
## Implementation Plan
|
|
TODO |