Added installation/deletion of camera control plugin from manager

This commit is contained in:
Davide Passoni
2024-02-29 10:54:52 +01:00
parent 832568aa00
commit 4782596e3c
12 changed files with 175 additions and 42 deletions

25
manager/ejs/camera.ejs Normal file
View File

@@ -0,0 +1,25 @@
<style>
</style>
<div>
<div class="instructions">
<div class="step">
Step <%= instances.length === 1? "5": "6" %> of <%= instances.length === 1? "5": "6" %>
</div>
<div class="title">
Do you want to install the camera control plugin?
</div>
<div class="description">
The camera control plugin allows you to control the camera position in DCS from Olympus. <br>
It is necessary to install it in DCS even if you plan to use Olympus on a remote machine via your browser.
</div>
</div>
<div class="wizard-inputs">
<div class="button radio install selected" onclick="signal('onInstallCameraControlClicked', 'install')">
Install
</div>
<div class="button radio no-install" onclick="signal('onInstallCameraControlClicked', 'no-install')">
Do not install
</div>
</div>
</div>

View File

@@ -4,7 +4,7 @@
<div id="connections-page">
<div class="instructions">
<div class="step">
Step <%= instances.length === 1? "3": "4" %> of <%= instances.length === 1? "4": "5" %>
Step <%= instances.length === 1? "3": "4" %> of <%= instances.length === 1? "5": "6" %>
</div>
<div class="title">
Manually set Olympus port and address settings

View File

@@ -4,7 +4,7 @@
<div>
<div class="instructions">
<div class="step">
Step <%= instances.length === 1? "2": "3" %> of <%= instances.length === 1? "4": "5" %>
Step <%= instances.length === 1? "2": "3" %> of <%= instances.length === 1? "5": "6" %>
</div>
<div class="title">
Do you want to set port and address settings?

View File

@@ -73,6 +73,13 @@
title="Allows services to connect to Olympus directly. This is NOT NEEDED for normal Olympus operation, even for dedicated servers. Leave it unchecked if in doubt.">
</span>
</div>
<div class="input-group camera-plugin">
<span onclick="signal('onEnableCameraPluginClicked')">
<div class="checkbox checked"></div> Enable camera control plugin
<img src="./icons/circle-info-solid.svg"
title="Install the camera control plugin, which allows direct control of the DCS camera from Olympus. It is necessary even to control the camera even if Olympus is being used remotely using a browser.">
</span>
</div>
</div>
</div>
</div>

View File

@@ -5,7 +5,7 @@
<div class="instructions">
<% if (instances.length > 0) { %>
<div class="step">
Step 1 of <%= instances.length === 1? "4": "5" %>
Step 1 of <%= instances.length === 1? "5": "6" %>
</div>
<div class="title">
Which DCS instance you want to add Olympus to?

View File

@@ -4,7 +4,7 @@
<div id="passwords-page">
<div class="instructions">
<div class="step">
Step <%= instances.length === 1? "4": "5" %> of <%= instances.length === 1? "4": "5" %>
Step <%= instances.length === 1? "4": "5" %> of <%= instances.length === 1? "5": "6" %>
</div>
<div class="title">
Enter your passwords for Olympus

View File

@@ -4,7 +4,7 @@
<div>
<div class="instructions">
<div class="step">
Step <%= instances.length === 1? "1": "2" %> of <%= instances.length === 1? "4": "5" %>
Step <%= instances.length === 1? "1": "2" %> of <%= instances.length === 1? "5": "6" %>
</div>
<div class="title">
Do you want to add Olympus for singleplayer or multiplayer?