Skip to content
Update Menu structure authored by Nanit's avatar Nanit
...@@ -88,7 +88,7 @@ To create a menu whether in a separate file or in a single file you need to conf ...@@ -88,7 +88,7 @@ To create a menu whether in a separate file or in a single file you need to conf
| items | [Object list](Data types#list) | {-No-} | Menu items | | items | [Object list](Data types#list) | {-No-} | Menu items |
| activators | [Object](Data types#object) | {-No-} | [Actions](Actions) to open a menu | | activators | [Object](Data types#object) | {-No-} | [Actions](Actions) to open a menu |
| rules | [Object](Data types#object)/[Object list](Data types#list) | {-No-} | [Rules](Rules) to open a menu. If one of those is **false** then menu won't open | | rules | [Object](Data types#object)/[Object list](Data types#list) | {-No-} | [Rules](Rules) to open a menu. If one of those is **false** then menu won't open |
| iRules | [Object](Data types#object)/[Object list](Data types#list) | {-No-} | Inverse [Rules](Rules) to open a menu. If one of those is **true** then menu won't open. It can be combined with `rules` to make specific logic. | | irules | [Object](Data types#object)/[Object list](Data types#list) | {-No-} | Inverse [Rules](Rules) to open a menu. If one of those is **true** then menu won't open. It can be combined with `rules` to make specific logic. |
| openActions | [Object](Data types#object) | {-No-} | [Actions](Actions), that perform **after** the menu opens | | openActions | [Object](Data types#object) | {-No-} | [Actions](Actions), that perform **after** the menu opens |
| denyActions | [Object](Data types#object) | {-No-} | [Actions](Actions), that perform if atleast **one** rule is false | | denyActions | [Object](Data types#object) | {-No-} | [Actions](Actions), that perform if atleast **one** rule is false |
| closeActions | [Object](Data types#object) | {-No-} | [Actions](Actions), that perform **after** the menu closes | | closeActions | [Object](Data types#object) | {-No-} | [Actions](Actions), that perform **after** the menu closes |
...@@ -123,7 +123,9 @@ The button in the menu is an ordinary [item] (Item format) with advanced functio ...@@ -123,7 +123,9 @@ The button in the menu is an ordinary [item] (Item format) with advanced functio
| -------------| -------------- | ------------ | ---------------- | | -------------| -------------- | ------------ | ---------------- |
| [slot](Item format#slot) | Integer, Object, Text| Sets the position of an item | {+Yes+} | | [slot](Item format#slot) | Integer, Object, Text| Sets the position of an item | {+Yes+} |
| [rules](#btnRules) | [Object list](Data types#list) | [Rules](Rules) to display buttons in the menu | {-No-} | | [rules](#btnRules) | [Object list](Data types#list) | [Rules](Rules) to display buttons in the menu | {-No-} |
| [iRules](#btnRules) | [Object list](Data types#list) | [Rules](Rules) to display buttons in the menu, working exactly the opposite | {-No-} | | [irules](#btnRules) | [Object list](Data types#list) | [Rules](Rules) to display buttons in the menu, working exactly the opposite | {-No-} |
| [mrules](#btnRules) | [Object list](Data types#list) | Additional [rules](Rules) block, existing only inside the button. These rules have no effect on whether the button is displayed. They are needed only for independent checks and performing actions. | {-No-} |
| [imrules](#btnRules) | [Object list](Data types#list) | Additional **inverted** [rules](Rules) block, existing only inside the button. These rules have no effect on whether the button is displayed. They are needed only for independent checks and performing actions. | {-No-} |
| [click](#btnClicks) | [Object](Data types#list) | It contains actions on a click as well as a description of actions for different types of clicks | {-No-} | | [click](#btnClicks) | [Object](Data types#list) | It contains actions on a click as well as a description of actions for different types of clicks | {-No-} |
As you can see, only the `slot` argument is required for the button because the item must be in a specific slot. As you can see, only the `slot` argument is required for the button because the item must be in a specific slot.
... ...
......