Skip to content

Commit 262f496

Browse files
committed
1.5.3
- Added coffee button
1 parent 9fe1af7 commit 262f496

6 files changed

Lines changed: 28 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,6 @@ If you're using Obsidian to run/plan a TTRPG, you may find my other plugin usefu
192192

193193
- [Obsidian Leaflet](https://github.com/valentine195/obsidian-leaflet-plugin) - Add interactive maps to Obsidian.md notes
194194
- [Dice Roller](https://github.com/valentine195/obsidian-dice-roller) - Inline dice rolling for Obsidian.md
195+
- [Initiative Tracker](https://github.com/valentine195/obsidian-initiative-tracker) - Track TTRPG Initiative in Obsidian
196+
197+
<a href="https://www.buymeacoffee.com/valentine195"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=☕&slug=valentine195&button_colour=e3e7ef&font_colour=262626&font_family=Inter&outline_colour=262626&coffee_colour=ff0000"></a>

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "obsidian-5e-statblocks",
33
"name": "5e Statblocks",
4-
"version": "1.5.2",
4+
"version": "1.5.3",
55
"description": "Create 5e styled statblocks in Obsidian.md",
66
"minAppVersion": "0.12.0",
77
"author": "Jeremy Valentine",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-5e-statblocks",
3-
"version": "1.5.2",
3+
"version": "1.5.3",
44
"description": "Create 5e styled statblocks in Obsidian.md",
55
"main": "main.js",
66
"scripts": {

src/main.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,3 +217,13 @@
217217
.obsidian-statblock-plugin .spell-line .spells {
218218
font-style: italic;
219219
}
220+
221+
.statblock-settings .coffee {
222+
width: 60%;
223+
color: var(--text-faint);
224+
margin: 1rem auto;
225+
text-align: center;
226+
}
227+
.statblock-settings .coffee img {
228+
height: 30px;
229+
}

src/settings/settings.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { StatblockMonsterPlugin } from "@types";
1+
import type { StatblockMonsterPlugin } from "@types";
22
import {
33
App,
44
Notice,
@@ -25,6 +25,8 @@ export default class StatblockSettingTab extends PluginSettingTab {
2525

2626
containerEl.empty();
2727

28+
containerEl.addClass("statblock-settings");
29+
2830
containerEl.createEl("h2", { text: "5e Statblock Settings" });
2931

3032
const importSettingsContainer = containerEl.createDiv(
@@ -313,11 +315,19 @@ export default class StatblockSettingTab extends PluginSettingTab {
313315
searchMonsters.setDesc(
314316
`Manage homebrew monsters. Currently: ${suggester.filteredItems.length} monsters.`
315317
);
318+
319+
const div = containerEl.createDiv("coffee");
320+
div.createEl("a", {
321+
href: "https://www.buymeacoffee.com/valentine195"
322+
}).createEl("img", {
323+
attr: {
324+
src: "https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=☕&slug=valentine195&button_colour=e3e7ef&font_colour=262626&font_family=Inter&outline_colour=262626&coffee_colour=ff0000"
325+
}
326+
});
316327
} catch (e) {
317328
new Notice(
318329
"There was an error displaying the settings tab for 5e Statblocks."
319330
);
320331
}
321332
}
322333
}
323-

versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"1.1.0": "0.12.0",
55
"1.2.0": "0.12.0",
66
"1.3.1": "0.12.0",
7-
"1.5.2": "0.12.0"
7+
"1.5.3": "0.12.0"
88
}

0 commit comments

Comments
 (0)