![]() |
|
|
|
|
|
||||||||||
|
| User list | Rules | You are not logged in.
Hi everybody,
I try ti customize a menu in PTP. As I see in the Kolor Wiki (http://www.autopano.net/wiki-en/action/ … ical_theme ) , the display size of the button is 40px. Is someone knows a trick to have bigger buttons than 40 px ?
Thanx in advance,
Thommen
Offline
well, take bigger images and place them with more distance...
each "button" is handled in form of a "plugin" object inside the xml files... in each such plugin you can set option like the x and y position and the virtual zero point can also be choosen, so x,y 0,0 can be bottom middle of your pano or top left of your pano...
all xml statements available are here:
http://www.krpano.com/docu/xml/
Liebe Gruesse,
Georg
Online
Yep, like Georg says but here is more info...
Essentially, you need to edit your XML to accommodate the change in size and X/Y values.. The thing you need to understand about a menu set, the buttons work like a kind of coded animation based on a single graphic that move its position so basically its in two parts as seen below at the "off" button, but this one has two buttons, which you can see in the XML code below, so not just an over state but a change button state from "on" to "off". It does this so quickly that you will not notice this happening.. You can see that this XML code has : "0|65|120|65" for the button crop values which is basically the transition between the two states, the over state gives a value of 65. You can see the X and Y values of the buttons below, which accommodates the extra width in this button set as seen in my link.. But as you can see from the graphics below, and as Georg says, you also have to change X and Y values accordingly.. You can basically make any menu button set you want but it's not a quick process but once you have your X/Y values and buttons, you can copy the XML code and past it in for all your tours and then replace the menu set to your own graphics. With cleaver use of the alpa channel in a png, you can create great looking menu buttons.. ![]()
http://www.destinyvirtualtours.com/TEST … STHOT.html
Oh, and there are other crazy tests going on here.. Just ignore those ![]()
Destiny.. ![]()
<plugin name="autorotationOFF" align="bottom" blendmode="normal" crop="0|0|120|65" customColor="true" height="prop" keep="true" onclick="switch(autorotate.enabled);set(plugin[autorotationOFF].visible,false); set(plugin[autorotationON].visible,true);" onovercrop="0|65|120|65" url="TESTHOTdata/graphics/menu/menu10.png" visible="" width="80" x="264" y="10"/>
<plugin name="info" align="bottom" crop="0|0|120|65" customColor="true" height="prop" keep="true" onclick="displayHelp();" onout="" onover="" onovercrop="0|65|120|65" url="TESTHOTdata/graphics/menu/menu11.png" width="80" x="337" y="10"/>
<plugin name="helpScreen" align="center" customColor="true" keep="true" onclick="closeHelp();" url="dockmenu.swf" visible="false"/>
Last edited by Destiny (2012-08-11 03:16:11)
Offline
Thank you very much for your reply.
As I see in the Wiki :
" Note: The 2D theme icons are 65 pixels wide and 130 pixels high. This width of 65 pixels is recognized by Panotour Pro by default.
If you wish to create or use icons of a different width, you need to modify the newTheme.xml file by adding the iconwidth parameter.
So if you use icons 32 pixels wide, the general description of the theme line in the newTheme.xml file becomes:
Be aware, though, that the final size of the buttons in the tour will be 40 pixels. This is the display size that is defined in each of the menu templates supplied with Panotour Pro.
It is advisable, therefore, to not create buttons that are too small as this risks a degradation in their quality. "
My goal is to create a PTP theme to exclude injecting or copying xml in the final folder created by PTP.
The theme would looks like this
as described here http://www.autopano.net/wiki-en/action/ … _templates.
I well understand the w|h|x|y but when and I've change the "iconwidth" to 46 but the result still be 40 px...
Destiny: what I don't understood is how do you implement this big grey rounded multi button in a tour ...
I continue my investigations and thank you again.
Offline
Hi.. Well the big grey menu button set is just an example of a more complicated menu set, I also made it bigger so it could be seen better. You can see here at the graphic that its made up of four buttons with an up and over state within the red line. You then bring them together using the X/Y but its best to use even px sizes since it will fit better.. If you use odd px sizes you run the risk of half increments with this setup which you cannot use.. I have put the final button at a 65% alpha on the up state, perhaps a 85% on the over state might look nice and a different colour. You could even make up a spot for the centre for the Home button. I was just showing what is possible..
Destiny...
Last edited by Destiny (2012-08-11 11:53:30)
Offline
Thommen2 Quote "I well understand the w|h|x|y but when and I've change the "iconwidth" to 46 but the result still be 40 px... "
This is not right.. it is not the w|h| as such... this in fact is the crop factor so even if you change this to 46, you will still see a button size of 40 since that is the true size of the buttons.. If you want 46 sized buttons you have to physically change the size of them using Photoshop.. Then if the buttons clash, you have to change the x/y values to separate them...
Destiny...
Last edited by Destiny (2012-08-12 02:23:42)
Offline
Thommen2 wrote:
Hi everybody,
I try ti customize a menu in PTP. As I see in the Kolor Wiki (http://www.autopano.net/wiki-en/action/ … ical_theme ) , the display size of the button is 40px. Is someone knows a trick to have bigger buttons than 40 px ?
Thanx in advance,
Thommen
Hi Thommen!
You can change the button-size easily by setting a different width in the xml:
. . . . url="SonneTourdata/graphics/menu/menu0.png" width="60" x="0" y="-30"/>
bst, Klaus
PS: when using customized buttons it´s better to generate them in the size you need them to be.
Last edited by klausesser (2012-09-15 13:54:51)
Online
Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
|
CHOOSING KOLOR Why choose Kolor? Which solution to choose? Download a trial Where can I buy? Education |
SOFTWARE Autopano Pro Autopano Giga Panotour Panotour Pro XnView |
ACCESSORIES Training DVD Panobook PROJECTS Paris 26 Gigapixels Yosemite 17 Gigapixels |
COMMUNITY Forums YouTube channel Google+ |
COMPANY Blog About Kolor Resellers Contact Visit us |
PRESS Press center Press review TOOLS My account |
