Working with images to skin a button
Since the UI components that come with Flash are not optimized to run in GFX, UDK users should not use those, and instead base their UI on the Scaleform Common Lightweight Interface Kit (CLIK
) components. This kit ships with UDK, and can be found in the folder C:\UDK\~\Development\Flash\CLIK\components
. The end of the previous recipe details setting that up. However, those components are merely functional, and in most cases designers will want to adapt them, or 'skin' them, to their own taste. In this recipe this is what we'll do, using the standard Button component as an example because almost every game requires one at some point or another, and because its user interaction is amongst the first steps one usually takes when learning Flash too. A key point to note is that the 2D components in a CLIK object are converted by UDK at render time into 3D Draw Primitives
, so in the artwork, there are several issues of control of these. For instance, drawing...