HTML problems and black vrMenu

HTML problems and black vrMenu

Anonymous
Not applicable
1,179 Views
4 Replies
Message 1 of 5

HTML problems and black vrMenu

Anonymous
Not applicable

Dear VRED Users,

 

I'm having problems with the vrMenu.

1. By default it is black. How do I get it to be transparent? (attachment 01)

-> If I turn "setAlpha(1)" to for example "menu.setAlpha(0)" the black dissapears, but with it my menu 😄

- the background of the html is set to "none"

2. Some Outlines do not appear until you re-enalbe the the checkbox that turns on the opacity of the tabel via javascript. (attachment 02)

 -> Some do not appear at all...

3. The dropdownmenu appears somewhere random!? (attachment 03)

 

Everything works just fine in Chrome...

 

Version 2018.3

 

This is the script:

 

menu = vrMenu(1,1,1)
menu.setUrl("C:/some/path/vrMenu.html")
menu.setPosition2D(0,50)
#menu.setAutoResize(0.00058)
menu.setAlpha(1)
menu.show()
menu.setWindowResize("vrMenu", 400, 970)

 

0 Likes
Accepted solutions (1)
1,180 Views
4 Replies
Replies (4)
Message 2 of 5

seiferp
Community Manager
Community Manager
Accepted solution

Hi,

 

no need to use menu.setAlpha(1) in python. Just set the background of the page to background: rgba(255,0,0,0); in your stylesheet. Let me know if it worked.

 

Cheers

Pascal

0 Likes
Message 3 of 5

seiferp
Community Manager
Community Manager

I also can reproduce the wired combobox/dropdown behavior. It looks that the <select> element is opening a kind of popup window at the position of your element. I mean a real one and not inside the page itself. I think there is nothing we can do because we just stream the content from the engine/webpage into a texture. Not smart, but maybe you can workaround this with a kind of unfolding list or something like this. Link

0 Likes
Message 4 of 5

Anonymous
Not applicable

Hey Pascal

 

Thx 🙂

Setting the backgrounds RGBA to "0" or even "none" works fine, as long there is no menu.setAlpha(1) in python (my bad :D)

Message 5 of 5

seiferp
Community Manager
Community Manager

The GUI looks pretty promising btw. Smiley Happy