feat!: port DS4 actor sheets to ApplicationV2
Convert DS4ActorSheet, DS4CharacterActorSheet, and DS4CreatureActorSheet from ApplicationV1 to ApplicationV2 architecture. Update all templates to use data-action attributes. Implement manual tab system and preserve all existing functionality including item management, effects, and rolling system. BREAKING CHANGE: Requires FoundryVTT ApplicationV2 system
This commit is contained in:
parent
2a797ed8ed
commit
cd44db079f
15 changed files with 626 additions and 508 deletions
|
@ -13,7 +13,7 @@ SPDX-License-Identifier: MIT
|
|||
}}
|
||||
{{#if @root/editable}}
|
||||
<div class="ds4-add-button">
|
||||
<a class="control-{{documentType}}" title="{{localize title}}" data-action="create" {{#if type}}data-type="{{type}}"
|
||||
<a class="ds4-add-button__link" title="{{localize title}}" data-action="create{{documentType}}" {{#if type}}data-type="{{type}}"
|
||||
{{/if}}>
|
||||
<i class="fas fa-plus"></i>
|
||||
{{localize "DS4.UserInteractionAdd"}}
|
||||
|
|
|
@ -14,9 +14,9 @@ SPDX-License-Identifier: MIT
|
|||
--}}
|
||||
<div class="ds4-control-button-group">
|
||||
{{#if @root/editable}}
|
||||
<a class="ds4-control-button-group__button control-{{documentType}}" data-action="edit"
|
||||
<a class="ds4-control-button-group__button" data-action="edit{{documentType}}" data-document-type="{{documentType}}"
|
||||
title="{{localize editTitle}}"><i class="fas fa-edit"></i></a>
|
||||
<a class="ds4-control-button-group__button control-{{documentType}}" data-action="delete"
|
||||
<a class="ds4-control-button-group__button" data-action="delete{{documentType}}" data-document-type="{{documentType}}"
|
||||
title="{{localize deleteTitle}}"><i class="fas fa-trash"></i></a>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
|
|
@ -7,13 +7,14 @@ SPDX-License-Identifier: MIT
|
|||
{{!--
|
||||
!-- Render an image that has a dice overlay image.
|
||||
!-- @param rollable: A flag indicating whether or not the image is actually rollable.
|
||||
!-- @param rollableClass: The CSS class(es) to add if the image is rollable.
|
||||
!-- @param rollableAction: The action to trigger when the image is clicked (e.g. "rollItem").
|
||||
!-- @param title: The title for the rollable image if it is not actually rollable.
|
||||
!-- @param rollableTitle: The title for the rollable image if it is rollable.
|
||||
!-- @param src: The path to the image.
|
||||
!-- @param alt: An alternate text for the image.
|
||||
--}}
|
||||
<div class="ds4-rollable-image{{#if rollable}} ds4-rollable-image--rollable {{rollableClass}}{{/if}}"
|
||||
<div class="ds4-rollable-image{{#if rollable}} ds4-rollable-image--rollable{{/if}}"
|
||||
{{#if rollable}}data-action="{{rollableAction}}"{{/if}}
|
||||
title="{{#if rollable}}{{rollableTitle}}{{else}}{{title}}{{/if}}">
|
||||
{{#if src}}
|
||||
<img class="ds4-rollable-image__image" alt="{{alt}}" src="{{src}}" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue