diff --git a/docs/5-build_skills.md b/docs/5-build_skills.md new file mode 100644 index 0000000..ed573ec --- /dev/null +++ b/docs/5-build_skills.md @@ -0,0 +1,39 @@ +# 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 \ No newline at end of file diff --git a/docs/build_skills_tab_design.png b/docs/build_skills_tab_design.png new file mode 100644 index 0000000..ddbfdd3 Binary files /dev/null and b/docs/build_skills_tab_design.png differ diff --git a/docs/roll_tab_design.png b/docs/roll_tab_design.png index 5754915..3ebb626 100644 Binary files a/docs/roll_tab_design.png and b/docs/roll_tab_design.png differ