object in information box
Heya, I have an object - draft_text
I want to be included within an information box that pops up, how would I do this? This is so when a user types a message it appears within that box Also, how would I get the information box to follow an avatar around the screen? The code i am using to create a networked chat box is below Thanks in advance, FC Code:
sent_message.visible(0) |
You can use the vizinfo module to display an information box. You can use the viz.MainWindow.worldToScreen command to convert world coordinates to screen coordinates, in order to position the info box near the avatar. Here is some sample code that shows how to accomplish this:
Code:
import viz |
Hello,
Can you please add the code that enables real-time editing to this message box?? Thanks Quote:
|
You can change the content of a info box using the info.message command. Register a callback function for key events and in that function change the message value based on keys pressed.
|
I will give this a try, thank you.
|
All times are GMT -7. The time now is 08:27 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC