2022-08-27 15:58:36 +02:00
|
|
|
import { ContextMenuProps } from '../../../interfaces/context';
|
|
|
|
|
import { debugData } from '../../../utils/debugData';
|
2022-08-27 15:40:41 +02:00
|
|
|
|
|
|
|
|
export const debugContext = () => {
|
|
|
|
|
debugData<ContextMenuProps>([
|
|
|
|
|
{
|
2022-08-27 15:58:36 +02:00
|
|
|
action: 'showContext',
|
2022-08-27 15:40:41 +02:00
|
|
|
data: {
|
2022-08-27 15:58:36 +02:00
|
|
|
title: 'Vehicle garage',
|
2022-08-27 15:40:41 +02:00
|
|
|
options: [
|
2022-08-27 15:58:36 +02:00
|
|
|
{ title: 'Empty button' },
|
2023-02-06 15:42:19 +01:00
|
|
|
{
|
|
|
|
|
title: 'Karin Kuruma',
|
|
|
|
|
image: 'https://cdn.discordapp.com/attachments/1063098499027173461/1064276343585505330/screenshot.jpg',
|
|
|
|
|
arrow: true,
|
|
|
|
|
colorScheme: 'blue',
|
|
|
|
|
metadata: [
|
|
|
|
|
{
|
|
|
|
|
["label"]: "Body",
|
|
|
|
|
["value"]: "55%",
|
|
|
|
|
["progress"]: 55
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
["label"]: "Engine",
|
|
|
|
|
["value"]: "100%",
|
|
|
|
|
["progress"]: 100
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
["label"]: "Oil",
|
|
|
|
|
["progress"]: 11
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
["label"]: "Fuel",
|
|
|
|
|
["progress"]: 87
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2022-08-27 15:40:41 +02:00
|
|
|
{
|
2022-08-27 15:58:36 +02:00
|
|
|
title: 'Example button',
|
|
|
|
|
description: 'Example button description',
|
|
|
|
|
icon: 'inbox',
|
|
|
|
|
image: 'https://i.imgur.com/YAe7k17.jpeg',
|
|
|
|
|
metadata: [{ label: 'Value 1', value: 300 }],
|
2022-11-06 11:01:39 +01:00
|
|
|
disabled: true,
|
2022-08-27 15:40:41 +02:00
|
|
|
},
|
2022-12-04 04:33:25 -05:00
|
|
|
{
|
|
|
|
|
title: 'Oil Level',
|
|
|
|
|
description: 'Vehicle oil level',
|
|
|
|
|
progress: 30,
|
|
|
|
|
icon: 'oil-can',
|
|
|
|
|
metadata: [{ label: 'Remaining Oil', value: '30%' }],
|
|
|
|
|
arrow: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Durability',
|
|
|
|
|
progress: 80,
|
|
|
|
|
icon: 'car-side',
|
|
|
|
|
metadata: [{ label: 'Durability', value: '80%' }],
|
|
|
|
|
colorScheme: 'blue'
|
|
|
|
|
},
|
2022-08-27 15:40:41 +02:00
|
|
|
{
|
2022-08-27 15:58:36 +02:00
|
|
|
title: 'Menu button',
|
|
|
|
|
icon: 'bars',
|
|
|
|
|
menu: 'other_example_menu',
|
2022-09-08 11:11:27 +02:00
|
|
|
arrow: false,
|
2022-08-27 15:58:36 +02:00
|
|
|
description: 'Takes you to another menu',
|
|
|
|
|
metadata: ['It also has metadata support'],
|
2022-08-27 15:40:41 +02:00
|
|
|
},
|
|
|
|
|
{
|
2022-08-27 15:58:36 +02:00
|
|
|
title: 'Event button',
|
|
|
|
|
description: 'Open a menu and send event data',
|
|
|
|
|
icon: 'check',
|
2022-08-27 15:40:41 +02:00
|
|
|
arrow: true,
|
2022-08-27 15:58:36 +02:00
|
|
|
event: 'some_event',
|
|
|
|
|
args: { value1: 300, value2: 'Other value' },
|
2022-08-27 15:40:41 +02:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]);
|
|
|
|
|
};
|