Single Base Select

This commit is contained in:
Florian 2026-04-10 22:08:18 +02:00
parent 753ff3bf6f
commit b2046a5701
8 changed files with 70 additions and 60 deletions

View File

@ -5,6 +5,9 @@
"tags": "tags",
"data.waffe": "checkbox",
"data.waffe.cost": "number",
"data.tool": "checkbox"
"data.tool": "checkbox",
"data.race": "checkbox",
"data.race.speed": "number",
"data.race.playable": "checkbox"
}
}

View File

@ -4,17 +4,20 @@
"type": "split",
"children": [
{
"id": "b1b3caf9b80cfcb4",
"id": "0c3e15a1ad9e2e82",
"type": "tabs",
"children": [
{
"id": "97e3f7a3f9ad49e0",
"id": "231678df0ba9b0ba",
"type": "leaf",
"state": {
"type": "empty",
"state": {},
"icon": "lucide-file",
"title": "New tab"
"type": "bases",
"state": {
"file": "wiki/races/Races.base",
"viewName": "Playable"
},
"icon": "lucide-table",
"title": "Races"
}
}
]
@ -179,10 +182,15 @@
"bases:Create new base": false
}
},
"active": "97e3f7a3f9ad49e0",
"active": "231678df0ba9b0ba",
"lastOpenFiles": [
"wiki/weapons/Spear.md",
"wiki/races/Dragon.md",
"wiki/races/Human.md",
"wiki/races/Orc.md",
"wiki/races/Races.base",
"wiki/weapons/Items.base",
"wiki/races",
"wiki/weapons/Spear.md",
"wiki/weapons/Sword.md",
"wiki/weapons/Axt.md",
"wiki/first subfolder/secondSub/Some Testnote.md",
@ -199,7 +207,6 @@
"wiki/first subfolder/secondSub",
"wiki/first subfolder",
"adventures",
"wiki",
"Welcome.md"
]
}

View File

@ -0,0 +1,7 @@
---
data.race: true
data.race.speed: 7
data.race.playable: false
---
# Dragon
Dragons are big, fire breathing, flying fortresses.

View File

@ -0,0 +1,7 @@
---
data.race: true
data.race.speed: 4
data.race.playable: true
---
# Human
Humans are versatile creatures.

View File

@ -0,0 +1,7 @@
---
data.race: true
data.race.speed: 5
data.race.playable: true
---
# Orc
Orcs are pesky little creatures that only have the worst in mind.

View File

@ -0,0 +1,19 @@
filters:
and:
- note["data.race"] == true
views:
- type: table
name: All
order:
- file.name
- data.race.speed
sort: []
- type: table
name: Playable
filters:
and:
- note["data.race.playable"] == true
order:
- file.name
- data.race.speed
sort: []

View File

@ -6,12 +6,6 @@
<String Name="name">
<Max>64</Max>
</String>
<String Name="race"/>
<Int Name="startLevel">
<Value>5</Value>
<Min>0</Min>
<Max>8</Max>
</Int>
<Bool Name="ismage"/>
</Variables>
</Group>
@ -21,20 +15,5 @@
<Int Name="speed"/>
</Variables>
</Group>
<Group Name="control">
<Variables>
<Int Name="startxp"/>
<!--
<List Name="traits">
<Children>
<Int Name="trait">
<Min>3</Min>
<Max>12</Max>
</Int>
</Children>
</List>
-->
</Variables>
</Group>
</Groups>
</DataStructure>

View File

@ -8,6 +8,11 @@
<DataStructure>characterdata</DataStructure>
</DataSlot>
</Data>
<Bases>
<BaseReference Name="races">
<Path>wiki/races/Races</Path>
</BaseReference>
</Bases>
<StartPage>"start"</StartPage>
<Pages>
<Page Name="start">
@ -31,33 +36,7 @@
</OpenPage>
</Actions>
</OnPostCreate>
<!--
<OnPreLoad/>
<OnPostLoad/>
<OnPreCreate/>
<OnPostCreate/>
-->
</DataSlotLoader>
<Label>
<Text>"Character Name: "</Text>
</Label>
<Label>
<Text>[data.character.definition.name]</Text>
</Label>
<Button>
<Text>"Press me"</Text>
<OnClick>
<Actions>
<Action>
<Do>"Somename"</Do>
<Output>[data.character.definition.name]</Output>
</Action>
<OpenPage>
<Page>"newchar"</Page>
</OpenPage>
</Actions>
</OnClick>
</Button>
</Content>
<!--
<OnOpen/>
@ -66,9 +45,11 @@
</Page>
<Page Name="newchar">
<Content>
<Label>
<Text>"This is the new Character Page!"</Text>
</Label>
<BaseSingleSelect>
<Base>"races.Playable"</Base>
<Output>[data.character.race.name]</Output>
<Display>"file.name"</Display>
</BaseSingleSelect>
</Content>
</Page>
</Pages>