[SOLVED] Cursor customization  

Share your tips and tricks here or get help with any Panotour 2.0 problem!
No bug reports (of any kind) in this forum!
no avatar
lapinede
New member
 
Posts: 1
Joined: Thu Oct 31, 2013 12:32 pm

[SOLVED] Cursor customization

by lapinede » Thu Oct 31, 2013 12:49 pm

Hi all,

How can I change the cursor pointer? Like a hand instead of the pointer?
Thanks.

Benjamin.

User avatar
benji33
Kolor Team
 
Posts: 2796
Joined: Tue Apr 09, 2013 10:59 am
Location: France

Re: Cursor customization

by benji33 » Mon Nov 04, 2013 4:07 pm

Panotour doesn't offer this option yet. it's into the feature requests.

You can use the cursors tag of krpano into the xml main file to do it manually.
See here : http://krpano.com/docu/xml/#cursors

User avatar
ajlai fernandez
New member
 
Posts: 8
Joined: Fri Oct 25, 2013 12:38 pm
Location: Spain

Re: Cursor customization

by ajlai fernandez » Fri Feb 28, 2014 11:23 am

Hi,
please i will like to change the cursor, but I can not.
You can tell me how it's done?

User avatar
benji33
Kolor Team
 
Posts: 2796
Joined: Tue Apr 09, 2013 10:59 am
Location: France

Re: Cursor customization

by benji33 » Wed Mar 12, 2014 11:29 am

Use <cursors> tag into XML file.

See : http://krpano.com/docu/xml/#cursors

Sample : http://krpano.com/examples/116/examples/xml-usage/cursors/cursors.html
XML code of sample : http://krpano.com/examples/116/examples/xml-usage/cursors/cursors.xml

A task is opened to add default cursors. An other (later) to customize cusrsors.

no avatar
Spelican
Member
 
Posts: 16
Joined: Sun Aug 28, 2011 6:21 pm

Re: Cursor customization

by Spelican » Fri Mar 21, 2014 10:22 pm

If you don't want to edit your xml, check a PTP plugin here: http://dev.alexpopov.me/panotour_plugin ... index.html

User avatar
Destiny
Moderator
 
Posts: 5002
Joined: Mon Apr 26, 2010 11:55 pm
Location: Australia

Re: Cursor customization

by Destiny » Sat Mar 22, 2014 4:09 am

How to create a custom cursor..

In your main xml copy and past this xml code which will call-in the custom cursor xml... Here you have 3 options, the qtvr, arrow-cursors and the dragcursor.. Or just copy and use only the related cursor you want...

<!-- Destiny Custom Cursor XML Code -->
<include url="%FIRSTXML%/cursors/qtvr-cursors.xml"/>
<!-- Destiny END qtvr Cursor XML -->

<!-- Destiny Custom Cursor XML --
<include url="%FIRSTXML%/cursors/arrow-cursors.xml"/>
<!-- Destiny END arrow-cursors Cursor XML -->

<!-- Destiny Custom Cursor XML --
<include url="%FIRSTXML%/cursors/dragcursor.xml"/>
<!-- Destiny END dragcursors Cursor XML -->

To activate a cursor, you just need to activate it by adding a > to the end where marked red or remove to deactivate. You can only have one activated.. You will see it shade out if its not activated...

I have split the xml code up below so you will need to create a folder called ”cursors” in your main directory. Then copy all of the cursor graphics over into that from the krpano files. You do not need the main cursors.xml…

You can now copy and past these xml codes below into the cursors folder.. Name them accordingly..

You can also create your very own cursor but some coding is required..

http://www.destinyvirtualtours.com/PTPV ... ursor.html

Destiny..


Name this one qtvr-cursors.xml
<krpano version="1.16">

<!-- text styles for startup text and onhover text -->
<textstyle name="infostyle"
origin="center" edge="center" yoffset="-100" textalign="center" background="false" border="false"
fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
showtime="4.0" fadeintime="1.0" fadetime="1.0"
/>

<events onxmlcomplete="action(qtvrcursor);" />

<action name="qtvrcursor">
set(control.mousetype, moveto);
set(cursors.url, %CURRENTXML%/cursors/qtvr-cursors.png);
set(cursors.type, 8way);
set(cursors.move, 0|0|16|16);
set(cursors.drag, 16|0|16|16);
set(cursors.arrow_u, 32|0|16|16);
set(cursors.arrow_d, 48|0|16|16);
set(cursors.arrow_l, 64|0|16|16);
set(cursors.arrow_r, 80|0|16|16);
set(cursors.arrow_lu, 96|0|16|16);
set(cursors.arrow_ru, 112|0|16|16);
set(cursors.arrow_rd, 128|0|16|16);
set(cursors.arrow_ld, 144|0|16|16);
</action>

<plugin name="b3" style="buttonstyle"
html="[p]QTVR[/p]"
align="bottom" x="0" y="25"
onclick="action(qtvrcursor);"
/>
</krpano>



Name this one arrow-cursors.xml
<krpano version="1.16">

<!-- text styles for startup text and onhover text -->
<textstyle name="infostyle"
origin="center" edge="center" yoffset="-100" textalign="center" background="false" border="false"
fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
showtime="4.0" fadeintime="1.0" fadetime="1.0"
/>

<events onxmlcomplete="action(arrowcursor);" />

<action name="arrowcursor">
set(control.mousetype, moveto);
set(cursors.url, %CURRENTXML%/cursors/arrow-cursors.png);
set(cursors.type, 4way);
set(cursors.move, 112|0|28|28);
set(cursors.drag, 112|0|28|28);
set(cursors.arrow_r, 0|0|28|28);
set(cursors.arrow_d, 28|0|28|28);
set(cursors.arrow_l, 56|0|28|28);
set(cursors.arrow_u, 84|0|28|28);
</action>

<plugin name="b2" style="buttonstyle"
html="[p]arrow[/p]"
align="bottom" x="-120" y="25"
onclick="action(arrowcursor);"
/>
</krpano>



Name this one dragcursor.xml
<krpano version="1.16">

<!-- text styles for startup text and onhover text -->
<textstyle name="infostyle"
origin="center" edge="center" yoffset="-100" textalign="center" background="false" border="false"
fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
showtime="4.0" fadeintime="1.0" fadetime="1.0"
/>

<events onxmlcomplete="action(dragcursor);" />

<action name="dragcursor">
set(control.mousetype, drag2D);
set(cursors.url, %CURRENTXML%/cursors/drag-cursors.png);
set(cursors.type, drag);
set(cursors.move, 2|0|30|32);
set(cursors.drag, 37|0|30|32);
</action>

<plugin name="b4" style="buttonstyle"
html="[p]drag cursor[/p]"
align="bottom" x="120" y="25"
onclick="action(dragcursor);"
/>
</krpano>


Return to Using Panotour / Panotour Pro

Who is online

Users browsing this forum: No registered users and 2 guests