~hokiegeek/tw5-thousand-year-old-vampire-rpg

01725252b3aa411e834b4d8f494c75ccb3f63a3a — HokieGeek 6 months ago 3ad3626 0.4.0
Great starting place for resources
M memories/template-memory.tid => memories/template-memory.tid +1 -1
@@ 43,7 43,7 @@ type: text/vnd.tiddlywiki
            <$action-sendmessage $message="tm-new-tiddler" title=<<title>> tags=<<tags>> prompt="c0.0" />
            </$set>
            </$let>
            {{$:/core/images/edit-button}}
            {{$:/core/images/plus-button}}
        </$button>
        </$reveal>
        </$set>

M plugin.info => plugin.info +1 -1
@@ 2,7 2,7 @@
    "title": "$:/plugins/hokiegeek/thousand-year-old-vampire-rpg",
    "description": "Some templates and stuff for recording plays of the Thousand Year Old Vampire RPG",
    "author": "hokiegeek",
    "version": "0.3.0",
    "version": "0.4.0",
    "core-version": ">=5.2.1",
    "source": "https://git.sr.ht/~hokiegeek/tw5-thousand-year-old-vampire-rpg",
    "plugin-type": "plugin",

A resources/template-resource.tid => resources/template-resource.tid +49 -0
@@ 0,0 1,49 @@
modified: 20220208230756000
created: 20220208230756000
creator: hokiegeek
title: $:/plugins/hokiegeek/thousand-year-old-vampire/template/resources/resource
tags: ThousandYearOldVampire
type: text/vnd.tiddlywiki

<style>
.indicator svg {
    height: 1em;
    width: 1em;
    max-width: 100%;
    padding: 0px 1px 1px 0px;
    vertical-align: middle;
    opacity: .4;
}
</style>

<$set name="lost" filter="[is[current]tag[lost]]">
<$reveal type="nomatch" default=<<lost>> text="">
<$fieldmangler>
<$button tooltip="found" aria-label="found" message="tm-remove-tag" param="lost" class=<<tv-config-toolbar-class>>>
    {{$:/core/images/refresh-button}}
</$button>
</$fieldmangler>
</$reveal>
<$reveal type="match" default=<<lost>> text="">
<$fieldmangler>
<$button tooltip="lose" aria-label="lose" message="tm-add-tag" param="lost" class=<<tv-config-toolbar-class>>>
    {{$:/core/images/erase}}
</$button>
</$fieldmangler>
<$button tooltip="Edit" aria-label="Edit" message="tm-edit-tiddler" param=<<currentTiddler>> class=<<tv-config-toolbar-class>> style="margin-right: 5px">
    {{$:/core/images/edit-button}}
</$button>
<$set name="diary" filter="[is[current]tag[diary]]">
<$reveal type="nomatch" default=<<diary>> text="">
<span class="indicator" title="diary">{{$:/core/images/file}}</span>
</$reveal>
</$set>
<$reveal type="match" default={{!!stationary}} text="yes">
<span class="indicator" title="Stationary">{{$:/core/images/close-others-button}}</span>
</$reveal>
</$reveal>
</$set>
<$reveal type="match" default={{!!text}} text="">
mysterious resource #<$view field="resource-num" />
</$reveal>
<$transclude />

A resources/view-resource.tid => resources/view-resource.tid +11 -0
@@ 0,0 1,11 @@
modified: 20220208231420000
created: 20220208231420000
creator: hokiegeek
title: $:/plugins/hokiegeek/thousand-year-old-vampire/views/resources/resource
tags: $:/tags/ViewTemplate ThousandYearOldVampire
type: text/vnd.tiddlywiki

<$list filter="[all[current]is[tiddler]!is[system]tag[ThousandYearOldVampire]tag[resource]]">
<$transclude tiddler="$:/plugins/hokiegeek/thousand-year-old-vampire/template/resources/resource" mode="block" />
</$list>


A resources/view-resources-available.tid => resources/view-resources-available.tid +11 -0
@@ 0,0 1,11 @@
modified: 20220208231533000
created: 20220208231533000
creator: hokiegeek
title: $:/plugins/hokiegeek/thousand-year-old-vampire/templates/resources/available
tags: ThousandYearOldVampire
type: text/vnd.tiddlywiki
caption: Available

<$list filter="[tag[ThousandYearOldVampire]tag<currentTiddler>tag[resource]!tag[lost]sort[resource-num]]" emptyMessage="game over!">
<$transclude tiddler="$:/plugins/hokiegeek/thousand-year-old-vampire/template/resources/resource" mode="block" />
</$list>

A resources/view-resources-lost.tid => resources/view-resources-lost.tid +11 -0
@@ 0,0 1,11 @@
modified: 20220208231718000
created: 20220208231718000
creator: hokiegeek
title: $:/plugins/hokiegeek/thousand-year-old-vampire/templates/resources/lost
tags: ThousandYearOldVampire
type: text/vnd.tiddlywiki
caption: Lost

<$list filter="[tag[ThousandYearOldVampire]tag<currentTiddler>tag[resource]tag[lost]sort[resource-num]]" emptyMessage="you have lost nothing">
<$transclude tiddler="$:/plugins/hokiegeek/thousand-year-old-vampire/template/resources/resource" mode="block" />
</$list>

M view-vampire.tid => view-vampire.tid +20 -4
@@ 74,7 74,7 @@ type: text/vnd.tiddlywiki
    </$let>
</div>
<$let diary={{{ [tag[ThousandYearOldVampire]tag<currentTiddler>tag[resource]tag[diary]!tag[lost]] }}}
      tabstate={{{ [<title>prefix[$:/state/thousand-year-old-vampire/tabs/memories/]] }}}>
      tabstate={{{ [{!!title}addprefix[$:/state/thousand-year-old-vampire/tabs/memories/]] }}}>
<$reveal type="match" default=<<diary>> text="">
<$macrocall $name="tabs" tabsList="$:/plugins/hokiegeek/thousand-year-old-vampire/templates/memories/current $:/plugins/hokiegeek/thousand-year-old-vampire/templates/memories/forgotten" default="$:/plugins/hokiegeek/thousand-year-old-vampire/templates/memories/current" state=<<tabstate>> />
</$reveal>


@@ 82,14 82,30 @@ type: text/vnd.tiddlywiki
<$macrocall $name="tabs" tabsList="$:/plugins/hokiegeek/thousand-year-old-vampire/templates/memories/current $:/plugins/hokiegeek/thousand-year-old-vampire/templates/memories/diary $:/plugins/hokiegeek/thousand-year-old-vampire/templates/memories/forgotten" default="$:/plugins/hokiegeek/thousand-year-old-vampire/templates/memories/current" state=<<tabstate>> />
</$reveal>
</$let>
<$set name="tabstate" filter="[<title>prefix[$:/state/thousand-year-old-vampire/tabs/memories/]]">
</$set>

<<traitHeader "Skills" "skill">>
<!--
lost:
<$fieldmangler>
<$button tooltip="lose" aria-label="lose" message="tm-add-tag" param="lost" class=<<tv-config-toolbar-class>>>
    {{$:/core/images/erase}}
</$button>
</$fieldmangler>

used:
<$fieldmangler>
<$button tooltip="checked" aria-label="checked" message="tm-add-tag" param="checked" class=<<tv-config-toolbar-class>>>
    {{$:/core/images/done-button}}
</$button>
</$fieldmangler>

-->
<<list-links filter:"[tag[ThousandYearOldVampire]tag[skill]tag{!!title}]" emptyMessage:"none yet">>

<<traitHeader "Resources" "resource">>
<<list-links filter:"[tag[ThousandYearOldVampire]tag[resource]tag{!!title}]" emptyMessage:"none yet">>
<$let tabstate={{{ [{!!title}addprefix[$:/state/thousand-year-old-vampire/tabs/resources/]] }}}>
<$macrocall $name="tabs" tabsList="$:/plugins/hokiegeek/thousand-year-old-vampire/templates/resources/available $:/plugins/hokiegeek/thousand-year-old-vampire/templates/resources/lost" default="$:/plugins/hokiegeek/thousand-year-old-vampire/templates/resources/available" state=<<tabstate>> />
</$let>

<<traitHeader "Characters" "character">>
<<list-links filter:"[tag[ThousandYearOldVampire]tag[character]tag{!!title}]" emptyMessage:"none yet">>