Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

MikaG

Anfänger

Beiträge: 24

Wohnort: Berlin, Germany

  • Nachricht senden

81

Sonntag, 19. Juni 2016, 19:23

non static action scripting

Hello everybody,

I have a problem forming some xlm code within an action of this plugin. I changed the width of the entire side menu, but the animated sidemenu items did not follow the altered width by themselves. I got the problem solved by some static code and it works just fine. But I am eager to get it done with non static entries way down in the lines of code, and just the need to alter one variable in the top section of the sidemenu.xml.

My goal is to make the sliding menu entries just 20 pixels more narrow, than the entire menu width, since this is the needed space for the "onover" sliding effect.

Here is my static and primitive example:

<menu_settings background_width ="250"
...
/>
.
..
<action name="switch_menu">
...
set(plugin[%menu_0].width,230);
...
</action>


This way the sidemenu entries are 20 pixels more narrow. But I just want to change the background_width in the top entry and the action should subtract 20 pixels accordingly by itself. I tried various things, but never got it right. Any coding/syntax tips would be highly appreciated.

Here is my faulty code:

<action name="switch_menu">
...
set(plugin[%menu_0].width,sub(width,get(menu_settings.background_width);,20));
...
</action>



In plain math it should read: menu_0.width,230 = 250-20

82

Sonntag, 19. Juni 2016, 23:39

Quellcode

1
set(plugin[%menu_0].width,calc(menu_settings.background_width -20));
should do the trick

MikaG

Anfänger

Beiträge: 24

Wohnort: Berlin, Germany

  • Nachricht senden

83

Montag, 20. Juni 2016, 09:42

It does! Thanks, Umalo!

Utkarsh91

Anfänger

Beiträge: 1

Wohnort: India

Beruf: Software Engineer

  • Nachricht senden

84

Mittwoch, 13. Juli 2016, 09:11

How to use SideMenu for VR

Hi Everyone


Is there any way we can use Sidemenu plugin for VR too, because in my code it only works in non VR mode.



Please help *smile*

85

Mittwoch, 13. Juli 2016, 10:36

Layer based SideMenu in VR doesn't make any sense as you can't activate menu with the + sign in the middle of the screen. It can be made visible and functional on touch even in VR but this is not use case anybody would use.
Another idea is to make it floating hotspots based but this request new implementation of SideMenu

86

Freitag, 11. August 2017, 11:33

SideMenu is updated and I want to share it with community. This version has animated buttons. It has thumbs and support multi language.

Online version is available: here
You can download package including code: here

As stated in side menu pluginsection it is free to be used.
Enjoy
But how to make level 3 in the menu? I write in the second level: link="switch_menu(3);" thumb_url="panos/0001.tiles/thumb.jpg" /> but he does not go into this group. Only 2 levels are supported in the menu?

87

Freitag, 11. August 2017, 14:34

Explore version: https://krpano.com/forum/wbb/index.php?p…52031#post52031 to learn how to define groups to supoprt 3rd level.
There is also commercial version: https://gum.co/gVBK
regards
Umalo

88

Freitag, 11. August 2017, 20:43

Explore version: https://krpano.com/forum/wbb/index.php?p…52031#post52031 to learn how to define groups to supoprt 3rd level.
There is also commercial version: https://gum.co/gVBK
regards
Umalo
Is there an example of a commercial version? Show me please

89

Samstag, 12. August 2017, 00:11

You have them in PM.

90

Donnerstag, 7. September 2017, 04:56

Explore version: https://krpano.com/forum/wbb/index.php?p…52031#post52031 to learn how to define groups to supoprt 3rd level.
There is also commercial version: https://gum.co/gVBK
regards
Umalo
Is there an example of a commercial version? Show me please
Hello Umalo I just got the pro version, do you have a pro version for a textfiled that I can buy ?
Thank You

91

Donnerstag, 7. September 2017, 12:57

I'd like also to see difference between free and commercial version.
Thanks for the example in advance...

92

Donnerstag, 7. September 2017, 13:55

ha... i didnt read anything from above
but stumbled on the thread and must say:
" (new plugin from today) " is a great title .)

93

Donnerstag, 7. September 2017, 20:56

Zitat

...pro version for a textfiled that I can buy ?
What you mean by pro version of Textfield?

94

Samstag, 9. September 2017, 03:55

Explore version: https://krpano.com/forum/wbb/index.php?p…52031#post52031 to learn how to define groups to supoprt 3rd level.
There is also commercial version: https://gum.co/gVBK
regards
Umalo
Is there an example of a commercial version? Show me please
Hello Umalo I just got the pro version, do you have a pro version for a textfiled that I can buy ?
Thank You
Hello Umalo,

Can you give me advice on how to set the pro menu to start closed. In the free version I was abele to do it as it is explained in the forum, but in this pro version when I change:

background_x ="-200". It closes, but I need to click twice to start opening and closing properly.


If I change the line bellow to right it open but it does not close again.

<layer name="submenu_x".... onclick="switch_menu(0); slide_menu_right();" it opens but it do not close again?

I appreciate your help.

Thank You
Best
Erwin List

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »erwinlist« (9. September 2017, 04:24)


95

Sonntag, 10. September 2017, 00:51

Zitat

...pro version for a textfiled that I can buy ? I button that open a pop up text field, integrated to the menu in a tab or similar?

Zitat


What you mean by pro version of Textfield?

96

Sonntag, 10. September 2017, 17:22

Zitat

Can you give me advice on how to set the pro menu to start closed.

Find:

Quellcode

1
set(layer[gui_menu_background].visible,true);

and add slide_menu_left(); before you turn on menu visible:

Quellcode

1
2
slide_menu_left();
set(layer[gui_menu_background].visible,true);

97

Dienstag, 3. Oktober 2017, 20:17

Preview

Hi,

Can you send me the preview link for the commercial version please?

Regards!

98

Dienstag, 3. Oktober 2017, 20:28

When I make preview I will do.

99

Dienstag, 24. Oktober 2017, 07:58

One request

I´m already bought the commercial version, and it's very helpful!

I Have only one request: how can I do so that after clicking on an object / link the menu closes automatically?

Best regards!

100

Dienstag, 24. Oktober 2017, 09:19

I Have only one request: how can I do so that after clicking on an object / link the menu closes automatically?
Object in menu can be switch to upper/lower group so we can't have it closing menu on every click. Easy solution is to activate menu to be closed directly in side menu xml definition. After loadscene action you can add:

Quellcode

1
slide_menu_left();

Example of one menu item link:

Quellcode

1
link="loadscene(pano1_1,null,MERGE,BLEND(1));slide_menu_left();"

Action slide_menu_left is already defined within side menu code.