-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working on issue #102. Basic support for linking items to skills, and…
… making skill rolls using the item. Can now select a skill on owned items that is saved on the item. Deliberately no filtering of the skill you can select. If you click an item with a linked skill, it is rolled, emitting a text like: 'Rolling Skillname using Itemname'. If it isn't linked, no roll occurs. TODO Support advanced skill rolls (shift-click) TODO Add a 'permanent modifier' field TODO Clean up the code TODO Clean up the layout
- Loading branch information
Showing
5 changed files
with
92 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
export class AbstractTwodsixItemSheet extends ItemSheet { | ||
|
||
protected handleContentEditable(html:JQuery<HTMLElement>) { | ||
protected handleContentEditable(html:JQuery<HTMLElement>):void { | ||
html.find('div[contenteditable="true"][data-edit]').on( | ||
'focusout', | ||
this._onSubmit.bind(this) | ||
); | ||
} | ||
|
||
|
||
protected activateListeners(html:JQuery):void { | ||
super.activateListeners(html); | ||
} | ||
|
||
getData():ItemSheetData<any> { | ||
const data = super.getData(); | ||
data.data.owner = this.actor; | ||
|
||
return data; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters