Sie sind nicht angemeldet.

1

Sonntag, 8. Juli 2012, 19:10

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:

Quellcode

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

Quellcode

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?

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »pear« (8. Juli 2012, 20:43)


2

Montag, 9. Juli 2012, 12:32

Hi,

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

use just use:

Quellcode

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


best regards,
Klaus

3

Montag, 9. Juli 2012, 13:20

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

Quellcode

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?

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »pear« (9. Juli 2012, 14:57)