#1
|
|||
|
|||
Informationboxes with text
Hi all,
how can I create information boxes, with dynamic created text? (see attachment) I used this for the box: Code:
def createTextBox(self, textur): texture = viz.add(textur) texQuad = viz.addTexQuad(align = viz.TEXT_LEFT_TOP, scene=2, pos=1.5,3.3,0], scale=[3,2,0]) texQuad.texture(texture) Code:
def createText(self, text, name, fontsize): name = viz.addText( text, viz.SCREEN, scene=2) name.color(viz.BLACK) name.fontSize( fontsize ) name.translate (0.6, 0.9) name.alignment (viz.TEXT_LEFT_TOP) I don't understand, why the box is at the position [1.5, 3.3] and the text at [0.6, 0.9] and in the normal view (not fullscreen), both are at the same position. Is it possible to set the box and the text at one fixed point from the right side of the window? The attachment shows my idea... Thanks a lot for any help! |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Create Button or Text | Chrissy2009 | Vizard | 1 | 07-15-2009 06:34 PM |
Vizard tech tip: Text to Speech | Jeff | Vizard | 1 | 01-15-2009 10:39 PM |
text output | jaclyn.bill | Vizard | 2 | 10-24-2007 07:37 AM |
adding 2D text via script | V.shazzle | Vizard | 3 | 09-19-2005 03:45 PM |
3d Text with Transparent Borders | vjosh | Vizard | 3 | 12-01-2004 11:50 AM |