public:t-vien-07-1:lab_3_materials
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
public:t-vien-07-1:lab_3_materials [2007/01/26 01:50] – hannes | public:t-vien-07-1:lab_3_materials [2024/04/29 13:33] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 42: | Line 42: | ||
</ | </ | ||
- **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, | align = TextNode.ACenter, |
/var/www/cadia.ru.is/wiki/data/attic/public/t-vien-07-1/lab_3_materials.1169776233.txt.gz · Last modified: 2024/04/29 13:33 (external edit)