Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<events onresize="set_custom_area_pos_and_size();" /> <action name="set_custom_area_pos_and_size"> <!-- set a fixed size area --> set(area.width, 500); set(area.height, 300); <!-- center it --> sub(tmpx, stagewidth, area.width); sub(tmpy, stageheight, area.height); mul(area.x, tmpx, 0.5); mul(area.y, tmpy, 0.5); </action> |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »maaike« (13. Mai 2010, 19:17)
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comBenutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comhe poep,
fix the area, or % .. no margins possible yet (!) with the area..
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comis there any documentation about that 'sub' and 'mul' and more of that?
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
- add/sub/mul/div/mod math operators - usage: with 2 parameters: - add(dst,val1) => dst = dst + val1 (like +=) - sub(dst,val1) => dst = dst - val1 (like -=) - mul(dst,val1) => dst = dst * val1 (like *=) - div(dst,val1) => dst = dst / val1 (like /=) - mod(dst,val1) => dst = dst % val1 (modulate) with 3 parameters: - add(dst,val1,val2) => dst = val1 + val2 - sub(dst,val1,val2) => dst = val1 - val2 - mul(dst,val1,val2) => dst = val1 * val2 - div(dst,val1,val2) => dst = val1 / val2 - mod(dst,val1,val2) => dst = val1 % val2 (modulate) - val1/val2 can be values or variables |
I have a fixed sized map and would like to have my pano fill the rest of the page (map is on the bottom). Is there a way to calculate the remaining space (because people have different resolutions)?
stageheight - mapheight or so? But how?
mapheight is a fixed height.
|
|
Quellcode |
1 2 3 4 5 6 |
sub(destwidth,stagewidth,275); sub(destheight,stageheight,101); set(area.x,10); set(area.y,10); copy(area.width,destwidth); copy(area.height,destheight); |