@@ -45,6 +67,38 @@ onMounted(() => {
\ No newline at end of file
diff --git a/client/src/views/partials/books/BookItem.vue b/client/src/views/partials/books/BookItem.vue
new file mode 100644
index 00000000..04fe9ea5
--- /dev/null
+++ b/client/src/views/partials/books/BookItem.vue
@@ -0,0 +1,21 @@
+
+
+
+
+ A
+
+
+
+
\ No newline at end of file
diff --git a/client/src/views/partials/books/CampaignBookList.vue b/client/src/views/partials/books/CampaignBookList.vue
new file mode 100644
index 00000000..b809517f
--- /dev/null
+++ b/client/src/views/partials/books/CampaignBookList.vue
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/client/src/views/partials/game/IconButton.vue b/client/src/views/partials/game/IconButton.vue
new file mode 100644
index 00000000..e4f34d78
--- /dev/null
+++ b/client/src/views/partials/game/IconButton.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/client/src/views/windows/LoginWindow.vue b/client/src/views/windows/LoginWindow.vue
index 3c3d313b..c0b1d47b 100644
--- a/client/src/views/windows/LoginWindow.vue
+++ b/client/src/views/windows/LoginWindow.vue
@@ -6,12 +6,13 @@ import SuccessMessage from '@/views/others/SuccessMessage.vue'
import { onMounted, onUpdated, ref } from 'vue';
import { SetupHandle, SetSize, SetPosition, ResetPosition } from '@/services/Windows';
-import { SetUser } from '@/services/User'
+import { SetUser, GetUser } from '@/services/User'
import Api from '@/services/Api.js'
import WindowHandle from '@/views/partials/WindowHandle.vue';
import { ClearWindows, CreateWindow } from '../../services/Windows';
+import { DisplayToast } from '../../services/Dragonroll';
const handle = ref(null);
@@ -46,7 +47,6 @@ function login(){
errorMessage.value = "";
SetUser(data.token);
- console.log("Logged successfully");
ShowMainMenu();
}
}).catch((error) => {
@@ -68,6 +68,7 @@ function ShowRegister(){
function ShowMainMenu(){
ClearWindows({type: "login"});
CreateWindow('main_menu');
+ DisplayToast('green', 'Logged in successfully as ' + GetUser().username + '!', 3000)
}
diff --git a/client/src/views/windows/RegisterWindow.vue b/client/src/views/windows/RegisterWindow.vue
index a2bdfbf3..7d0198eb 100644
--- a/client/src/views/windows/RegisterWindow.vue
+++ b/client/src/views/windows/RegisterWindow.vue
@@ -10,6 +10,7 @@ import { SetupHandle, SetSize, SetPosition, ResetPosition } from '@/services/Win
import Api from '@/services/Api.js'
import { ClearWindows, CreateWindow } from '../../services/Windows';
+import { DisplayToast } from '../../services/Dragonroll';
const email = ref("");
const name = ref("");
@@ -56,7 +57,7 @@ function register(){
} else {
errorMessage.value = "";
console.log("Logged successfully");
- ShowLogin("Account created successfully");
+ DisplayToast('green', 'Account created successfully, now log in!', 3000);
}
}).catch((error) => {
console.log(error);
diff --git a/client/src/views/windows/campaigns/CampaignListWindow.vue b/client/src/views/windows/campaigns/CampaignListWindow.vue
index af6287ed..9f4f953d 100644
--- a/client/src/views/windows/campaigns/CampaignListWindow.vue
+++ b/client/src/views/windows/campaigns/CampaignListWindow.vue
@@ -66,7 +66,7 @@ function RefreshCampaigns(){
diff --git a/client/src/views/windows/campaigns/CampaignPreviewWindow.vue b/client/src/views/windows/campaigns/CampaignPreviewWindow.vue
index 42a00f5c..fe7aff9b 100644
--- a/client/src/views/windows/campaigns/CampaignPreviewWindow.vue
+++ b/client/src/views/windows/campaigns/CampaignPreviewWindow.vue
@@ -4,6 +4,10 @@ import { SetupHandle, SetSize, SetPosition, ResetPosition } from '@/services/Win
import WindowHandle from '@/views/partials/WindowHandle.vue';
import PlayerList from '../../partials/PlayerList.vue';
+import { DisplayToast, GetCampaign, GetClient } from '../../../services/Dragonroll';
+import CampaignBookList from '../../partials/books/CampaignBookList.vue';
+import { ClearWindow } from '../../../services/Windows';
+import { LaunchGame } from '../../../services/Game';
const handle = ref(null);
@@ -15,7 +19,20 @@ onMounted(() => {
SetupHandle(id, handle);
SetSize(id, {x: 1200, y: 750});
ResetPosition(id, "center");
+
+ console.log(data);
});
+
+function CopyCode(){
+ navigator.clipboard.writeText(GetCampaign().invite_code);
+ DisplayToast('aqua', "Copied invite code successfully!", 1000);
+}
+
+function Launch(){
+ ClearWindow('campaign_preview');
+ LaunchGame();
+}
+
@@ -30,8 +47,22 @@ onMounted(() => {
Players
+
+
+
+
{{ data.campaign.name }}
+
+
+
+
Chat
@@ -43,12 +74,47 @@ onMounted(() => {