Category: Objects
/ Display
Since engine version: 5.1 OC
nil
, the default graphic is set.Constant | Value | Effect |
---|---|---|
GFXOV_MODE_None | 0 | Invalid: do not use |
GFXOV_MODE_Base | 1 | The base graphics of the specified definition, meaning the target rectangle (0,0,Width,Height,OffsetX,OffsetY), will be superimposed at the object position. |
GFXOV_MODE_Action | 2 | The actiity of the specified object definition. |
GFXOV_MODE_Picture | 3 | Only affects display of the object in inventory or menus (e.g. when activating in a building). The picture rectangle of the specified definition will be superimposed over the representative picture of the object. In this way you can superimpose a clonk image on a rock or a magic spell picture on a scroll. |
GFXOV_MODE_IngamePicture | 4 | Overlays the picture graphics of the source definition over the shape of the target object. |
GFXOV_MODE_Object | 5 | Superimposes the current object graphics including all overlays of pOverlayObject onto the object. Warning: never superimpose an object recursively onto itself! |
GFXOV_MODE_ExtraGraphics | 6 | Draws the target object a second time, using the supplied graphics. The source coordinates are the same as for drawing obj. |
FindObject(Find_ID(Rock))->SetGraphics(nil, Gold);
for (var obj in FindObjects(Find_And())) obj->SetGraphics();
SetGraphics(nil, Clonk, GFX_Overlay, GFXOV_MODE_Picture); SetObjDrawTransform(800,0,0, 0,800,0,GFX_Overlay);