diff --git a/CHANGELOG.md b/CHANGELOG.md index 490280c..022e58b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ * Weapons can now have modifiers for their rolls built-in. * Weapons can choose a custom target for their rolls. This can be used for unnatural creature attacks that may not line up with one of the skills. * Damage rolls can now utilize math functions like base Foundry rolls. +* Hide untrained skills toggle turned into toggleable eye icon rather than a checkbox. ### Version 1.2.6 - 2023-09-13 diff --git a/lang/ca.json b/lang/ca.json index 21d7753..aa89e33 100644 --- a/lang/ca.json +++ b/lang/ca.json @@ -128,7 +128,6 @@ "DG.CV.NationalityPlaceholder": "Nacionalitat", "DG.CV.Education": "Educació", "DG.CV.EducationPlaceholder": "Educació o entrenament", - "DG.CV.PhysicalDescriptionLabel": "Descripció física/notes", "DG.Bonds.Bond": "Vincle", "DG.Bonds.Name": "Nom", @@ -227,6 +226,16 @@ "DG.TypeSkills.Subskills.Painting": "Pintar", + "DG.Sheet.BlockHeaders.Attributes": "ATTRIBUTES", + "DG.Sheet.BlockHeaders.PhysicalDescriptionNotes": "Descripció física/notes", + "DG.Sheet.BlockHeaders.SkillsAndTraining": "SKILLS AND TRAINING", + "DG.Sheet.BlockHeaders.Injuries": "INJURIES", + "DG.Sheet.BlockHeaders.BreakingPointAndAdaptations": "BREAKING POINT AND ADAPTATIONS", + "DG.Sheet.BlockHeaders.MotivationsAndDisorders": "MOTIVATIONS AND DISDORDERS", + "DG.Sheet.BlockHeaders.PersonalInfoCV": "PERSONAL INFORMATION / CV", + "DG.Sheet.BlockHeaders.BondsRelationshipsContacts": "BONDS / RELATIONSHIPS / CONTACTS", + + "DG.UnnaturalSheet.HideUntrainedSkillsLabel": "Amagar habilitats no entrenades", "DG.UnnaturalSheet.NotesLabel": "Notes", "DG.UnnaturalSheet.ShortDescriptionFallbackText": "Descripció de la criatura o tipus de criatura", diff --git a/lang/en.json b/lang/en.json index f657e95..23aec7b 100644 --- a/lang/en.json +++ b/lang/en.json @@ -134,7 +134,6 @@ "DG.CV.NationalityPlaceholder": "Nationality", "DG.CV.Education": "Education", "DG.CV.EducationPlaceholder": "Education or Training", - "DG.CV.PhysicalDescriptionLabel": "PHYSICAL DESCRIPTION/NOTES", "DG.Bonds.Bond": "Bond", "DG.Bonds.Name": "Name", @@ -233,9 +232,19 @@ "DG.TypeSkills.Subskills.Painting": "Painting", + "DG.Sheet.BlockHeaders.Attributes": "ATTRIBUTES", + "DG.Sheet.BlockHeaders.PhysicalDescriptionNotes": "PHYSICAL DESCRIPTION / NOTES", + "DG.Sheet.BlockHeaders.SkillsAndTraining": "SKILLS AND TRAINING", + "DG.Sheet.BlockHeaders.Injuries": "INJURIES", + "DG.Sheet.BlockHeaders.BreakingPointAndAdaptations": "BREAKING POINT AND ADAPTATIONS", + "DG.Sheet.BlockHeaders.MotivationsAndDisorders": "MOTIVATIONS AND DISDORDERS", + "DG.Sheet.BlockHeaders.PersonalInfoCV": "PERSONAL INFORMATION / CV", + "DG.Sheet.BlockHeaders.BondsRelationshipsContacts": "BONDS / RELATIONSHIPS / CONTACTS", + "DG.UnnaturalSheet.HideUntrainedSkillsLabel": "Hide Untrained Skills", "DG.UnnaturalSheet.NotesLabel": "Notes", "DG.UnnaturalSheet.ShortDescriptionFallbackText": "Description of creature or creature type", + "DG.UnnaturalSheet.ShowUntrainedSkillsLabel": "Show Untrained Skills", "DG.UnnaturalSheet.Tabs.NotesTabLabel": "Skills & Notes", "DG.UnnaturalSheet.Tabs.ItemsTabLabel": "Attacks & Abilities", "DG.NPCSheet.BreakPointAbbreviation": "BP", diff --git a/lang/es.json b/lang/es.json index c08d630..5e46122 100644 --- a/lang/es.json +++ b/lang/es.json @@ -128,7 +128,6 @@ "DG.CV.NationalityPlaceholder": "Nacionalidad", "DG.CV.Education": "Educación", "DG.CV.EducationPlaceholder": "Educación o Entrenamiento", - "DG.CV.PhysicalDescriptionLabel": "Descripción Física/Notas", "DG.Bonds.Bond": "Vínculo", "DG.Bonds.Name": "Nombre", @@ -227,6 +226,15 @@ "DG.TypeSkills.Subskills.Painting": "Cuadro", + "DG.Sheet.BlockHeaders.Attributes": "ATTRIBUTES", + "DG.Sheet.BlockHeaders.PhysicalDescriptionNotes": "Descripción Física/Notas", + "DG.Sheet.BlockHeaders.SkillsAndTraining": "SKILLS AND TRAINING", + "DG.Sheet.BlockHeaders.Injuries": "INJURIES", + "DG.Sheet.BlockHeaders.BreakingPointAndAdaptations": "BREAKING POINT AND ADAPTATIONS", + "DG.Sheet.BlockHeaders.MotivationsAndDisorders": "MOTIVATIONS AND DISDORDERS", + "DG.Sheet.BlockHeaders.PersonalInfoCV": "PERSONAL INFORMATION / CV", + "DG.Sheet.BlockHeaders.BondsRelationshipsContacts": "BONDS / RELATIONSHIPS / CONTACTS", + "DG.UnnaturalSheet.HideUntrainedSkillsLabel": "Hide Untrained Skills", "DG.UnnaturalSheet.NotesLabel": "Notes", "DG.UnnaturalSheet.ShortDescriptionFallbackText": "Description of creature or creature type", diff --git a/lang/ja.json b/lang/ja.json index 126850d..a46351f 100644 --- a/lang/ja.json +++ b/lang/ja.json @@ -128,7 +128,6 @@ "DG.CV.NationalityPlaceholder": "国籍", "DG.CV.Education": "教育", "DG.CV.EducationPlaceholder": "教育", - "DG.CV.PhysicalDescriptionLabel": "身体的特徴とメモ", "DG.Bonds.Bond": "絆", "DG.Bonds.Name": "名前", @@ -227,6 +226,15 @@ "DG.TypeSkills.Subskills.Painting": "ペインティング", + "DG.Sheet.BlockHeaders.Attributes": "ATTRIBUTES", + "DG.Sheet.BlockHeaders.PhysicalDescriptionNotes": "身体的特徴とメモ", + "DG.Sheet.BlockHeaders.SkillsAndTraining": "SKILLS AND TRAINING", + "DG.Sheet.BlockHeaders.Injuries": "INJURIES", + "DG.Sheet.BlockHeaders.BreakingPointAndAdaptations": "BREAKING POINT AND ADAPTATIONS", + "DG.Sheet.BlockHeaders.MotivationsAndDisorders": "MOTIVATIONS AND DISDORDERS", + "DG.Sheet.BlockHeaders.PersonalInfoCV": "PERSONAL INFORMATION / CV", + "DG.Sheet.BlockHeaders.BondsRelationshipsContacts": "BONDS / RELATIONSHIPS / CONTACTS", + "DG.UnnaturalSheet.HideUntrainedSkillsLabel": "持たないスキルを表示しない", "DG.UnnaturalSheet.NotesLabel": "ノート", "DG.UnnaturalSheet.ShortDescriptionFallbackText": "外見・種類・など", diff --git a/lang/pt-BR.json b/lang/pt-BR.json index 70c1c77..5af5377 100644 --- a/lang/pt-BR.json +++ b/lang/pt-BR.json @@ -115,7 +115,6 @@ "DG.CV.NationalityPlaceholder": "Nacionalidade", "DG.CV.Education": "Educação", "DG.CV.EducationPlaceholder": "Educação ou Treinamento", - "DG.CV.PhysicalDescriptionLabel": "Descrição Física/Notas", "DG.Bonds.Bond": "Vínculo", "DG.Bonds.Name": "Nome", "DG.Bonds.Score": "Pontuação", @@ -199,6 +198,16 @@ "DG.RollMode": "Modo de Rolagem", "DG.Bonds.Relationship": "Relacionamento", "DG.TypeSkills.Subskills.Painting": "Pintura", + + "DG.Sheet.BlockHeaders.Attributes": "ATTRIBUTES", + "DG.Sheet.BlockHeaders.PhysicalDescriptionNotes": "Descrição Física/Notas", + "DG.Sheet.BlockHeaders.SkillsAndTraining": "SKILLS AND TRAINING", + "DG.Sheet.BlockHeaders.Injuries": "INJURIES", + "DG.Sheet.BlockHeaders.BreakingPointAndAdaptations": "BREAKING POINT AND ADAPTATIONS", + "DG.Sheet.BlockHeaders.MotivationsAndDisorders": "MOTIVATIONS AND DISDORDERS", + "DG.Sheet.BlockHeaders.PersonalInfoCV": "PERSONAL INFORMATION / CV", + "DG.Sheet.BlockHeaders.BondsRelationshipsContacts": "BONDS / RELATIONSHIPS / CONTACTS", + "DG.UnnaturalSheet.HideUntrainedSkillsLabel": "Esconder Habilidade não Treinadas", "DG.UnnaturalSheet.NotesLabel": "Notas", "DG.UnnaturalSheet.ShortDescriptionFallbackText": "Descrição de Criatura ou Tipo de Criatura", diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js index 3eb57fa..f520662 100644 --- a/module/actor/actor-sheet.js +++ b/module/actor/actor-sheet.js @@ -220,6 +220,8 @@ export class DeltaGreenActorSheet extends ActorSheet { // Rollable abilities - bind to everything with the 'Rollable' class html.find('.rollable').click(this._onRoll.bind(this)); + html.find('.toggle-untrained').click(() => this.actor.update({"system.showUntrainedSkills": !this.actor.system.showUntrainedSkills})); + // Macro for toggling an item's equipped state html.find('.equipped-item').mousedown(this._onEquippedStatusChange.bind(this)); diff --git a/templates/actor/actor-sheet.html b/templates/actor/actor-sheet.html index fc11dff..7196500 100644 --- a/templates/actor/actor-sheet.html +++ b/templates/actor/actor-sheet.html @@ -93,7 +93,7 @@ {{!-- Skills Tab --}}