From 8dc48c10c3aab66fdb2750f4027c5b8ee40e9dbc Mon Sep 17 00:00:00 2001 From: PeekabooSteam Date: Sun, 5 Nov 2023 22:35:00 +0000 Subject: [PATCH] Added dialog --- client/public/stylesheets/style/style.css | 16 + client/views/other/dialogs.ejs | 363 +----------------- .../views/other/dialogs/advancedsettings.ejs | 162 ++++++++ .../other/dialogs/commandmodesettings.ejs | 70 ++++ .../views/other/dialogs/customformation.ejs | 48 +++ client/views/other/dialogs/importfromfile.ejs | 43 +++ client/views/other/dialogs/slowdelete.ejs | 21 + client/views/other/dialogs/splash.ejs | 50 +++ 8 files changed, 416 insertions(+), 357 deletions(-) create mode 100644 client/views/other/dialogs/advancedsettings.ejs create mode 100644 client/views/other/dialogs/commandmodesettings.ejs create mode 100644 client/views/other/dialogs/customformation.ejs create mode 100644 client/views/other/dialogs/importfromfile.ejs create mode 100644 client/views/other/dialogs/slowdelete.ejs create mode 100644 client/views/other/dialogs/splash.ejs diff --git a/client/public/stylesheets/style/style.css b/client/public/stylesheets/style/style.css index eb16edde..be988fe1 100644 --- a/client/public/stylesheets/style/style.css +++ b/client/public/stylesheets/style/style.css @@ -740,6 +740,11 @@ nav.ol-panel> :last-child { } /****************************************************************************************/ +#import-from-file-dialog td { + text-align: center; +} + + #splash-screen { border-radius: var(--border-radius-md); overflow: hidden; @@ -1222,6 +1227,17 @@ dl.ol-data-grid dd { margin: 4px 0; } +.ol-dialog-content table th { + background-color: var(--background-grey); + color:white; + font-size:14px; + font-weight: normal; +} + +.ol-dialog-content table tbody th { + text-align: left; +} + .ol-dialog-footer { align-content: center; border-top: 1px solid var(--background-grey); diff --git a/client/views/other/dialogs.ejs b/client/views/other/dialogs.ejs index 738bc97d..35b56f92 100644 --- a/client/views/other/dialogs.ejs +++ b/client/views/other/dialogs.ejs @@ -1,357 +1,6 @@ -
-
-
-

DCS Olympus

-

Dynamic Unit Command

-
Version v0.4.5-alpha
-
- -
-
Username
-
Password
- -
- -

- - -
-
- -
-
- -
-

Olympus 1-1

-
- -
- - -
-
-

General settings

-
-
-
-
- -
- -
- -
- -
- -
- -
- -
- -
- -
-
-
- - - - - -
-
-

TACAN options

-
-
-
- -
- -
- - -
-
- -
- -
-
X
-
-
-
- -
- -
-
-
-
- - -
-
-

Radio options

-
-
- -
- - -
-
- -
- -
-
.000
-
-
-
-
-
- -
- - -
-
-
-
-
-
- - - -
- -
-
-
-
-
- - - -
- -
-
- -
-

Custom formation

-
- -
-
-
-
-
-
-
-
-
-
-
-
- -
- - -
-
- -
- -
-
- -
- - -
-
- -
- -
-
-
- - -
- - -
-
- -
-

Command mode settings

-
- -
-
- -
- -
- -
- -
- - -
-
- -
- -
-
- -
- - -
-
Select eras
-
- -
-
-
- -
-

Spawn points

-
-
- -
- -
- -
-
- -
- -
- -
-
- -
- - -
- - -
-
-

Confirm deletion method

-
- -
-

You are trying to delete a large amount of units (), which can cause the server to lag for players.

-

You may: -

    -
  • delete in batches (less lag but Olympus cannot process any additional orders until
    all units have been deleted);
  • -
  • delete immediately (you can continue to give Olympus orders but players may
    experience lag while this happens);
  • -
  • cancel this instruction.
  • -

-
- - -
+<%- include('dialogs/advancedsettings.ejs') %> +<%- include('dialogs/commandmodesettings.ejs') %> +<%- include('dialogs/customformation.ejs') %> +<%- include('dialogs/importfromfile.ejs') %> +<%- include('dialogs/slowdelete.ejs') %> +<%- include('dialogs/splash.ejs') %> \ No newline at end of file diff --git a/client/views/other/dialogs/advancedsettings.ejs b/client/views/other/dialogs/advancedsettings.ejs new file mode 100644 index 00000000..ad3222e1 --- /dev/null +++ b/client/views/other/dialogs/advancedsettings.ejs @@ -0,0 +1,162 @@ +
+
+ +
+

Olympus 1-1

+
+ +
+ + +
+
+

General settings

+
+
+
+
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+
+ + + + + +
+
+

TACAN options

+
+
+
+ +
+ +
+ + +
+
+ +
+ +
+
X
+
+
+
+ +
+ +
+
+
+
+ + +
+
+

Radio options

+
+
+ +
+ + +
+
+ +
+ +
+
.000
+
+
+
+
+
+ +
+ + +
+
+
+
+
+
+ + + +
+ +
+
+
+
+
+ + + +
\ No newline at end of file diff --git a/client/views/other/dialogs/commandmodesettings.ejs b/client/views/other/dialogs/commandmodesettings.ejs new file mode 100644 index 00000000..3b278812 --- /dev/null +++ b/client/views/other/dialogs/commandmodesettings.ejs @@ -0,0 +1,70 @@ +
+
+ +
+

Command mode settings

+
+ +
+
+ +
+ +
+ +
+ +
+ + +
+
+ +
+ +
+
+ +
+ + +
+
Select eras
+
+ +
+
+
+ +
+

Spawn points

+
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ + +
\ No newline at end of file diff --git a/client/views/other/dialogs/customformation.ejs b/client/views/other/dialogs/customformation.ejs new file mode 100644 index 00000000..b682121d --- /dev/null +++ b/client/views/other/dialogs/customformation.ejs @@ -0,0 +1,48 @@ +
+
+ +
+

Custom formation

+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ +
+ + +
+
+ +
+ +
+
+ +
+ + +
+
+ +
+ +
+
+
+ + +
\ No newline at end of file diff --git a/client/views/other/dialogs/importfromfile.ejs b/client/views/other/dialogs/importfromfile.ejs new file mode 100644 index 00000000..6074998c --- /dev/null +++ b/client/views/other/dialogs/importfromfile.ejs @@ -0,0 +1,43 @@ +
+
+

Import from file

+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 BLUEFORNEUTRALREDFOR
Aircraft
Helicopter  
Ground units
+
+ + +
\ No newline at end of file diff --git a/client/views/other/dialogs/slowdelete.ejs b/client/views/other/dialogs/slowdelete.ejs new file mode 100644 index 00000000..372eff82 --- /dev/null +++ b/client/views/other/dialogs/slowdelete.ejs @@ -0,0 +1,21 @@ +
+
+

Confirm deletion method

+
+ +
+

You are trying to delete a large amount of units (), which can cause the server to lag for players.

+

You may: +

    +
  • delete in batches (less lag but Olympus cannot process any additional orders until
    all units have been deleted);
  • +
  • delete immediately (you can continue to give Olympus orders but players may
    experience lag while this happens);
  • +
  • cancel this instruction.
  • +

+
+ + +
\ No newline at end of file diff --git a/client/views/other/dialogs/splash.ejs b/client/views/other/dialogs/splash.ejs new file mode 100644 index 00000000..eea7e760 --- /dev/null +++ b/client/views/other/dialogs/splash.ejs @@ -0,0 +1,50 @@ +
+
+
+

DCS Olympus

+

Dynamic Unit Command

+
Version v0.4.5-alpha
+
+ +
+
Username
+
Password
+ +
+ +

+ + +
+
\ No newline at end of file