forked from foundryvtt/dnd5e
-
Notifications
You must be signed in to change notification settings - Fork 0
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 foundryvtt#3906 from foundryvtt/activity/use
[foundryvtt#1964] Move use method from item to activity
- Loading branch information
Showing
8 changed files
with
725 additions
and
325 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
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,26 @@ | ||
import Application5e from "../api/application.mjs"; | ||
|
||
/** | ||
* Dialog for configuring the usage of an activity. | ||
*/ | ||
export default class ActivityUsageDialog extends Application5e { | ||
|
||
// TODO: Implement activation dialog | ||
|
||
/* -------------------------------------------- */ | ||
/* Factory Methods */ | ||
/* -------------------------------------------- */ | ||
|
||
/** | ||
* Display the activity usage dialog. | ||
* @param {Activity} activity Activity to use. | ||
* @param {ActivityUseConfiguration} config Configuration data for the usage. | ||
* @param {object} options Additional options for the application. | ||
* @returns {Promise<object|null>} Form data object with results of the activation. | ||
*/ | ||
static async create(activity, config, options) { | ||
return new Promise(resolve => { | ||
resolve({}); | ||
}); | ||
} | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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.