Skip to content

Commit

Permalink
image path fix, link to original
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Dennis committed May 5, 2024
1 parent f57b071 commit 4dd2740
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

Card creator For Null-Signal-era Netrunner, ported from [yonbergman/self-modifying-card](https://github.com/yonbergman/self-modifying-card) to SolidJS and TypeScript, and using [Mnemic's high-quality templates](https://www.reddit.com/r/Netrunner/comments/yuapf2/mnemics_custom_netrunner_cards_1024_custom_cards/).

Fully Operational ™, but WIP/YMMV.
Fully Operational™, but WIP/YMMV.

### TODO

- Fix ID images
- Autosized text
- Customizable text size
- Icon reference tooltip
Expand Down
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const App: Component = () => {
<div class="page-header">
<h1>
Netrunner Card Creator
<small>zeta</small>
</h1>
<h6>Under development; adapted from <a href="http://cardcreator.grndl.net/">GRNDL Card Creator</a> by <a href="https://github.com/yonbergman/self-modifying-card">@yonbergman</a></h6>
</div>
<div class="row">
<div class="col-sm-7 form-view">
Expand Down
2 changes: 1 addition & 1 deletion src/models/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function imageUri(card: Card) {
const kind = card.kind === 'identity' ? `${side}ID` : capitalizeFirst(card.kind ?? '');
const faction = capitalizeFirst(card.faction ?? '', 3);
const suffix = faction === 'Neutral' ? `-${side}` : '';
return `/UI/${side}${kind}Default${faction}${suffix}.png`;
return `./UI/${side}${kind}Default${faction}${suffix}.png`;
}

export const createCardStore = (attributes?: Partial<Card>) => {
Expand Down

0 comments on commit 4dd2740

Please sign in to comment.