You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2012-12-06 23:05:09

nigelhumpherson
New member
From: Plymouth, UK
Registered: 2012-02-02
Posts: 4
Website

Aligning the Navigation Bar

Hello everyone,

Does anyone know how to change the alignment of the navigation bar?

It defaults to bottom centre, but does anyone have some coding for the xml file to make it bottom right?

Many thanks in advance for your help. Nigel

Offline

 

#2 2012-12-07 00:39:24

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2354
Website

Re: Aligning the Navigation Bar

Hi Nigel...

Navigatino bar??... Are you using krpano?... That can create a bar at the bottom.. All the menu buttons have thier xml code in the main xml file. Your can change the bottom centre to bottom left or bottom right or use the Y value to edit the left/right locations.. You can also change the up/down using the X value -/+.. If you have any issues I will do it for you..wink..

Destiny..


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#3 2012-12-07 01:28:57

gkaefer
Member
From: Salzburg
Registered: 2009-06-09
Posts: 2676
Website

Re: Aligning the Navigation Bar

in ptp 1.8 you can set the margin from bottom: project properties -> Appearance -> Margin this value will be shown in the control bar template as variable $MARGIN (this is the y coordinate ... y pixels from center bottom)
but the x coordinate and the alignment itself can only be edited in the xml. this can be done in final xml or in the templates: in ptp: edit->open template directory... the navbar / controlbar xml files are in menu subdirectory...

Code:

    <!-- menu buttons -->
    <plugin name="openfs"
            url="$(STYLEDIR)/btn_openfs.png"
            width="40"
            height="prop"
            ...
            align="bottom"
            x="0"
            y="$(MARGIN)"
            onclick="set(fullscreen,true);"
            ...
    />

x="0" means center...
x="100" means 100 pixel right to the center... so that does not what you want.

so according to krpano docu you can add/change align statements in your plugins (each button is defined as plugin):

Code:

    <!-- menu buttons -->
    <plugin name="openfs"
            url="$(STYLEDIR)/btn_openfs.png"
            width="40"
            height="prop"
            ...
            align="bottomright"
            x="20"
            y="$(MARGIN)"
            onclick="set(fullscreen,true);"
            ...
    />

above will place the button 20 pixels from bottomright...

Georg

Last edited by gkaefer (2012-12-07 01:37:33)

Offline

 

#4 2012-12-10 23:48:15

nigelhumpherson
New member
From: Plymouth, UK
Registered: 2012-02-02
Posts: 4
Website

Re: Aligning the Navigation Bar

Thank you both very much. I've learnt something new and solved my problem.

Kindest regards, Nigel

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson