- By default, the menu is created automatically as a "thumbnail bar".
- Set the required number of lines in the menu and assign them your actions.
- Create the number of groups you need.
- Create groups within groups. You can set the depth of nested lists.
- When the window height is full, the menu scrolls automatically.
- Adjust menu width, color, transparency.
- Change You own design of the buttons.
- You can change the design of the individual button.
- Assign icons to buttons.
- You can create thumbnail bar.
- Enter text in two languages. The language switch button will appear automatically.
This is a universal menu in which you can create and customize the structure and design, assign the necessary actions to the buttons. The number of elements and depth of attachments depends on Your decision.Menu buttons can have two purposes:
1. Group header.
Only used to open a group (no other action can be assigned). There must be one or more buttons in the group. The button in the group can cause any action or be a "header" of another group which in turn can also contain buttons "header". The depth of investments is not limited. A marker(arrow) appears on the title button on the right. When you click the button, the window with the group belonging to it is opened.
2.Action call button.
On click on button is assigned fulfilling any actions (opening the scene, change kind of viewing, open information window etc.).
After clicking on the button, the text of this button becomes translucent - an indication that this button has been pressed. The plugin provides code to open the scene load_m(name scene);enter the name of the scene in parentheses.
There are three types of buttons - container, thumbnail or picture.
This is a "container" layer with border, fill, shadow, transparency settings, etc. By default, the fill color changes when you hover the mouse (you can change the destination in styles).
2. Miniature (can't be a "header").
To create a thumbnail bar. Image(thumbnail) is assigned to the button. A text bar is created at the bottom of the thumbnail. When you hover mouse, background of the text is highlighted. Clicking on the thumbnail sets (preview) marker in the upper left corner. The button can be used to open scenes, photos, etc. Can be set to any other action.
Set your button image. y default, the style is spelled out when you hover the image frame change"crop"
You can add an icon to the button, it is set before the text. You can set the button picture individually. Individually assign container style to buttons and text. Default settings are Configured for menu design, logo, created buttons, text.
Write mostly xml:
<krpano .... > <include url="menu/menu_sm.xml" /> . . </krpano>
To create your own menu structure set in the file: style_menu.xml - auto_menu="false" !
To create a menu, you need to write down the elements, renaming them according to a certain scheme. The numbers in the name determine the position of the item in the menu (menu_ №… _ №…_ № ), for example: name= "menu_1_2_3" means that this is the third line in group 2, group 2 is the second line in group 1, group 1 is the first line in the start menu list.
An example of the use of syntax / XML. File list_menu.xml
<krpano > <menu_v name="menu_1" title_1="Menu 1"/> <menu_v name="menu_1_1" title_1="Menu 1-1" click="Test(Menu 1-1);"/> <menu_v name="menu_1_2" title_1="Menu 1-2"/> <menu_v name="menu_1_2_1" title_1="Menu 1-2-1" click="Test(Menu 1-2-1);"/> <menu_v name="menu_1_2_2" title_1="Menu 1-2-2" click="Test(Menu 1-2-2);"/> <menu_v name="menu_1_2_3" title_1="Menu 1-2-3" click="Test(Menu 1-2-3);"/> <menu_v name="menu_2" title_1="Menu 2" click="Test(Menu 2);"/> </krpano>
n the example, the Test (text); action displays text on the screen. Look at the result.
The attributes of the element.
When you click on the button, the button text changes the transparency to "0.5". You can turn off the transparency change, if at the end of the action do not put a semicolon ";"
The icon style is set in the menu settings
An additional image layer is created, which is located inside the button container and fills it in height and width by 100%. You can change the borders of the container, they will be applied to the button. The image style is taken from themenu settings .Additional settings of the button with the image you can change in the file "style_menu.xml" - style "menu_picture"
In the style_menu.xml file in menu_sm you can select the main menu settings.
You can make more advanced settings in the styles that are written in the same file.
<menu_sm auto_menu="true" open_start="true" menu_width="250" menu_bgcolor="0x0F373D" menu_bgalpha="0.8" menu_align="lefttop" logo_cont_height="70" logo_height="70" logo_y="5" logo="%CURRENTXML%/image/logotip.png" logo_text="http://novosibpano.ru/Plugins" logo_css_text="font-family:Arial; font-size:15px; color:#FFFFFF; text-align:center; margin-left:5px; margin-right:5px;" logo_click="openurl(http://novosibpano.ru/Plugins/" title_height="40" title_bgcolor="0x2B6F7A" title_text_1="Menu" title_text_2="Меню" title_css="font-family:Arial; font-size:17px; color:#FFFFFF; text-align:center; margin-left:20px; margin-right:5px;" title_onover_color="0x367F8A" title_picture="menu/icon/butt2.jpg" head_step_V="10" head_width="90%" head_height="50" head_bgcolor="0x2D707A" head_bgalpha="1" head_bgborder="1,1,1,1 0x777777 0.3" head_bgroundedge="0 25 0 25" head_line_css="font-family:Arial;font-size:17px; color:#FFFFFF; margin-left:15px; margin-right:20px;" head_onover_color="0x43B1C2" line_step_V="7" line_width="92%" line_height="37" line_bgcolor="0x2D707A" line_bgalpha="1" line_onover_color="0x43B1C2" line_bgborder="1,0,1,0 0xFFFFFF 0.0" line_bgroundedge="0 0 0 0" line_css="font-family:Arial; font-size:15px; color:#FFFFFF; margin-left:15px; margin-right:10px;" thumbnail_bgborder="2,2,2,2 0xFFFFFF 0.3" thumbnail_bgroundedge="0 15 0 15" thumbnail_width="85%" thumbnail_height="100" thumbnail_step_V="20" thumbnail_css="font-family:Arial; font-size:14px; color:#FFFFFF; text-align:center; margin-left:5px; margin-right:5px;" picture_line="" picture_alpha="1" picture_crop="0|80|273|80" picture_onower="set(crop,0|0|273|80)" picture_onout="set(crop,0|80|273|80)" 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" menu_generator="true" />
Menu design settings
Installation of the logo and its signature. At the top of the menu , a container is created in which the logo image is placed.
Container-menu title with return arrow.
When you open a group its name is set at the head of the list
The "title" button opens the group attached to it.
If the "click" attribute is not set, the button automatically becomes the" title" of the group. An arrow appears on the right of the button to open group list. The group must have attachments!
The group button. Starts the action.
If the "click" attribute is filled in, the button automatically becomes a group element.
Additional settings of the container "action call Button" you can change in the file "style_menu.xml" - style "Line_menu" and text style - "txt_line"
A button is created in the form of a thumbnail image with text at the bottom of the thumbnail.
If the path to the image is entered in "picture_line", it is assigned to all menu buttons. (Optional attribute)
If the icons in the buttons are set, these settings are applied to them.
The bottom of the container with a button to switch language. The button appears automatically if there is a filled attribute "lang_2".
Signatures are taken from the "title" spelled out in the scenes.
Sample generated code.
<menu_v name="menu_1" title_1="NGU" title_2="" click="load_m(scene_ngu);" thumbnail="panos/NGU.tiles/thumb.jpg"/> <menu_v name="menu_2" title_1="1 Altay" title_2="" click="load_m(scene_1);" thumbnail="panos/1.tiles/thumb.jpg"/> <menu_v name="menu_3" title_1="acadtmparc" title_2="" click="load_m(scene_acadtmparc);" thumbnail="panos/acadtmparc.tiles/thumb.jpg"/> <menu_v name="menu_4" title_1="alp_lag" title_2="" click="load_m(scene_alp_lag);" thumbnail="panos/alp_lag.tiles/thumb.jpg"/> <menu_v name="menu_5" title_1="Bassein" title_2="" click="load_m(scene_bassein);" thumbnail="panos/Bassein.tiles/thumb.jpg"/>
Download the DEMO tour, there is a plugin menu. You can plug it into your tour and test it.
The demo is fully operational until 19.12.2019.
After receiving the payment within 24 hours, I will send you a link to download the example with the plugin.
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.