From 64e140ae884e0d60cfe6a87609d5c807436e073e Mon Sep 17 00:00:00 2001 From: DekoKiyo Date: Fri, 30 Aug 2024 17:43:39 +0900 Subject: [PATCH] =?UTF-8?q?Weapon=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JsonGenerator/src/App.tsx | 2 + JsonGenerator/src/components/ui/textarea.tsx | 24 ++ JsonGenerator/src/generators/Objects/Ped.tsx | 57 +--- .../src/generators/Objects/Vehicle.tsx | 49 +-- .../src/generators/Objects/Weapon.tsx | 301 ++++++++++++++++++ JsonGenerator/src/store/keys.ts | 1 + JsonGenerator/src/styles/globals.css | 3 +- 7 files changed, 336 insertions(+), 101 deletions(-) create mode 100644 JsonGenerator/src/components/ui/textarea.tsx create mode 100644 JsonGenerator/src/generators/Objects/Weapon.tsx diff --git a/JsonGenerator/src/App.tsx b/JsonGenerator/src/App.tsx index 766b2973..b7acedd9 100644 --- a/JsonGenerator/src/App.tsx +++ b/JsonGenerator/src/App.tsx @@ -17,6 +17,7 @@ import PacificBankHeistGen from './generators/Callouts/PacificBankHeist'; import { VehicleGen } from './generators/Objects/Vehicle'; import { Toaster } from './components/ui/toaster'; import { PedGen } from './generators/Objects/Ped'; +import { WeaponGen } from './generators/Objects/Weapon'; function App() { return ( @@ -40,6 +41,7 @@ function App() { /> + {/* CALLOUTS */} diff --git a/JsonGenerator/src/components/ui/textarea.tsx b/JsonGenerator/src/components/ui/textarea.tsx new file mode 100644 index 00000000..6d1cb759 --- /dev/null +++ b/JsonGenerator/src/components/ui/textarea.tsx @@ -0,0 +1,24 @@ +import * as React from "react" + +import { cn } from "../../lib/utils" + +export interface TextareaProps + extends React.TextareaHTMLAttributes {} + +const Textarea = React.forwardRef( + ({ className, ...props }, ref) => { + return ( +