Important! Please read the announcement at http://myst.dustbird.net/uru-account.htm
Also! Please read the retirement announcement at http://myst.dustbird.net/uru-retirement.htm

Difference between revisions of "Plasma Engine HTML"

From UamWiki
(Created page with '=Introduction= Journals and other books use a special form of HTML. Here is what is known. =Tags= <pb> - creates a page break in the book <cover src="texturefilename" >…')
 
 
Line 3: Line 3:
  
 
=Tags=
 
=Tags=
&lt;pb> - creates a page break in the book
+
==Page Break==
  &lt;cover src="texturefilename" > - gives the location of a cover image for the book. (Don't put the texture file's extension though.)
+
To create a page break, so as to make it go onto the next page:
  &lt;font size=16 face=Michelle color=982A2A > - gives the typeface, size, and color of a font, see below.
+
  &lt;pb>
  &lt;margin left=64 right=62 top=48 > - gives the size of the margin in pixels? points?
+
 
  &lt;p align=center > - is the paragraph tag, allows you to align text.
+
==Font==
  &lt;img src="whatever.hsm*0#1" align=center link=100 blend=alpha > - gives the location of an image. Align is the alignment of the image on the page. Link means that the image is a Link Image and its number is how it is identified(100 is the first, 101 is the second, ...). blend=alpha interprets the image's alpha channel as transparency info.  You can use parameters such as pos=100,200 , align=center , resize = no .
+
  &lt;font size=16 face=Michelle color=982A2B  >
  &lt;decal src="whatever.hsm*1#0" > - Places the image as a decal on the book.  You can use parameters such as pos=100,200 , align=center , resize = no .
+
*face is the font name
<br><br>
+
*size is the font size
  \' - gives an apostrophe
+
*color is the hex color (in this example, red=0x98, green=0x2A, blue=0x2B) (See [[Colors]] for more info.)
  \n - gives a new line
+
 
 +
==Margin==
 +
To set the margin around the enclosed items:
 +
  &lt;margin left=64 right=62 top=48 bottom=64 >
 +
This gives the size of the margin in pixels? points? I'm not sure.
 +
 
 +
==Paragraph==
 +
This is the paragraph tag, allows you to align text to the left, right, or center.
 +
  &lt;p align=center >
 +
*align - center, left, or right
 +
 
 +
 
 +
==Journal Cover==
 +
To give your journal a front cover.  (You also need to specify that the journal is to be initially closed in the Python file params.)
 +
&lt;cover src="texturefilename" >
 +
*src - gives the location of a cover image for the book. (Don't put the texture file's extension though.)
 +
The cover can't be a transparency, or it will appear black, due to an Uru bug.  You can stick a texture on an unused plane hidden below the floor so that it will be included with your Age.
 +
 
 +
==Images==
 +
To show an image inside a journal:
 +
  &lt;img src="TextureNameWithoutFileExtension" align=center blend=alpha resize=no >
 +
*src - gives the filename (without the extension) of an image.
 +
*align - is the alignment of the image on the page.
 +
*link - means that the image is a Link Image and its number is how it is identified(100 is the first, 101 is the second, ...). *blend=alpha interprets the image's alpha channel as transparency info.   
 +
*resize=no - you should probably have this set to 'no'.
 +
*pos=100,200 - you can try to set the position, but it might not work the way you like.
 +
You can stick a texture on an unused plane hidden below the floor so that it will be included with your Age.
 +
 
 +
There is a similar command for decals, but you might have difficulty with them:
 +
  &lt;decal src="whatever.hsm*1#0" resize=no align=center pos=100,200 > - Places the image as a decal on the book.   
 +
 
 +
 
 +
 
 +
=Codes=
 +
These codes can be used for characters that you might not be able to type:
 +
  '          \'
 +
(newline) \n
 +
’          \’ 
 +
$          \x24
 +
%          \x25
 +
&          \x26
 +
@          \x40
 +
~          \x7e
 +
£          \xa3
 +
«          \xab
 +
°          \xb0 (degrees)
 +
²          \xb2
 +
³          \xb3
 +
»          \xbb
 +
¿          \xbf
 +
ß          \xdf
 +
à          \xe0
 +
â          \xe2
 +
ä          \xe4
 +
ç          \xe7
 +
è          \xe8
 +
é          \xe9
 +
ë          \xeb
 +
ì          \xec
 +
î          \xee
 +
ï          \xef
 +
ñ          \xf1
 +
ô          \xf4
 +
ö          \xf6
 +
ù          \xf9
 +
ü          \xfc
 +
 
  
 
=Fonts=
 
=Fonts=

Latest revision as of 20:48, 5 January 2011

Introduction

Journals and other books use a special form of HTML. Here is what is known.

Tags

Page Break

To create a page break, so as to make it go onto the next page:

<pb>

Font

<font size=16 face=Michelle color=982A2B  >
  • face is the font name
  • size is the font size
  • color is the hex color (in this example, red=0x98, green=0x2A, blue=0x2B) (See Colors for more info.)

Margin

To set the margin around the enclosed items:

<margin left=64 right=62 top=48 bottom=64 >

This gives the size of the margin in pixels? points? I'm not sure.

Paragraph

This is the paragraph tag, allows you to align text to the left, right, or center.

<p align=center >
  • align - center, left, or right


Journal Cover

To give your journal a front cover. (You also need to specify that the journal is to be initially closed in the Python file params.)

<cover src="texturefilename" >
  • src - gives the location of a cover image for the book. (Don't put the texture file's extension though.)

The cover can't be a transparency, or it will appear black, due to an Uru bug. You can stick a texture on an unused plane hidden below the floor so that it will be included with your Age.

Images

To show an image inside a journal:

<img src="TextureNameWithoutFileExtension" align=center blend=alpha resize=no >
  • src - gives the filename (without the extension) of an image.
  • align - is the alignment of the image on the page.
  • link - means that the image is a Link Image and its number is how it is identified(100 is the first, 101 is the second, ...). *blend=alpha interprets the image's alpha channel as transparency info.
  • resize=no - you should probably have this set to 'no'.
  • pos=100,200 - you can try to set the position, but it might not work the way you like.

You can stick a texture on an unused plane hidden below the floor so that it will be included with your Age.

There is a similar command for decals, but you might have difficulty with them:

<decal src="whatever.hsm*1#0" resize=no align=center pos=100,200 > - Places the image as a decal on the book.  


Codes

These codes can be used for characters that you might not be able to type:

'          \'
(newline)  \n
’          \’   
$          \x24
%          \x25
&          \x26
@          \x40
~          \x7e
£          \xa3
«          \xab
°          \xb0 (degrees)
²          \xb2
³          \xb3
»          \xbb
¿          \xbf
ß          \xdf
à          \xe0
â          \xe2
ä          \xe4
ç          \xe7
è          \xe8
é          \xe9
ë          \xeb
ì          \xec
î          \xee
ï          \xef
ñ          \xf1
ô          \xf4
ö          \xf6
ù          \xf9
ü          \xfc


Fonts

The following is a complete list of all available fonts, though it is possible to create your own. B=bold, I=italics, #=fontsize

Arial           8,10,12,16,24,B7,B8,B10,B11,B12,B14,BI12,BI14
Atrus           12,14,16,18,20,22,24,26,28,30,32
Courier         6,8,9,10,12,14,16,18,20,22,24,26,28,30,32,B8,B14,B18
DniFontDniHand  8,12
Michelle        12,14,16,18,20,22,24,26,28,30,32
Nick            12,14,16,18,20,22,24,26,28,30,32
Sam             12,14,16,18,20,22,24,26,28,30,32
Sharper         12,14,16,18,20,22,24,26,28,30,32
Tahoma          8,10,12,14,24
Tricia          12,14,16,18,20,22,24,26,28,30,32
Uru             12,14,16,18,20,22,24,26,28,30,32
Yeesha          12,14,16,18,20,22,24,26,28,30,32

Things That Don't Work

<br> - doesn't do anything
<img src=".\\1.jpg"> - doesn't load an image from a file