Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
0624b1c7f3
|
|||
|
5317a8dc9f
|
|||
|
bd4db36d90
|
|||
|
d26f5aacb1
|
|||
|
4423aaaa1b
|
59
.gitea/workflows/main.yml
Normal file
59
.gitea/workflows/main.yml
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
name: Release Creation
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# get part of the tag after the `v`
|
||||||
|
- name: Extract tag version number
|
||||||
|
id: get_version
|
||||||
|
uses: battila7/get-version-action@v2
|
||||||
|
|
||||||
|
# Substitute the Manifest and Download URLs in the module.json
|
||||||
|
- name: Substitute Manifest and Download Links For Versioned Ones
|
||||||
|
id: sub_manifest_link_version
|
||||||
|
uses: microsoft/variable-substitution@v1
|
||||||
|
with:
|
||||||
|
files: 'src/module.json'
|
||||||
|
env:
|
||||||
|
version: ${{steps.get_version.outputs.version-without-v}}
|
||||||
|
url: https://gitea.ascorrea.com/${{github.repository}}
|
||||||
|
manifest: https://gitea.ascorrea.com/${{github.repository}}/releases/latest/download/module.json
|
||||||
|
download: https://gitea.ascorrea.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip
|
||||||
|
|
||||||
|
# Create a zip file with all files required by the module to add to the release
|
||||||
|
- name: Create files (module.zip, module.json) for release
|
||||||
|
working-directory: ./src
|
||||||
|
run: >
|
||||||
|
mkdir -p ../dist
|
||||||
|
&& zip -r ../dist/module.zip .
|
||||||
|
&& cp module.json ../dist/
|
||||||
|
&& echo \"Done! Zipped module.json and copied module.js.\"
|
||||||
|
|
||||||
|
- name: Setting commit message variable
|
||||||
|
id: commit-message
|
||||||
|
# Per
|
||||||
|
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#example-of-a-multiline-string
|
||||||
|
run: |
|
||||||
|
{
|
||||||
|
echo 'COMMIT_MESSAGE<<EOF'
|
||||||
|
git log -1 --pretty=%B
|
||||||
|
echo EOF
|
||||||
|
} >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
# Create a release for this specific version
|
||||||
|
- name: Update Release with Files
|
||||||
|
id: create_version_release
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
./dist/module.json
|
||||||
|
./dist/module.zip
|
||||||
|
body: |-
|
||||||
|
${{ steps.commit-message.outputs.COMMIT_MESSAGE }}
|
||||||
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*.code-workspace
|
||||||
|
.vscode
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: "SW-RPG";
|
font-family: "SW-RPG";
|
||||||
src: url("worlds/shared/fonts/SW-RPG-Symbol.otf") format("opentype"), url("../files/font/SW-RPG-Symbol.ttf") format("truetype"), url("../files/font/SW-RPG-Symbol.woff") format("woff");
|
src: url("./SW-RPG-Symbol.otf") format("opentype"), url("./SW-RPG-Symbol.ttf") format("truetype"), url("./SW-RPG-Symbol.woff") format("woff");
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"id": "asc-starwars-style-journal",
|
"id": "asc-starwars-style-journal",
|
||||||
"title": "Star Wars Style Journal",
|
"title": "Star Wars Style Journal",
|
||||||
"version": "0.2.0",
|
"version": "0.3.0",
|
||||||
"download": "https://gitea.ascorrea.com/asc/asc-starwars-style-journal/releases/download/v0.2.0/module.zip",
|
"download": "https://gitea.ascorrea.com/asc/asc-starwars-style-journal/releases/download/latest/module.zip",
|
||||||
"manifest": "https://gitea.ascorrea.com/asc/asc-starwars-style-journal/releases/download/latest/module.json",
|
"manifest": "https://gitea.ascorrea.com/asc/asc-starwars-style-journal/releases/download/latest/module.json",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": "12",
|
"minimum": "12",
|
||||||
@@ -13,5 +13,4 @@
|
|||||||
"styles/asc-ffg-starwars.css",
|
"styles/asc-ffg-starwars.css",
|
||||||
"styles/asc-starwars-journal.css"
|
"styles/asc-starwars-journal.css"
|
||||||
]
|
]
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import {StarWarsStyleJournalSheet} from "./journalSheets.js"
|
import {StarWarsStyleJournalSheet, StarWarsTextPageSheet} from "./journalSheets.js"
|
||||||
// ui.notifications.info
|
// ui.notifications.info
|
||||||
// Register the custom journal sheet
|
// Register the custom journal sheet
|
||||||
|
|
||||||
@@ -8,6 +8,11 @@ Hooks.once('ready', () => {
|
|||||||
label: 'Star Wars Style Journal',
|
label: 'Star Wars Style Journal',
|
||||||
makeDefault: false // Set to true if you want this as the default
|
makeDefault: false // Set to true if you want this as the default
|
||||||
});
|
});
|
||||||
|
DocumentSheetConfig.registerSheet(JournalEntryPage, "asc-starwars-style-journal", StarWarsTextPageSheet, {
|
||||||
|
types: ['text'],
|
||||||
|
label: 'Star Wars Text Page',
|
||||||
|
makeDefault: false, // Not globally default—used conditionally by the journal sheet
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
Hooks.on("renderChatMessage", (message, html, data) => {
|
Hooks.on("renderChatMessage", (message, html, data) => {
|
||||||
|
|||||||
@@ -4,17 +4,18 @@ export class StarWarsStyleJournalSheet extends JournalSheet {
|
|||||||
classes: [...(super.defaultOptions.classes || []), 'asc-starwars'],
|
classes: [...(super.defaultOptions.classes || []), 'asc-starwars'],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// activateListeners(html) {
|
|
||||||
// super.activateListeners(html);
|
|
||||||
|
|
||||||
// const sidebar = html.find('.journal-sidebar');
|
|
||||||
// const aside = html.find('aside');
|
|
||||||
// this.toggleSidebar()
|
|
||||||
|
|
||||||
// }
|
|
||||||
async _render(force, options) {
|
async _render(force, options) {
|
||||||
await super._render(force, {...options, collapsed:true});
|
await super._render(force, {...options, collapsed:true});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class StarWarsTextPageSheet extends JournalTextPageSheet {
|
||||||
|
static get defaultOptions() {
|
||||||
|
return mergeObject(super.defaultOptions, {
|
||||||
|
classes: [...(super.defaultOptions.classes || []), 'asc-starwars'],
|
||||||
|
width: 600,
|
||||||
|
height: 400,
|
||||||
|
resizable: true,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
--dice-color-challenge: #D2263F;
|
--dice-color-challenge: #D2263F;
|
||||||
--dice-color-difficulty: #532D7F;
|
--dice-color-difficulty: #532D7F;
|
||||||
--dice-color-proficiency: #F9EA2F;
|
--dice-color-proficiency: #F9EA2F;
|
||||||
|
--dice-color-setback: #0E0E0E;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@@ -49,33 +50,45 @@ button {
|
|||||||
font-family: 'SF Distant Galaxy';
|
font-family: 'SF Distant Galaxy';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.starwars-rpg-info {
|
.starwars-rpg-info {
|
||||||
font-family: 'SW-RPG';
|
.symbol,
|
||||||
text-shadow:
|
.difficulty,
|
||||||
-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
|
.ability,
|
||||||
|
.challenge,
|
||||||
|
.setback,
|
||||||
|
.proficiency,
|
||||||
|
.boost
|
||||||
|
{
|
||||||
|
font-family: "SW-RPG";
|
||||||
|
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
|
||||||
|
}
|
||||||
|
|
||||||
.boost {
|
.boost {
|
||||||
color: #c3e1fe;
|
color: var(--dice-color-boost);
|
||||||
}
|
}
|
||||||
.ability {
|
.ability {
|
||||||
color: #4f7f32;
|
color: var(--dice-color-ability);
|
||||||
}
|
}
|
||||||
.proficiency {
|
.proficiency {
|
||||||
color: #fdee66;
|
color: var(--dice-color-proficiency);
|
||||||
|
}
|
||||||
|
|
||||||
|
.symbol {
|
||||||
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.setback {
|
.setback {
|
||||||
color: #0E0E0E;
|
color: var(--dice-color-setback);
|
||||||
}
|
}
|
||||||
.difficulty {
|
.difficulty {
|
||||||
color: #3c1b4f;
|
color: var(--dice-color-difficulty);
|
||||||
}
|
}
|
||||||
.challenge {
|
.challenge {
|
||||||
color: #ca2722;
|
color: var(--dice-color-challenge);
|
||||||
}
|
|
||||||
.symbol {
|
|
||||||
color: #000;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.symbol {
|
.symbol {
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
src: url("../fonts/SWCrawlBody.ttf");
|
src: url("../fonts/SWCrawlBody.ttf");
|
||||||
}
|
}
|
||||||
|
|
||||||
.asc-starwars .journal-entry-content, .editor-container, .chat-message.asc-starwars .message-content {
|
.asc-starwars .journal-entry-content, .asc-starwars .editor-container, .chat-message.asc-starwars .message-content {
|
||||||
background-image:url(../artwork/stars.png) !important;
|
background-image:url(../artwork/stars.png) !important;
|
||||||
background-repeat:repeat !important;
|
background-repeat:repeat !important;
|
||||||
background-position:center top !important;
|
background-position:center top !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user