-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(obs-card): Fixed OBS Card color & styling for starforged
- Loading branch information
1 parent
4bb4765
commit a23a33b
Showing
5 changed files
with
61 additions
and
57 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
1 change: 1 addition & 0 deletions
1
src/components/features/characters/InitiativeStatusChip/index.ts
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 @@ | ||
export * from "./InitiativeStatusChip"; |
20 changes: 20 additions & 0 deletions
20
src/components/features/characters/InitiativeStatusChip/useInitiativeStatusText.ts
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,20 @@ | ||
import { useGameSystemValue } from "hooks/useGameSystemValue"; | ||
import { INITIATIVE_STATUS } from "types/Character.type"; | ||
import { GAME_SYSTEMS } from "types/GameSystems.type"; | ||
|
||
export function useInitiativeStatusText(shortVariants?: boolean) { | ||
return useGameSystemValue({ | ||
[GAME_SYSTEMS.IRONSWORN]: { | ||
[INITIATIVE_STATUS.HAS_INITIATIVE]: "Has Initiative", | ||
[INITIATIVE_STATUS.DOES_NOT_HAVE_INITIATIVE]: shortVariants | ||
? "No Initiative" | ||
: "Does not have Initiative", | ||
[INITIATIVE_STATUS.OUT_OF_COMBAT]: "Out of Combat", | ||
}, | ||
[GAME_SYSTEMS.STARFORGED]: { | ||
[INITIATIVE_STATUS.HAS_INITIATIVE]: "In Control", | ||
[INITIATIVE_STATUS.DOES_NOT_HAVE_INITIATIVE]: "In a Bad Spot", | ||
[INITIATIVE_STATUS.OUT_OF_COMBAT]: "Out of Combat", | ||
}, | ||
}); | ||
} |
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