mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
Move all debug functions into a single developer drawer, Not the best implementation as there is focus fighting going on between some elements and the drawer but will do for now without state management
42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import { debugData } from "../../../utils/debugData";
|
|
import { MenuSettings } from "../../menu/list";
|
|
|
|
export const debugMenu = () => {
|
|
debugData<MenuSettings>([
|
|
{
|
|
action: "setMenu",
|
|
data: {
|
|
// position: "bottom-left",
|
|
title: "Vehicle garage",
|
|
items: [
|
|
{ label: "Option 1", icon: "heart" },
|
|
{
|
|
label: "Option 2",
|
|
icon: "basket-shopping",
|
|
description: "Tooltip description 1",
|
|
},
|
|
{
|
|
label: "Vehicle class",
|
|
values: ["Nice", "Super nice", "Extra nice"],
|
|
icon: "tag",
|
|
description: "Tooltip description 2",
|
|
},
|
|
{ label: "Option 1" },
|
|
{ label: "Option 2" },
|
|
{
|
|
label: "Vehicle class",
|
|
values: ["Nice", "Super nice", "Extra nice"],
|
|
defaultIndex: 1,
|
|
},
|
|
{ label: "Option 1" },
|
|
{ label: "Option 2" },
|
|
{
|
|
label: "Vehicle class",
|
|
values: ["Nice", "Super nice", "Extra nice"],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
]);
|
|
};
|