Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com 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.

1

Samstag, 29. März 2014, 14:52

floornumbers..



Hello,

I want the floor numbers 0 and 1 aligned at the left side on my window but when I do so, the numbers switch position...


I my code I changed

Quellcode

1
set(plugin[get(floor_btn)].align,righttop);
into

Quellcode

1
set(plugin[get(floor_btn)].align,lefttop);


why do the numbers change position... ? *confused*

I use an image like
(I can't put exact image as it's white text on an transparant background)

Does anyone has an idea ?
Thanks a lot !

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Samstag, 29. März 2014, 18:40

Your question is completely unclear.
Please get us a link, code and a clear description etc..
Tuur *thumbsup*

3

Montag, 31. März 2014, 15:33

I admit I was in a hurry :-)
Sorry for that :-)

Here is the project:
http://immo-virtueel.be/krpano/

Here you can find the code.
http://immo-virtueel.be/krpano/xml/map.xml

At this moment the floor numbers (0 1) are aligned to the right with this code :
line 110

Quellcode

1
set(plugin[get(floor_btn)].align,righttop);


When I align the floor numbers to the left, the floor numbers switch place to 1 0.
http://immo-virtueel.be/krpano/index2.html

Quellcode

1
set(plugin[get(floor_btn)].align,lefttop);



How can I change this ?

thanks

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

4

Montag, 31. März 2014, 21:56

Hi! quite a complicated code and structure... It might require a good tracing of all values to find the exact spot of the code where calculations go wrong.

I would start here:

Quellcode

1
2
3
4
5
<!-- put the buttons under eachother -->
			copy(plugin[get(floor_btn)].x, floor_menu_xoffset);
			add(floor_menu_xoffset, get(menu.floor.height));
			add(floor_menu_xoffset, menu.floor.padding);
			copy(plugin[get(floor_btn)].y, menu.yoffset);


first and quick try: replace "add" with "sub" and see how this will affect positions of the buttons. I mean this:


Quellcode

1
2
3
4
5
<!-- put the buttons under eachother -->
			copy(plugin[get(floor_btn)].x, floor_menu_xoffset);
sub(floor_menu_xoffset, get(menu.floor.height));
sub(floor_menu_xoffset, menu.floor.padding);
			copy(plugin[get(floor_btn)].y, menu.yoffset);



Obviously, there's a complicated queue of copy-paste of parameters from the "menu" array in your "interface.xml" so simple change of "align" might require also changes in other "links" of code.
Regards,

Alexey

5

Dienstag, 1. April 2014, 09:54

Hello Alexey,

I admit that It's all a bit copy and paste :-)

Your code does a strange thing as well, but I'll check out my other codes again.
I'm far from an expert but I'll do my best :-)


Thanks for the reaction.
Servaas

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »servaas« (1. April 2014, 10:24)


6

Dienstag, 1. April 2014, 10:25

Sorry Alexey !
The code you give does work perfect !

Thanks a lot !

Servaas