Skip to content

Commit 4492450

Browse files
committed
feat: card text outline
1 parent 8dd20a7 commit 4492450

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

changelog.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
# UnderScript Changelog
22

3-
## Version 0.44.0 (2021-)
3+
## Version 0.44.0 (2021-05-30)
4+
### New Features
45
1. Now handles Quest Pass announcements
6+
1. Added "outline card text" setting
7+
1. Added "outline card tribe" setting
8+
1. Added setting to disable *all* card skins
9+
1. Added toast when kicking non-friends out of custom games
10+
### Fixes
11+
1. Fixed translation preview
12+
1. Fixed crafting more than max (with CTRL)
13+
### Misc.
14+
1. Removed "smart disenchant"
515

616
## Version 0.43.3 (2020-12-31)
717
1. Completely disabled smart disenchant, until it's remade.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
wrap(() => {
2+
const setting = settings.register({
3+
name: 'Add Text Outline',
4+
key: 'underscript.card.text.outline',
5+
page: 'Library',
6+
default: true,
7+
onChange: toggle,
8+
category: 'Outline',
9+
});
10+
const art = new VarStore();
11+
12+
function toggle(add = setting.value()) {
13+
if (art.isSet()) {
14+
art.get().remove();
15+
}
16+
if (add) {
17+
art.set(style.add(
18+
'.card { text-shadow: -1px -1px black, 1px 1px black, -1px 1px black, 1px -1px black; }',
19+
));
20+
}
21+
}
22+
23+
eventManager.on(':loaded', toggle);
24+
});

0 commit comments

Comments
 (0)