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.

1

Sunday, July 8th 2012, 7:10pm

Showing Scene Title in Corner Always?

Hi,
I'm having a problem showing the current scene title in the corner and having a custom CSS-style on it at the same time.

I'm able to show the current scene title with the following:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!-- TEXT -->
	 <plugin name="titletext" 
	        url="plugins/textfield.swf" 
			keep="true"
			autopos="topleft,120,10" 
			background="false"
			children="true" 
			css="* {font-family:Arial; color:#ffffff;}"
		        html="this_will_be_changed_by_onstart"
			autosize="center"
	/>

and 

<scene name="scene_mp_ruins3" title="Machu Piccu Overview" onstart="set(plugin[titletext].html, get(scene[get(xml.scene)].title) );" thumburl="panos/mp_ruins3.tiles/thumb.jpg">

</scene>


But then the text shows where I want it BUT with the ugly default black times new roman font.
I want to show it with a custom css-style. I have tried setting the plugin css field to

Source code

1
css="* {font-family:Arial; color:#ffffff;}"
without success.

So how do I show a the current scene title (that changes on scene change) with a custom CSS-style?

This post has been edited 1 times, last edit by "pear" (Jul 8th 2012, 8:43pm)


2

Monday, July 9th 2012, 12:32pm

Hi,

try to use the latest 1.0.8.15 pre-release from here:
http://krpano.com/download/beta/

use just use:

Source code

1
css="font-family:Arial; color:#ffffff;"


best regards,
Klaus

3

Monday, July 9th 2012, 1:20pm

Tried to update the new files in the new beta and your css but it didn't work. :(
Any other solution?

And also, is the method I'm using the best for my purpose? I've searched the forum for days and haven't gotten any simple answer to what seems to be such an easy question - To show the title of the current scene.

Another question when I'm at it. I want the viewers to be bale to see on the thumbnails which scene they're viewing, preferably to change the border-width or color. How do I produce this?


EDIT: I got my original problem to work using the following

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!-- TEXT -->
	<plugin name="titletext" 
	        url="plugins/textfield.swf" 
			keep="true"
			align="topleft"
			x="120"
			y="10"
			background="false"
			children="true" 
		        html="TEST"
			css="p{color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:12;}"
			effect="glow(0xFFFFFF,0.85,4,4);dropshadow(2,45,0x000000,4,1);"
	/>
	
	<action name="showname">
		txtadd(plugin[titletext].html,[p],get(scene[get(xml.scene)].title),[p]);
	</action>


	<scene name="test_scene" title="The Test Scene" onstart="showname();" >

It was the txtadd(); function I needed to put the title text in <p></p>. However weird that using a * on the css code didn't work..

Now I only have my other problem, that is:

How do I put a thicker border or another border color on the current scene's thumbnail?

This post has been edited 1 times, last edit by "pear" (Jul 9th 2012, 2:57pm)