Skip to content

Commit

Permalink
Merge pull request #4 from kandashi/0.0.24
Browse files Browse the repository at this point in the history
name fix
  • Loading branch information
kandashi authored Jan 18, 2021
2 parents be29dbd + bdd43cb commit 23de282
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Combat-Focus
# Next-Up

This module will auto focus on the current combatants token at the start of their turn, and pull up its specific actor sheet (only for the GM).
It can close the previous combatants sheet or all opened character sheets

![Combat Focus 1](https://github.com/kandashi/Combat-Focus/blob/main/Images/auto%20focus.gif?raw=true)
![Combat Focus 1](https://github.com/kandashi/Next-Up/blob/main/Images/auto%20focus.gif?raw=true)

![Combat Focus 2](https://github.com/kandashi/Combat-Focus/blob/main/Images/auto%20focus%202.gif?raw=true)
![Combat Focus 2](https://github.com/kandashi/Next-Up/blob/main/Images/auto%20focus%202.gif?raw=true)



Expand Down
14 changes: 7 additions & 7 deletions module.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "Combat-Focus",
"title": "Combat Focus",
"description": "Auto focus to current combatant",
"version": "0.0.23",
"name": "Next-Up",
"title": "Next Up",
"description": "Auto focus to current combatant for GM clients",
"version": "0.0.24",
"authors": [
{
"name": "Kandashi",
Expand All @@ -12,9 +12,9 @@
"scripts": [
"/src/combatFocus.js"
],
"url": "https://github.com/kandashi/Combat-Focus",
"manifest": "https://raw.githubusercontent.com/kandashi/Combat-Focus/main/module.json",
"download": "https://github.com/kandashi/Combat-Focus/archive/main.zip",
"url": "https://github.com/kandashi/Next-Up",
"manifest": "https://raw.githubusercontent.com/kandashi/Next-Up/main/module.json",
"download": "https://github.com/kandashi/Next-Up/archive/main.zip",
"minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.9"
}
12 changes: 6 additions & 6 deletions src/combatFocus.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Hooks.on('init', () => {
game.settings.register("Combat-Focus", "combatFocus", {
game.settings.register("Next-Up", "combatFocus", {
name: 'Combatant Focus',
hint: 'Auto focuses to the current combatant in combat and opens their character sheet in the specified position',
scope: 'world',
Expand All @@ -13,15 +13,15 @@ Hooks.on('init', () => {
config: true,
});

game.settings.register("Combat-Focus", "close-old", {
game.settings.register("Next-Up", "close-old", {
name: 'Close old combatant actor sheet',
hint: 'Close all previous combatants sheet on turn change',
scope: 'world',
type: Boolean,
default: false,
config: true,
});
game.settings.register("Combat-Focus", "close-all", {
game.settings.register("Next-Up", "close-all", {
name: 'Close all actor sheets',
hint: 'Close all open actor sheet on turn change',
scope: 'world',
Expand Down Expand Up @@ -62,9 +62,9 @@ Hooks.on('init', () => {
return;
}

const combatFocus = game.settings.get('Combat-Focus', 'combatFocus')
const closeAll = game.settings.get('Combat-Focus', 'close-all')
const closeOld = game.settings.get('Combat-Focus', 'close-old')
const combatFocus = game.settings.get('Next-Up', 'combatFocus')
const closeAll = game.settings.get('Next-Up', 'close-all')
const closeOld = game.settings.get('Next-Up', 'close-old')
let currentWindows = Object.values(ui.windows)
if (combatFocus !== "0") {
await sleep(5)
Expand Down

0 comments on commit 23de282

Please sign in to comment.