How to create a new HTML resource · You will need to add at least one file to the assets folder, a thumbnail image as described in the PageLink section. HTML Resources · How to create a new HTML. Large introduction windows and smaller pop-up windows that can be added to a session are (mostly) HTML resources. This wiki page describes how HTML assets are created, what they contain, and how they can be added to a session.
The config, txt file is a standard text file (file extension. txt) and can be created and edited with any text editor. Both MS Notepad supplied with Windows and TextEdit supplied with macOS will be suitable. Alternative free text editors, such as Notepad++ (Windows only) and Atom (macOS and Windows), can provide you with some additional time-saving and precision tools, such as autocomplete and spell checker.
HTML (Hyper Text Markup Language) is the language that creates web pages. Creating HTML files (or web pages) is not an easy process. If you've never worked with HTML, there will be a learning curve. Fortunately, it's possible to start from a very basic level and progress as you learn.
HTML editors allow you to create HTML files with minimal effort. Most provide tools that can automate much of the repetitive typing work and many provide some error checking functions. Audio files can be added to HTML assets to play sounds when the HTML page is displayed on the screen. Examples would include driver's whistles and all calls on board, etc.
The sound is stored as a separate file in the HTML resource. Creating your own HTML resources allows you to add session information and instructions that are perfectly tailored to each session. This requires creative effort and time, will need more testing, and is likely to create a lot of frustration. But the end result may be worth it.
All files (HTML, graphics, audio and configuration, txt) are saved in the resource folder as shown in the following example. This example includes a. html that refers to all. jpg and.
tga graphic files. You can add as many HTML files as you need. The minimum number of files required in an HTML resource is 2: the configuration, the txt file, and a thumbnail image (a. jpg file).
You can include some simple HTML codes in the text message. If the string table token and message shown below are included in the configuration, the txt file. An HTML resource contains HTML code. The code can be a full HTML page or only partial HTML.
You can create a new HTML resource in the editor or upload a file with a. html extension. A digital asset type defines the types of archival media that a digital asset can store and the structure of attributes (metadata) to describe the asset. You must be a content manager to create digital asset types and share them with others.
Once you have selected an HTML-based template in the template editor, access the Assets group in the Edit template. panel to manage the assets included in the currently selected template. The built-in pop-up message rule is used to create the message windows that appear on the screen during the execution of a session. You must associate the digital asset type with at least one repository and grant users at least the role of a collaborator in the repository so that the digital asset type can be used to create digital assets.
If you decide you'll need to create an HTML resource for your session or sessions, here are the basic steps you'll need to take. If the HTML Frame Asset container is set to Free, ensure that the SVG has been made scalable to avoid unexpected behavior. If you have web content, such as a paragraph or a single image, that you would like to insert on multiple pages, consider creating a web content resource. In Composer, inside the HTML Frame Asset properties panel, paste (ctrl +V) the code into the HTML property.
There are a wide variety of graphic software applications available that would be suitable for creating Trainz-ready images, both commercial and free. To use a string table for the message text, use the A predefined string table entry option of an HTML resource. The following example illustrates some formatted content that could come from a content management system through a REST web service interface asset created with API Explorer. When you do this, you may need to clear the default CSS property of the HTML Frame Asset to ensure that the component renders as expected.
The HTML framework resource allows you to display HTML content in an Intuiface experience as a lighter alternative to using the web browser feature. . .