RatWasHere

Menu Example

Mar 3rd, 2024
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. {
  2. element: "menu",
  3. storeAs: "something", // Will be an array
  4. name: "Toggle",
  5. types: {
  6. option: "Name", // User picked types will not be present if there are no more than 2 types.
  7. },
  8. // Explanation why types & UItypes aren't merged: Removing an option from types will prevent it from showing up in user picked types. This is kept for backwards compatibility in case if the action creator decides to remove a type but doesn't want to break anything.
  9. UItypes: { // Basically, same structure as an action for the most part
  10. option: {
  11. name: "Option", // This will show up everywhere except the user picked types.
  12. data: {},
  13. pullVariables: bool, // Scrape variables from this or not
  14. UI: [
  15. // UI goes here
  16. ]
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment