forked from Z3nner/lancer-weapon-fx
-
-
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.
This allows a GM user to customize their FX. Features: - May define macros for items by "name" or "Lancer ID" - Macros overwrite module defaults - Extensive drag-drop support - Folder system - "Execute Macro" preview button - "Export/Import" buttons to transfer state between worlds - Effects Manger respects system theme choice
- Loading branch information
Showing
20 changed files
with
1,590 additions
and
36 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,87 @@ | ||
.lwfx-effects-manager { | ||
color: var(--dark-text); | ||
background: var(--background-color); | ||
} | ||
|
||
/* -------------------------------------------- */ | ||
|
||
.lwfx-effects-manager__vr { | ||
height: 100%; | ||
border: 1px solid var(--primary-color, fuschia); | ||
} | ||
|
||
.lwfx-effects-manager__hr { | ||
border-color: var(--primary-color, fuschia); | ||
} | ||
|
||
/* -------------------------------------------- */ | ||
|
||
.lwfx-effects-manager__row { | ||
margin-top: calc(0.5 * var(--lwfx-spacer)); | ||
margin-bottom: calc(0.5 * var(--lwfx-spacer)); | ||
} | ||
|
||
/* -------------------------------------------- */ | ||
|
||
.lwfx-effects-manager__folder, | ||
.lwfx-effects-manager__uncategorized { | ||
border: 2px solid var(--primary-color); | ||
border-top: 0; | ||
} | ||
|
||
.lancer.app input.lwfx-effects-manager__ipt-folder-name[type="text"] { | ||
height: calc(2.25rem + 2px); | ||
color: var(--light-text, fuschia); | ||
font-size: 15px; | ||
font-weight: 700; | ||
text-transform: uppercase; | ||
border: 0; | ||
} | ||
|
||
.lancer.app input.lwfx-effects-manager__ipt-folder-name[type="text"]::placeholder { | ||
color: color-mix(in srgb, var(--light-text), var(--dark-text) 27%); | ||
font-style: italic; | ||
font-weight: initial; | ||
} | ||
|
||
/* -------------------------------------------- */ | ||
|
||
.lwfx-effects-manager__effects-uncategorized-empty { | ||
/* Pad to a comfortable height for drag-drop */ | ||
min-height: 100px; | ||
} | ||
|
||
/* -------------------------------------------- */ | ||
|
||
.lwfx-effects-manager__effect { | ||
padding: var(--lwfx-spacer) var(--lwfx-spacer) var(--lwfx-spacer) 0; | ||
margin-left: var(--lwfx-spacer); | ||
margin-right: var(--lwfx-spacer); | ||
} | ||
|
||
.lwfx-effects-manager__grip { | ||
cursor: move; | ||
width: calc(2 * var(--lwfx-spacer)); | ||
} | ||
|
||
.lwfx-effects-manager__grip-handle { | ||
display: none; | ||
} | ||
|
||
.lwfx-effects-manager__effect:hover .lwfx-effects-manager__grip-handle { | ||
display: block; | ||
} | ||
|
||
.lwfx-effects-manager__effect-ipt[type="text"], | ||
.lwfx-effects-manager__effect-sel { | ||
width: calc(100% - calc(4 * var(--lwfx-spacer))); | ||
margin: calc(0.5 * var(--lwfx-spacer)) calc(2 * var(--lwfx-spacer)); | ||
background-color: var(--tooltip-background); | ||
color: var(--dark-text); | ||
height: var(--form-field-height); | ||
} | ||
|
||
.lwfx-effects-manager__icon-duplicate { | ||
color: var(--error-color); | ||
filter: contrast(2); | ||
} |
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,165 @@ | ||
/* TODO(v12) remove some of these in favor of v2 styling */ | ||
|
||
:root { | ||
--lwfx-spacer: 0.5rem; | ||
--lwfx-top-dogear-path: polygon(var(--lwfx-spacer) 0, 100% 0, 100% 100%, 0 100%, 0 var(--lwfx-spacer)); | ||
--lwfx-double-dogear-path: polygon(var(--lwfx-spacer) 0, 100% 0, 100% calc(100% - var(--lwfx-spacer)), calc(100% - var(--lwfx-spacer)) 100%, 0 100%, 0 var(--lwfx-spacer)); | ||
} | ||
|
||
/* -------------------------------------------- */ | ||
|
||
.lwfx__darken-1 { | ||
background-color: var(--darken-1); | ||
} | ||
|
||
.lwfx__darken-2 { | ||
background-color: var(--darken-2); | ||
} | ||
|
||
.lwfx__clipped-top { | ||
clip-path: var(--lwfx-top-dogear-path); | ||
} | ||
|
||
.lwfx__clipped { | ||
clip-path: var(--lwfx-double-dogear-path); | ||
} | ||
|
||
.lwfx__clipped > .lancer-header, | ||
.lwfx__clipped-top > .lancer-header { | ||
padding-left: var(--lwfx-spacer); | ||
padding-right: var(--lwfx-spacer); | ||
} | ||
|
||
/* -------------------------------------------- */ | ||
|
||
.lwfx__fa { | ||
padding-right: 0 !important; | ||
padding-left: 0 !important; | ||
flex: unset !important; | ||
} | ||
|
||
.lwfx__fa-fw { | ||
margin-right: 0 !important; | ||
} | ||
|
||
/* -------------------------------------------- */ | ||
|
||
.lwfx__flexcol { | ||
display: flex !important; | ||
flex-direction: column !important; | ||
} | ||
|
||
.lwfx__flexrow { | ||
display: flex !important; | ||
} | ||
|
||
.lwfx__flexrow-v-center { | ||
display: flex !important; | ||
align-items: center !important; | ||
} | ||
|
||
.lwfx__flexrow-vh-center { | ||
display: flex !important; | ||
align-items: center !important; | ||
justify-content: center !important; | ||
} | ||
|
||
.lwfx__hidden { | ||
display: none !important; | ||
} | ||
|
||
/* -------------------------------------------- */ | ||
|
||
.lwfx__flexshrink-0 { | ||
flex-shrink: 0 !important; | ||
} | ||
|
||
/* -------------------------------------------- */ | ||
|
||
.lwfx__w-initial { | ||
width: initial !important; | ||
} | ||
|
||
.lwfx__w-100 { | ||
width: 100% !important; | ||
} | ||
|
||
.lwfx__min-w-initial { | ||
min-width: initial !important; | ||
} | ||
|
||
.lwfx__min-w-0 { | ||
min-width: 0 !important; | ||
} | ||
|
||
.lwfx__max-w-100px { | ||
max-width: 100px !important; | ||
} | ||
|
||
.lwfx__h-100 { | ||
height: 100% !important; | ||
} | ||
|
||
.lwfx__min-h-0 { | ||
min-height: 0 !important; | ||
} | ||
|
||
/* -------------------------------------------- */ | ||
|
||
.lwfx__scrollable { | ||
margin-right: -0.75rem !important; | ||
padding-right: 0.75rem !important; | ||
overflow: hidden auto !important; | ||
} | ||
|
||
/* -------------------------------------------- */ | ||
|
||
.lwfx__ws-nowrap { | ||
white-space: nowrap !important; | ||
} | ||
|
||
/* -------------------------------------------- */ | ||
|
||
.lwfx__m-0 { | ||
margin: 0 !important; | ||
} | ||
|
||
.lwfx__mx-1 { | ||
margin-left: calc(0.5 * var(--lwfx-spacer)) !important; | ||
margin-right: calc(0.5 * var(--lwfx-spacer)) !important; | ||
} | ||
|
||
.lwfx__my-1 { | ||
margin-top: calc(0.5 * var(--lwfx-spacer)) !important; | ||
margin-bottom: calc(0.5 * var(--lwfx-spacer)) !important; | ||
} | ||
|
||
.lwfx__mr-1 { | ||
margin-right: calc(0.5 * var(--lwfx-spacer)) !important; | ||
} | ||
|
||
.lwfx__mr-2 { | ||
margin-right: var(--lwfx-spacer) !important; | ||
} | ||
|
||
.lwfx__mb-1 { | ||
margin-bottom: calc(0.5 * var(--lwfx-spacer)) !important; | ||
} | ||
|
||
.lwfx__ml-1 { | ||
margin-left: calc(0.5 * var(--lwfx-spacer)) !important; | ||
} | ||
|
||
.lwfx__pr-2 { | ||
padding-right: var(--lwfx-spacer) !important; | ||
} | ||
|
||
.lwfx__px-2 { | ||
padding-left: var(--lwfx-spacer) !important; | ||
padding-right: var(--lwfx-spacer) !important; | ||
} | ||
|
||
.lwfx__py-1 { | ||
padding-top: calc(0.5 * var(--lwfx-spacer)) !important; | ||
padding-bottom: calc(0.5 * var(--lwfx-spacer)) !important; | ||
} |
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
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
export const MODULE_ID = "lancer-weapon-fx"; | ||
|
||
export const PACK_ID_WEAPONFX = `${MODULE_ID}.weaponfx`; |
Oops, something went wrong.