Skinning engine
I. Skinning system
oZone implements a dynamic loading skinning engine, which allows you to
skin any item or widget which implements the support of skinning. All standard
widget in the GUI package have been created with maximum skinning support in mind.
This enables you to skin any on-screen widget and give oZone a fully new user interface.
II. Overview
Here is a brief description how the skinning system works:
- Skin file is loaded by skinning system during startup
- Each skin item is dynamicaly loaded from the skin file and added to the skin items list
- When a widget wants a specific skin it calls the drawing function with the items name
III. Skin item drawing
The skinning engine splits the skin item image into 5 parts. This is
needed for correct streching of the image over the area. You have to specify
an offset from each side of the image in the skin definition file.
Here is how it works:
(c) Copyright 2003,2004 Point Mad, Lukas Lipka. All rights reserved.