You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Kev-in-spain

Intermediate

  • "Kev-in-spain" started this thread

Posts: 152

Location: Barcelona

Occupation: VR Photographer

  • Send private message

1

Thursday, September 13th 2012, 3:48pm

Get rid of the 'dash'

Hi all,
I need to get rid of the small 'dash' (-) that remains before the scene title when you leave the main title blank.

Example:
<krpano version="1.0.8.15" title="" onstart="startup();">

<scene name="scene_1" title="Exterior Hotel" onstart="" thumburl="panos/1.tiles/thumb.jpg" lat="" lng="" heading="">

What shows on screen is: - Exterior Hotel

Possible?

2

Friday, September 14th 2012, 2:35pm

Hi,

in the 'vtourskin.xml' look for this line: (in the 'skin_update_scene_infos' <action>)

Source code

1
txtadd(layer[skin_title].html, get(title), ' - ', get(scene[get(xml.scene)].title) );


there the full title text is build together,
to show just the scene tile, change it to:

Source code

1
txtadd(layer[skin_title].html, get(scene[get(xml.scene)].title) );

or to this: (an even more reduced code for this case)

Source code

1
copy(layer[skin_title].html, scene[get(xml.scene)].title);


best regards,
Klaus

Kev-in-spain

Intermediate

  • "Kev-in-spain" started this thread

Posts: 152

Location: Barcelona

Occupation: VR Photographer

  • Send private message

3

Friday, September 14th 2012, 3:26pm

Thanks Klaus

Similar threads