Image-stitching and virtual tour solutions My account Updates
It is currently Tue Jul 22, 2014 12:26 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Thu Oct 31, 2013 12:49 pm 
Offline
New member

Joined: Thu Oct 31, 2013 12:32 pm
Posts: 1
Hi all,

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

Benjamin.


Top
 Profile  
 
 Post subject: Re: Cursor customization
PostPosted: Mon Nov 04, 2013 4:07 pm 
Offline
Member
User avatar

Joined: Tue Apr 09, 2013 10:59 am
Posts: 1932
Location: France
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

_________________
Benjamin
http://www.kolor.com


Top
 Profile  
 
 Post subject: Re: Cursor customization
PostPosted: Fri Feb 28, 2014 11:23 am 
Offline
New member
User avatar

Joined: Fri Oct 25, 2013 12:38 pm
Posts: 8
Location: Spain
Hi,
please i will like to change the cursor, but I can not.
You can tell me how it's done?

_________________
http://www.impulsa360.com/


Top
 Profile  
 
 Post subject: Re: Cursor customization
PostPosted: Wed Mar 12, 2014 11:29 am 
Offline
Member
User avatar

Joined: Tue Apr 09, 2013 10:59 am
Posts: 1932
Location: France
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.

_________________
Benjamin
http://www.kolor.com


Top
 Profile  
 
 Post subject: Re: Cursor customization
PostPosted: Fri Mar 21, 2014 10:22 pm 
Offline
Member

Joined: Sun Aug 28, 2011 6:21 pm
Posts: 16
If you don't want to edit your xml, check a PTP plugin here: http://dev.alexpopov.me/panotour_plugin ... index.html


Top
 Profile  
 
 Post subject: Re: Cursor customization
PostPosted: Sat Mar 22, 2014 4:09 am 
Offline
Member
User avatar

Joined: Mon Apr 26, 2010 11:55 pm
Posts: 4663
Location: Australia
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>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group