diff --git a/src/handbook/src/backend/types.ts b/src/handbook/src/backend/types.ts index 7214b2805..b65b9c2c9 100644 --- a/src/handbook/src/backend/types.ts +++ b/src/handbook/src/backend/types.ts @@ -1,4 +1,4 @@ -export type Page = "Home" | "Commands" | "Avatars" | "Items" | "Entities" | "Scenes"; +export type Page = "Home" | "Commands" | "Avatars" | "Items" | "Entities" | "Scenes" | "Quests" | "Achievements"; export type Overlays = "None" | "ServerSettings"; export type Days = "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday"; diff --git a/src/handbook/src/css/pages/QuestsPage.scss b/src/handbook/src/css/pages/QuestsPage.scss new file mode 100644 index 000000000..170bd655a --- /dev/null +++ b/src/handbook/src/css/pages/QuestsPage.scss @@ -0,0 +1,14 @@ +.QuestsPage { + display: flex; + justify-content: space-between; + + width: 100%; + height: 100%; +} + +.QuestsPage_Selector { + display: flex; + + width: 50%; + height: 100%; +} diff --git a/src/handbook/src/ui/pages/HomePage.tsx b/src/handbook/src/ui/pages/HomePage.tsx index 6bf3625bf..86fa28c27 100644 --- a/src/handbook/src/ui/pages/HomePage.tsx +++ b/src/handbook/src/ui/pages/HomePage.tsx @@ -33,8 +33,8 @@ class HomePage extends React.Component { - - + + diff --git a/src/handbook/src/ui/pages/QuestsPage.tsx b/src/handbook/src/ui/pages/QuestsPage.tsx new file mode 100644 index 000000000..3ea26bc8d --- /dev/null +++ b/src/handbook/src/ui/pages/QuestsPage.tsx @@ -0,0 +1,48 @@ +import React from "react"; + +import Tree, { RawNodeDatum } from "react-d3-tree"; + +import PrimaryQuest from "@widgets/quest/PrimaryQuest"; + +import "@css/pages/QuestsPage.scss"; + +const defaultTree: RawNodeDatum = { + name: "No Quest Selected", + attributes: { + questId: -1 + }, + children: [] +}; + +interface IState { + tree: RawNodeDatum | null; +} + +class QuestsPage extends React.Component<{}, IState> { + constructor(props: {}) { + super(props); + + this.state = { + tree: null + }; + } + + render() { + return ( +
+
+ +
+ +
+ +
+
+ ); + } +} + +export default QuestsPage; diff --git a/src/handbook/src/ui/views/Content.tsx b/src/handbook/src/ui/views/Content.tsx index eaa4ececa..225ae8c7f 100644 --- a/src/handbook/src/ui/views/Content.tsx +++ b/src/handbook/src/ui/views/Content.tsx @@ -6,6 +6,7 @@ import AvatarsPage from "@pages/AvatarsPage"; import ItemsPage from "@pages/ItemsPage"; import EntitiesPage from "@pages/EntitiesPage"; import ScenesPage from "@pages/ScenesPage"; +import QuestsPage from "@pages/QuestsPage"; import type { Page } from "@backend/types"; import { addNavListener, removeNavListener } from "@backend/events"; @@ -63,6 +64,8 @@ class Content extends React.Component { return ; case "Scenes": return ; + case "Quests": + return ; } } } diff --git a/src/handbook/src/ui/views/SideBar.tsx b/src/handbook/src/ui/views/SideBar.tsx index e712ae142..5d031ab4a 100644 --- a/src/handbook/src/ui/views/SideBar.tsx +++ b/src/handbook/src/ui/views/SideBar.tsx @@ -99,8 +99,8 @@ class SideBar extends React.Component<{}, IState> { - - + +