Skip to content

Commit

Permalink
[Docs] Added questField
Browse files Browse the repository at this point in the history
  • Loading branch information
Marten-Mrfc committed Dec 14, 2024
1 parent 4d15a95 commit 63f3195
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions documentation/src/components/EntryField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ export const SoundField = () => {
);
};

export const questField = () => {
return (
<EntryField name="Quest" required inherited>
The quest of the entry.
</EntryField>
);
};

/**
* @deprecated Should be individualy be generated by the documentation generator.
Expand Down
7 changes: 6 additions & 1 deletion documentation/src/components/EntryInspector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ function CustomFieldInspector({
if (editor === "duration") {
return <DurationField duration={value} path={path} />;
}
if (editor === "ref") {
return <EntryReferenceField entryId={value} pages={pages} path={path} />;
}
if (editor === "soundId") {
return <SoundIdField {...value} path={path} />;
}
Expand Down Expand Up @@ -637,7 +640,9 @@ function DurationField({ duration, path }: { duration: number; path: string }) {
function SoundIdField({ value, path }: { value: string; path: string }) {
return <SimpleValueField value={value} icon="mdi:volume-high" name={path} />;
}

function QuestField({ value, path }: { value: string; path: string }) {
return <SimpleValueField value={value} icon="mdi:book" name={path} />;
}
interface SoundSourceFieldProps {
type: "self" | "emitter" | "location";
entryId: string;
Expand Down

0 comments on commit 63f3195

Please sign in to comment.