Changes between Version 7 and Version 8 of Internals
- Timestamp:
- 06/23/16 12:24:33 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internals
v7 v8 53 53 == GlassHUD Internals Documentation == 54 54 55 GlassHUD's artwork (as in: its image files) is found in the folder Artwork/Mods/CortUI/media/GlassHUD. However, that's not all there is to it. Due to a technical reason, Bunnywabbit had to create a good deal of so-called 'wrapper' files. These have no other function than to sit in the artwork folder and reference a particular image file. The wrapper files for GlassHUD have carry the prefix 'gh_' in their filenames.55 GlassHUD's artwork (as in: its image files) is found in the folder `Artwork/Mods/CortUI/media/GlassHUD`. However, that's not all there is to it. Due to a technical reason, Bunnywabbit had to create a good deal of so-called 'wrapper' files. These have no other function than to sit in the artwork folder and reference a particular image file. The wrapper files for GlassHUD have carry the prefix 'gh_' in their filenames. 56 56 57 57 The technical reason mentioned above is, that GlassHUD utilizes a lot of images that are given the team color by the game program. The function that achieves this, ImportImage3D, only works for mdl files in the artwork folder. It does not take .png files or file paths. Therefore, the only way to use this function is to create a png file, then create a wrapper mdl file pointing to that png, and then have ImportImage3D call that wrapper mdl file. 58 58 Bunnywabbit isn't happy about this either. 59 60 61 62
