Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.


Montag, 23. Juli 2018, 23:18

Moving Control Bar Buttons

I have found by searching the forums and messing around with the vrtour.xml code that action skin_arrange_buttons is what determines the final position of where the buttons are on the control bar. This took me a very long time of trial and error as I could not figure out why changing the align and x and y values in the layer of the button had no effect. Now that I have figured it out I still have a few questions. I should say I am an extremely novice programmer.

1. In This Post it basically says that if you don't want them auto aligned then just delete the action. I do want them auto aligned because I think the comparability of the vrtour.xml skin is amazing and I want people to be able to view my panos on all devices. However, what is the point of having the align and x and y values set in the layers? Will skin_arrange_buttons completely overwrite the values in the layers? and will the positions set in skin_arrange_buttons be relative to the control bar container?

2. I have noticed a few variables in the skin_arrange_buttons code that I don't completely understand rpos, cpos, and lpos. It seems like they are the variables that deal with the scaling of the buttons but I'm not exactly sure...

Thank you for your help!

Beiträge: 717

Wohnort: Sevastopol, Crimea, Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden


Dienstag, 24. Juli 2018, 08:40


Cpos, rpos and lpos are probably center position, right and left position. Inside 'skin_arrange_buttons' action these variables are used to set 'x' to the 'skin_btn_navi' container (which contains navigational buttons - cpos) and rpos and lpos are used to adjut 'x' of the buttons to the left and right. As you can see from the code, action checks various skin settings and fullscreen and gyro/vr availability at the very beginning and then adjusts 'x' of the buttons accordingly.