This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathfishingpond.tid
47 lines (46 loc) · 2.12 KB
/
fishingpond.tid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
title: $:/plugins/oflg/fishing/fishingpond
<$list
filter="new due"
variable="pondname"
>
<$let
pondordername={{{ [<pondname>addsuffix[order]] }}}
fishingrod={{{ [{$:/temp/fishing!!fishingrod}!is[blank]else{$:/config/fishingpond/rod}] }}}
fishingpond={{{ [<pondname>match[new]then{$:/config/fishingpond/newpond}] ~[<pondname>match[due]then{$:/config/fishingpond/duepond}] }}}
fishingorder={{{ [<fishingrod>addprefix[$:/plugins/oflg/fishing/fishingrod/]getindex<pondordername>] ~[<pondname>match[new]then{$:/config/fishingpond/createdorder}] ~[<pondname>match[due]then{$:/config/fishingpond/autoorder}] }}}
>
<$button
tooltip={{$:/language/fishing/fishingpondtip}}
aria-label={{$:/language/fishing/fishingpondtip}}
class="tc-btn-invisible tc-tiddlylink"
style="padding-right:10px;"
>
<$list filter="[{$:/config/Fishing/setcloseall}match[yes]]">
<$action-sendmessage
$message="tm-close-all-tiddlers"
/>
</$list>
<$action-setfield
$tiddler="$:/temp/fishing"
text=""
type=""
fishingrod=<<fishingrod>>
fishingpond=<<fishingpond>>
fishingorder=<<fishingorder>>
list={{{ [subfilter<fishingrod>subfilter<fishingpond>subfilter<fishingorder>first[]format:titlelist[]] }}}
/>
<$action-setfield
$tiddler={{{ [list[$:/temp/fishing]first[]addprefix[$:/state/folded/]] }}}
text={{{ [list[$:/temp/fishing]first[]has[grade]then[hide]else[show]] }}}
/>
<$action-navigate
$to={{{ [list[$:/temp/fishing]first[]] }}}
/>
<$action-popup
$state=<<qualify "$:/state/popup/$:/plugins/oflg/fishing/fishingdeck">>
$coords=""
/>
<$text text={{{ [[$:/language/fishing/]addsuffix<pondname>get[text]] }}}/>: <$count filter="[subfilter<fishingrod>subfilter<fishingpond>]"/>
</$button>
</$let>
</$list>