Files
ox_lib/web/src/features/dev/debug/menu.ts
T

56 lines
1.5 KiB
TypeScript
Raw Normal View History

2022-08-27 15:58:36 +02:00
import { debugData } from '../../../utils/debugData';
import { MenuSettings } from '../../menu/list';
2022-08-27 15:40:41 +02:00
export const debugMenu = () => {
debugData<MenuSettings>([
{
2022-08-27 15:58:36 +02:00
action: 'setMenu',
2022-08-27 15:40:41 +02:00
data: {
// position: "bottom-left",
2022-08-27 15:58:36 +02:00
title: 'Vehicle garage',
2022-08-27 15:40:41 +02:00
items: [
2022-08-27 15:58:36 +02:00
{ label: 'Option 1', icon: 'heart' },
2022-08-27 15:40:41 +02:00
{
2022-08-27 15:58:36 +02:00
label: 'Option 2',
icon: 'basket-shopping',
description: 'Tooltip description 1',
2022-10-29 12:46:22 +02:00
checked: true,
2022-08-27 15:40:41 +02:00
},
{
2022-08-27 15:58:36 +02:00
label: 'Vehicle class',
values: ['pogchamp', 'nice champ', { label: 'POGGERS', description: 'CHAMPPERS' }],
2022-08-27 15:58:36 +02:00
icon: 'tag',
description: 'Side scroll general description',
2022-08-27 15:40:41 +02:00
},
{
label: 'Oil Level',
progress: 30,
icon: 'oil-can',
description: 'Remaining Oil: 30%',
},
{
label: 'Durability',
progress: 80,
icon: 'car-side',
description: 'Durability: 80%',
colorScheme: 'blue',
iconColor: '#55778d'
},
2022-08-27 15:58:36 +02:00
{ label: 'Option 1' },
{ label: 'Option 2' },
2022-08-27 15:40:41 +02:00
{
2022-08-27 15:58:36 +02:00
label: 'Vehicle class',
values: ['Nice', 'Super nice', 'Extra nice'],
2022-08-27 15:40:41 +02:00
defaultIndex: 1,
},
2022-08-27 15:58:36 +02:00
{ label: 'Option 1' },
{ label: 'Option 2' },
2022-08-27 15:40:41 +02:00
{
2022-08-27 15:58:36 +02:00
label: 'Vehicle class',
values: ['Nice', 'Super nice', 'Extra nice'],
2022-08-27 15:40:41 +02:00
},
],
},
},
]);
};