From 9beacada3a424e98ec67356db6a5c21c3f96a26e Mon Sep 17 00:00:00 2001 From: Taka Date: Sat, 13 Apr 2019 09:47:58 +0000 Subject: [PATCH] Updated the help. --- vasl_templates/webapp/static/help/index.html | 8 ++++++++ vasl_templates/webapp/templates/user-settings-dialog.html | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/vasl_templates/webapp/static/help/index.html b/vasl_templates/webapp/static/help/index.html index dcf3baf..316f3cc 100644 --- a/vasl_templates/webapp/static/help/index.html +++ b/vasl_templates/webapp/static/help/index.html @@ -223,6 +223,10 @@ or a width and/or height parameter to explicitly set the image

Once you've configured the VASL module, if you want to also show VASL counter images in the OB snippets that you copy in the VASL scenario, turn this on in the User settings dialog from the main application menu.

If you turn this feature on, the program must be running every time you load the scenario into VASL.
+

Show Chapter H vehicle/ordnance notes as images

+ +

If you have set up the Chapter H vehicle/ordnance notes as HTML, it may not be possible to get the layout you want, since VASSAL's HTML engine is so old. To work around this, this option tells VASL Templates to render the HTML itself (using a modern browser) and send it as an image to VASSAL, which is slower but gives better results. + @@ -246,6 +250,10 @@ or a width and/or height parameter to explicitly set the image

The vehicle and ordnance notes themselves are stored as image files, so you need to scan your Chapter H pages, and crop each individual note. For example, an image for the German PSW 234/1 can be seen to the left. Right-click on it, download it, and save it on top of german/vehicles/74.png (because it's note #74).
+

It is also possible to store the vehicle/ordnance notes as HTML, and while it is significantly more work to set things up this way, it gives much better results. Using the placeholder files from the ZIP above, wherever there is a .png file, rename it to have a .html extension, and then put the HTML in there. +

Note that the HTML engine used by VASSAL is ancient and doesn't support floating images, which is needed to format this content in the same way as the ASLRB. To work around this, an option is provided (in the User Settings) to show these vehicle/ordnance notes as images. If this is enabled, the vehicle/ordnance notes will be rendered by the VASL Templates program (using a modern browser), and sent to VASSAL as an image, which is slower but gives the expected layout. If you don't use images in your HTML, you can leave this option disabled, and the raw HTML will be inserted into the VASL scenario, where it will be displayed much more quickly by VASSAL. +

+

Adding Chapter H notes to your VASL scenario

Restart the VASL Templates program, and add a PSW 234/1 to the German OB. You will see some changes in the UI (see screenshot). diff --git a/vasl_templates/webapp/templates/user-settings-dialog.html b/vasl_templates/webapp/templates/user-settings-dialog.html index aacf78e..83bcb88 100644 --- a/vasl_templates/webapp/templates/user-settings-dialog.html +++ b/vasl_templates/webapp/templates/user-settings-dialog.html @@ -16,7 +16,7 @@ If you enable any of these options, this program must be running before you load the scenario in VASL. -  Include VASL images in snippets
+  Include VASL counter images in snippets
 Include flags in snippets
 Use custom list bullets