To connect the menu with the editor, place the "menu" folder in the root folder with the
tour.
Write in the main xml:
<krpano>
<include url="menu/plugins/menu_sm.xml" />
<include url="menu/editor/edit_menu_sm.xml" />
.
.
</krpano>
After completing the work, disable the editor by deleting this line:
<include url="menu/plugins/edit_menu_sm.xml" />
by default, the lower half of the image will be shown, and when you hover over the button, the
upper
half will be displayed.
To assign any actions to a button (opening a group of buttons, changing the design of the button) it must be activated by clicking on it.
Activate the button and assign an action:
-
Select a scene from the list that opens. If the button is "thumbnail", it will automatically
be assigned
a scene thumbnail and thumbnail caption text, and will be assigned to open the selected
scene. Other buttons will be assigned to open the selected scene and caption.
-
select a scene, set the desired view and viewing angle. The menu button will open this view.
-
Click and select an image in the window that opens. It should be located at
"menu/image/". The button will open this image.
- click -
a line will appear for entering the site address, which will open in the frame when you
click
menu buttons.
Attention!!! Not all sites allow you to open during
frame! Use links without symbols like "&", an error will be generated!
-
click - a line opens for entering the code youtube. You do not need to enter the entire link
to the
video УouTube.
Example: "https://www.youtube.com/watch?v=hUDioIQdDGs"
You need to copy and paste only this piece into the line - "hUDioIQdDGs"
-
click and select the audio file in the window that opens. It should be placed at the path
"menu/sound/". The audio panel will appear. The button will start the audio
sound.
Attention!!! You need to connect the plugin krpano soundinterface.
Example.
YouTube
Save - save the file saved_settings.xml to the folder "menu"
(with
replacement
the old one saved_settings.xml).
Click on the button "style", a window opens for editing the menu design.
To change the parameter, click on the corresponding button and, without releasing it, move
the
cursor to the left or
right.
You can enter the value from the keyboard in the window next to the button.
Depending on the selected item for editing, unnecessary tools in the panel are darkened.
The button is active by default "Menu contayner" (green color).
menu contayner
contayner logo
The logo container is located at the top of the menu.
It contains the image of the logo and the signature of the logo.
logo
Click on the logo thumbnail, a window will open. Select the logo image.
The logo must be in the plugin folder menu/image.
The following can be configured:
title head
Customize the menu title and its text.
You can change the title title (starting position). The currently enabled language is taken
into
account.
Switch to another language and enter a name in it.
menu buttonsActivate the menu button by clicking on it (if the button opens a group nested in it (click), then press and without releasing move the cursor to the side and release (click). Then there will be no transition to the group). The type of this button will be displayed in the editor at the top. Configure the button parameters, the changes will be made immediately visible on the selected button.
This is a new krpano tool for creating filters backgrounds, allowing
you to create interesting and modern designs.
It can be applied to buttons individually or to a menu container.
Select the element to edit (button, container, etc.).
Click on the button
in the design settings panel, the filter panel will open.
The name of the edited layer is displayed at the top.
To change the parameter, click on the button and drag the mouse while it is pressed, or
enter the parameter in the box opposite the button.
By default, you can create 4 types of buttons. Each type is combined into one group.
When you open the design editing panel, green indicators (dots) will appear on the buttons.
-
There is a translucent red circle around the indicator - the button is active for editing.
Opposite the buttons for creating menu buttons there are green indicators. They are
clickable and switch -
edit all buttons of this type simultaneously or separately.
-
The green indicator on the button, changes to the active button are applied to all buttons
of this
button at the same time
groups.
The changes are saved and will be applied to the newly created buttons.
-
Yellow indicator on the button - all buttons of this group are ungrouped and edited by
separately.
When you re-enable grouping, the change in the active button of a specific parameter
apply to all buttons.
For example: you have ungrouped the buttons and set different colors on them. Then grouped
it again
and
they began to change the thickness of the curb. The border thickness will change for all
buttons,
but the color of the buttons will not will chang.
Clicking on the indicator in the button switches its state.
-
Red. The button is completely blocked from editing in the group and is edited individually.
В файл menu/saved_settings.xml находятся основные настройки элементов
меню(параметры контейнера меню, стили кнопок) а так же созданные слои кнопок. При изменении
параметров меню и сохранении значения перезаписываются в файл saved_settings.xml
The menu/saved_settings.xml file contains the main settings of the menu
elements (menu container parameters, button styles) as well as the created button layers.
When changing the menu parameters and saving, the values are overwritten in the
saved_settings.xml file
File style_menu.xml:
<menu_sm open_start="true" open_start_mob="false" click_hide="false" mobile_click_hide="true" menu_width="250" menu_height="100%" menu_x="0" menu_y="0" menu_bgcolor="0x0F373D" menu_bgborder="0,0,0,0 0x689EB0 1.00" menu_bgroundedge="0 0 0 0" menu_bgshadow="2 2 3 0x000000 0.4" menu_bgalpha="0.8" menu_align="lefttop" logo_cont_height="70" logo_height="105" logo_width="122" logo_cont_color="0x55D9C1" logo_cont_alpha="0.5" logo_y="5" logo_x="5" logo="%CURRENTXML%/image/logotip.png" logo_text="https://novosibpano.ru/Plugins" logo_txtshadow="2 2 4 0x000000 0.6" logo_css_text="font-family:Verdana; font-style:italic; color:#FFFFFF; font-size:13px;" logo_padding="0 131 10 20" logo_click="openurl(https://novosibpano.ru/Plugins/" title_height="40" title_width="100%" title_ox="18" title_oy="0" title_bgcolor="0x2B6F7A" title_bgalpha="1" title_bgshadow="0 5 18 0x000000 0.60" title_bgborder="2,0,0,0 0x5C8587 1.00" title_bgroundedge="10 10 10 10" title_text_1="Menu" title_text_2="Меню" title_text_3="" title_text_4="" title_text_bgshadow="2 2 3 0x000000 0.4" title_css="font-family:Verdana; font-style:italic; margin-left:20px; margin-right:5px; color:#FFFFFF; font-size:15px;" title_padding="0 0 0 0" title_onover_color="0x367F8A" title_picture="menu/icon/butt2.jpg" group_indicator_height="20" view_marker="true" icon_style_line="height:20px;vertical-align:middle; margin-right:10px;" icon_style_head="height:25px;vertical-align:middle; margin-right:10px; " bottom_height="40" lang_1="EN" lang_2="RU" lang_3="" lang_4="" loadscene_flags="MERGE" list_window="true" interactive="true" search="true" backup="true"
open_start - (true/false) open menu when tour starts.
open_start_mob - (true/false) open menu when starting a tour on mobile devices.
click_hide - (true/false), hide menu when button is clicked.
mobile_click_hide - (true/false),hide menu when clicking button on mobile devices.
menu_width - (пикс.) width menu.
menu_height - (%) the height of the menu relative to the height of the menu screen.
menu_x - (пикс.) - menu indentation along axis x.
menu_y - (пикс.) - menu indent along axis y.
menu_bgcolor - (0x0F373D) fill color.
menu_bgborder - (0,0,0,0 0x689EB0 1.00) border tinctures.
menu_bgroundedge - (0 0 0 0) corner radius settings.
menu_bgshadow - (2 2 3 0x000000 0.4) tinctures of shadow.
menu_bgalpha - (0-1) transparency. menu background.
menu_align - (lefttop, righttop) menu location menu on the left or right.
You can change additional settings for the menu container in the file"style_menu.xml" - style "row_container".logo_cont_height - (px) height of the logo container.
logo_height - (px) height of the logo image.
logo_cont_color - (0x000000) color of the logo container.
logo_cont_alpha - (0-1) transparency of the logo container.
logo_y - (pix) logo indent from the top edge.
logo_x - (pix) logo indent from the left.
logo - (%CURRENTXML%/image/logotip.png) path to the logo image.
logo_text - text under the logo.
logo_txtshadow (2 2 4 0x000000 0.6) - text shadow.
logo_css_text - css. style of text under the logo.
logo_padding (0 131 10 8) - text indentation.
logo_click - the action of clicking on the logo (opening a link, photo, etc.).
title_height - (pix) height of the container for the displayed text of the groups.
title_width - (pix/%) width of the container for the displayed text of the groups.
title_bgcolor - (0x0F373D) container fill color.
title_bgalpha - (0-1) container fill transparency.
title_bgalpha - (0 5 18 0x000000 0.60) container shadow.
title_bgborder - (2,0,0,0 0x5C8587 1.00) border of the container.
title_bgroundedge - (0 0 0 0) rounding of corners.
title_text_1 - text in the primary language.
title_text_2 - text in an additional language (language switching is possible).
title_text_3 - text in an additional third language.
title_text_4 - text in an additional fourth language.
title_text_bgshadow - (2 2 3 0x000000 0.4) text shadow.
title_css - (css) text style.
title_padding - text indent.
title_onover_color - (0x0F379D) container fill color when hovering over the mouse.
title_picture - (%CURRENTXML%/image/test.png) path to the button image. If not filled, the container fill is used. You can change additional settings for the container with the title in the file "style_menu.xml" - style "cont_title".
group_indicator_height - container height under group indicators.
view_marker - (true/false) set marker on thumbnail of viewed panorama.
You can change additional settings for the image button container in the file "style_menu.xml" - стиль "container_picture"icon_style_line - (css) icon style in the "line" button, for example: height:20px; vertical-align:middle; margin-right:10px;.
icon_style_head - (css) icon style in the "header" button.
Bottom container with the language switch button. The button appears automatically if the "lang_2" attribute is filled in.bottom_height - (pix) height of the container below the menu under the language switch button.
lang_1 - language title_1 (optional).
lang_2 - language title_2 (optional).
lang_3 - language title_3 (optional). If there is a third language, then the language switch button switches all languages sequentially.
lang_4 - language title_4 (optional). If there is a fourth language, then the language switch button switches all languages sequentially.
lang_5 - language title_5 (optional). If there is a fifth language, then the language switch button switches all languages sequentially.
loadscene_flags - flag of loading a scene.
list_window - if enabled, then the plugin window with thumbnails of icons (photos) for selection is displayed, otherwise the explorer window will open.
interactive - if enabled, then the menu will automatically show a thumbnail (button) of the active panorama.
search - Disable/enable search in menu.
backup - (true/false) If set to "true", then when saving a project, the name for saving the backup file in the format "saved_settings.xml - will be displayed first. backup-2021.11.09-20.51.42.xml" and then "saved_settings.xml"
The settings are located in the file menu/plugins/layer_menu.xml .
You can assign to the open photo button.
<settingsViewP сloseClickBg="true" сloseClickPhoto="true" bgalpha="0.3" bgcolor="0x000000" bgborder="10 0xFFFFFF 1" bgshadow="7 7 20 0x000000 0.5" bgroundedge="5" textBgAlpha="0.3" textBgcolor="0x000000" css="font-family:Comic Sans MS, Comic Sans, cursive, Arial; color:#FFFFFF; font-size:20px; text-align:center" blur="30" height_photo="80" />
closeClickBg
- close the image when clicking on the background (true/false).
closeClickPhoto
- close the image when clicking on the image (true/false).
bgalpha
- background transparency (0-1).
bgcolor
- background color(0x000000).
bgborder
- thickness, color, transparency of the border (10 0xFFFFFF 1).
bgshadow
- shadow offset along the x, y axes, blur, color, shadow transparency (7 7 20 0x000000
0.5).
bgroundedge
- rounding corners (5 5 5 5).
textBgAlpha
- transparency of the background under the caption text (5 5 5 5).
textBgcolor
- background color under the caption text (0x000000).
css
- signature text style (font-family:Comic Sans MS, Comic Sans, cursive, Arial;
color:#FFFFFF;
font-size:20px; text-align:center).
blur
- background blur in pixels (0...).
If you have new license krpano,
then you can use the plugin to blur the background of the image.
Blur.Make sure that the
file
"pp_blur.js" located in the folder "plugins".
Uncomment it plugin id="pp_blur" in the file layer_menu.xml, so
that the
background behind the frame is blurred.
height_photo
- the height of the image relative to the height of the viewport in % (0 - 100).
You can use these actions to assign them to menu buttons or any other actions.
If you have new license krpano, uncomment plugin name="pp_blur" in the file layer_menu.xml so that the background behind the frame is blurred.
Download the DEMO tour, there is a plugin menu. You can plug it into your tour and test it.
To do
this, use the file "list_menu.xml" from the folder "new project".
The demo version is fully working and differs from the full one by the presence of the
inscription
"Menu demo version".
Find out how to purchase the plugin by following the link
Plugin is provided "As Is" without warranty of any kind, either express or implied, including any warranty of quality, merchantability, or fitness for a particular purpose. In no event will author of plugin be liable for loss of data, costs of procurement of substitute goods or services or any special, consequential or incidental damages, under any cause of action and regardless of whether or not plugin author have been advised of possibility of such damage. This limitation will apply notwithstanding any failure of essential purpose of any limited remedy provided herein. In any event plugin author will have no liability arising out of this agreement.