Difference between revisions of "Book Formatting"

465 bytes added ,  08:21, 10 June 2006
→‎<nowiki><IMG></nowiki>: More Info on Bookart
imported>Kkuhlmann
imported>JOG
(→‎<nowiki><IMG></nowiki>: More Info on Bookart)
Line 67: Line 67:
This command inserts an image into the book. It requires all three attributes to be present in the tag at once. The image is inserted as if it were just a large character of text, just as in HTML. This means you can replace the first character of a paragraph with an image (an initial caps fancy letter image, for example) and the text will format properly around it. You can also surround and image with blank lines and a DIV tag to center it. As with basic HTML, you cannot “flow” text around an image. The (required) attributes are:
This command inserts an image into the book. It requires all three attributes to be present in the tag at once. The image is inserted as if it were just a large character of text, just as in HTML. This means you can replace the first character of a paragraph with an image (an initial caps fancy letter image, for example) and the text will format properly around it. You can also surround and image with blank lines and a DIV tag to center it. As with basic HTML, you cannot “flow” text around an image. The (required) attributes are:


<nowiki>
<IMG src=”Book/fancy_font/h_62x62.dds” width=62 height=62>
<IMG src=”Book/fancy_font/h_62x62.dds” width=62 height=62>
</nowiki>


Differences: (major) In HTML, the entire image file is always displayed, squishing or stretching it to fit the provided width and height, or using the file’s actual sizes if no width or height is stated. In Oblivion, all DDS files must have file sizes that are powers of two (32, 64, 128, 256, etc). Since you may have images of non-powers-of-2 sizes that you wish to display, the width and height are handled differently in books. You cannot stretch or squish an image in a book, you can only crop. This means that with a width and height of 64 (as in the example above) only the top-left 64x64 section of the image file will be used. The rest of the image file will be ignored. (Naming the files with the correct width and height to display them is probably good practice. Use the full resolution sizes for all resolutions of the image.
'''Differences:'''


Warning: Make sure when adding images to books that all THREE sizes are created (as placed in the Menus, Menus80, and Menus50 directories). Use the Data\Textures\Menus(50/80)\Book directory, unless the image file already exists elsewhere in the Textures\Menus path. You do not need to add the “Data\Texture\Menus” portion of the pathname in the book text file. That portion will be added automatically. You cannot use any image outside of the Textures path.
In HTML, the entire image file is always displayed, squishing or stretching it to fit the provided width and height, or using the file’s actual sizes if no width or height is stated. In Oblivion, all DDS files must have file sizes that are powers of two (32, 64, 128, 256, etc). Since you may have images of non-powers-of-2 sizes that you wish to display, the width and height are handled differently in books. You cannot stretch or squish an image in a book, you can only crop. This means that with a width and height of 64 (as in the example above) only the top-left 64x64 section of the image file will be used. The rest of the image file will be ignored. (Naming the files with the correct width and height to display them is probably good practice. Use the full resolution sizes for all resolutions of the image.
 
 
'''Notes:'''
 
*When you add your images to ''Data\Textures\Menus'', you do not need to add the “Data\Textures\Menus” portion of the pathname in the book text file. That portion will be added automatically. Just make sure that all THREE sizes are created (as placed in the Menus, Menus80, and Menus50 directories). Use the Data\Textures\Menus(50/80)\Book directory, unless the image file already exists elsewhere in the Textures\Menus path.  
 
*You can use images outside of the ''Data\Textures\Menus'' path, by using paths relative to ''Data\Textures\Menus'' but the images won't be displayed when you pack them into a BSA.
 
*When you use a sub-folder of ''Data\Textures\Menus'' (e.g. "Data\Textures\Menus\Mymod"), you can use only one image, but when you run Oblivion in low resolution this image will be resized ingame and might not look as good as it would when you use three separate images in the Menus, "Menus50" and "Menus80" folders.


== Other Tags ==
== Other Tags ==
Anonymous user