<BODY BACKGROUND> OpenMW book html extension

This was a mail in that I packaged up for Wolfgang. I'll let him explain it:

<BODY BACKGROUND> OpenMW book html extension
---------------------------------------------
Summary:
This extension to the simplified HTML used to
encode scroll and book texts in the Morrowind
allows to override the default background
image for each individual text by implementing
the 'oldschool' HTML tag <BODY BACKGROUND="filename">.

Background:
Switching between scene and text view of the
various notes, scrolls and books tends to be
immersion-breaking as, regardless whether the
scene model is a grubby piece of paper or a
gold-rimmed, sealed scroll, the visual presentation
in text view is always the same.

This extension addresses that by allowing the
use of the <BODY BACKGROUND="filename"> HTML
tag in the markup text (with 'filename' being
any valid texture file reference in the vfs)

Compatibility:
The vanilla engine simply ignores all unknown
markup tags, ie. while it doesn't work in
vanilla (or older OpenMW versions), it doesn't
do any harm either

Limitations:
Unlike 'real' HTML, the closing </BODY> tag is
not evaluated - ie. if there are multiple tags
in a single file 'the last one wins'

Files:

- the 'src/apps/openmw/mwgui' subdirectory
  contains the files changed from the
  main openmw tree (as of 30/06/2022)

- test_bookhtm_body_background.esp is a
  baseline mod demonstrating the added tag
  using three items found in the chargen phase:
    Note to Hrisskar
    Paper
    Package for Caius Cossades
  (NB: the textures used are from vanilla and
   not really suitable for text view, but I
   didn't want to include bulky textures in
   this submission)

- a few screenshots of these items in three
  different setups:
  a) vanilla textures/standard view
  b) vanilla textures/overridden background
  c) modded textures/overridden background

00_vanilla_textures_scene_view

01_vanilla_textures_standard_scroll_view_note

02_vanilla_textures_standard_scroll_view_paper

03_vanilla_textures_scene_view

04_vanilla_textures_standard_scroll_view_caius

05_vanilla_textures_background_scroll_view_note

06_vanilla_textures_background_scroll_view_paper

07_vanilla_textures_background_scroll_view_caius

08_modded_textures_scene_view

09_modded_textures_background_scroll_view_note

10_modded_textures_background_scroll_view_paper

11_modded_textures_scene_view

12_modded_textures_background_scroll_view_caius

test_bookhtm_body_background.esp

Merge request reports

Loading