User Tools

Site Tools


public:t-vien-07-1:lab_3_materials

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

public:t-vien-07-1:lab_3_materials [2007/01/26 01:50]
hannes
public:t-vien-07-1:lab_3_materials [2007/01/26 02:00] (current)
hannes
Line 42: Line 42:
 </code>   </code>  
   - **Onscreen Text:** Add a dynamic text label on your heads-up-display (HUD) simply by creating an **OnscreenText** object like this: <code python>   - **Onscreen Text:** Add a dynamic text label on your heads-up-display (HUD) simply by creating an **OnscreenText** object like this: <code python>
 +from direct.gui.OnscreenText import OnscreenText
 textobject = OnscreenText(pos = (0, -0.9), fg = (1,1,1,1), bg = (0.3, 0.3, 0.3, 0.5),  textobject = OnscreenText(pos = (0, -0.9), fg = (1,1,1,1), bg = (0.3, 0.3, 0.3, 0.5), 
                           align = TextNode.ACenter, scale = 0.07, mayChange = True)                              align = TextNode.ACenter, scale = 0.07, mayChange = True)   
/var/www/ailab/WWW/wiki/data/pages/public/t-vien-07-1/lab_3_materials.txt ยท Last modified: 2007/01/26 02:00 by hannes