-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #832 from kgar/dnd5e-4.1.x-compat
dnd5e: 4.1.x compatibility
- Loading branch information
Showing
37 changed files
with
535 additions
and
303 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
13 changes: 13 additions & 0 deletions
13
src/components/item-list/controls/DeleteOrOpenActivity.svelte
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script lang="ts"> | ||
import type { Item5e } from 'src/types/item.types'; | ||
import SpellOpenCastActivityControl from './SpellOpenCastActivityControl.svelte'; | ||
import ItemDeleteControl from './ItemDeleteControl.svelte'; | ||
export let item: Item5e; | ||
</script> | ||
|
||
{#if item.canDelete || !item.system.linkedActivity} | ||
<ItemDeleteControl {item} /> | ||
{:else} | ||
<SpellOpenCastActivityControl {item} /> | ||
{/if} |
16 changes: 16 additions & 0 deletions
16
src/components/item-list/controls/SpellOpenCastActivityControl.svelte
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<script lang="ts"> | ||
import { FoundryAdapter } from 'src/foundry/foundry-adapter'; | ||
import ItemControl from './ItemControl.svelte'; | ||
import type { Item5e } from 'src/types/item.types'; | ||
export let item: Item5e; | ||
const localize = FoundryAdapter.localize; | ||
</script> | ||
|
||
<ItemControl | ||
iconCssClass="fas fa-gear" | ||
class={$$restProps.class ?? ''} | ||
onclick={() => item.system.linkedActivity.sheet.render(true)} | ||
title={localize('DOCUMENT.DND5E.Activity')} | ||
/> |
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
Oops, something went wrong.