![]() |
|
#1
|
|||
|
|||
|
Hi,
When I try to display HUD by bot, it displayed sometimes but disappeared in another time. But when I select the ground(edit texture) or use "Freelook mode", the HUD picture will be always displayed, it's really strange. Does anybody know this problem? Thank you so much! Attached screen capture: ![]() No HUD displayed ![]() Displayed while editing terrain ![]() Displayed while using "Freelook mode" My code: (I think it's no problem) aw_int_set (AW_HUD_ELEMENT_ORIGIN, AW_HUD_ORIGIN_BOTTOM_RIGHT); //AW_HUD_ORIGIN_TOP_LEFT AW_HUD_ORIGIN_BOTTOM AW_HUD_ORIGIN_CENTER aw_int_set (AW_HUD_ELEMENT_FLAGS, AW_HUD_ELEMENT_FLAG_CLICKS | AW_HUD_ELEMENT_FLAG_STRETCH);//AW_HUD_ELEMENT_FLAG_HIGHLIGHT | //aw_int_set (AW_HUD_ELEMENT_FLAGS, AW_HUD_ELEMENT_FLAG_STRETCH); aw_int_set (AW_HUD_ELEMENT_COLOR, RGB (255, 255,255)); aw_int_set (AW_HUD_ELEMENT_TEXTURE_OFFSET_X, 0); aw_int_set (AW_HUD_ELEMENT_TEXTURE_OFFSET_Y, 0); aw_int_set (AW_HUD_ELEMENT_TYPE, AW_HUD_TYPE_IMAGE); aw_float_set (AW_HUD_ELEMENT_OPACITY, 0.9f); aw_int_set (AW_HUD_ELEMENT_Z, 1); aw_int_set (AW_HUD_ELEMENT_SESSION, session); aw_int_set (AW_HUD_ELEMENT_ID, 203 ); aw_int_set (AW_HUD_ELEMENT_SIZE_X, 380); //380 aw_int_set (AW_HUD_ELEMENT_SIZE_Y, 260); //217 aw_int_set (AW_HUD_ELEMENT_X, -180); aw_int_set (AW_HUD_ELEMENT_Y, -109); aw_string_set (AW_HUD_ELEMENT_TEXT, "HUD_DlgQC2.png" ); int rc =aw_hud_create (); if (rc!=0) { cout<<"Could not create control HUD:"<<rc<<endl;//my_flog.LogLine("Could not create HUD: %i", 0, rc); } else { cout<<"Create hud success."<<endl; } |
|
#2
|
|||
|
|||
|
I've never seen this.
What build numbers are used (browser/sdk)? Where do you create the HUD? (AW_EVENT_AVATAR_ADD?) Is the bot in global mode? ... |
|
#3
|
|||
|
|||
|
Quote:
My AW browser build number is 1088(AW 5.0 version), and SDK in 77(4.2 version), but I also met this problem with previous versions; I create the HUD in AW_EVENT_AVATAR_ADD event, also in AW_OBJECT_CLICK event; The bot is running in global mode. That's all, I wonder if you know what's the problem... tks |
|
#4
|
|||
|
|||
|
Are you passing aw_int(AW_AVATAR_SESSION) to the session variable?
|
|
#5
|
|||
|
|||
|
Bruce, sure I did
|
|
#6
|
|||
|
|||
|
coocoochen, please contact Activeworlds Support.
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|