From f5584a9b0c815fceb756a2b45f9fc36385c37d74 Mon Sep 17 00:00:00 2001 From: reidlab Date: Tue, 15 Aug 2023 18:15:40 -0700 Subject: [PATCH] update imports, update game name --- default.project.json | 2 +- .../{uiComponents => ui/components}/padding.tsx | 0 .../{uiStore => ui/store}/hooks/useUiProducer.ts | 0 src/ReplicatedStorage/{uiStore => ui/store}/producer/index.ts | 0 src/StarterPlayer/StarterPlayerScripts/showGUI.tsx | 2 +- src/StarterPlayer/StarterPlayerScripts/ui/hotbar/hotbar.tsx | 2 +- src/StarterPlayer/StarterPlayerScripts/ui/hotbar/slot.tsx | 2 +- 7 files changed, 4 insertions(+), 4 deletions(-) rename src/ReplicatedStorage/{uiComponents => ui/components}/padding.tsx (100%) rename src/ReplicatedStorage/{uiStore => ui/store}/hooks/useUiProducer.ts (100%) rename src/ReplicatedStorage/{uiStore => ui/store}/producer/index.ts (100%) diff --git a/default.project.json b/default.project.json index 8823bdf..0d2b792 100644 --- a/default.project.json +++ b/default.project.json @@ -1,5 +1,5 @@ { - "name": "roblox-ts-game", + "name": "goopler", "globIgnorePaths": [ "**/package.json", "**/tsconfig.json" diff --git a/src/ReplicatedStorage/uiComponents/padding.tsx b/src/ReplicatedStorage/ui/components/padding.tsx similarity index 100% rename from src/ReplicatedStorage/uiComponents/padding.tsx rename to src/ReplicatedStorage/ui/components/padding.tsx diff --git a/src/ReplicatedStorage/uiStore/hooks/useUiProducer.ts b/src/ReplicatedStorage/ui/store/hooks/useUiProducer.ts similarity index 100% rename from src/ReplicatedStorage/uiStore/hooks/useUiProducer.ts rename to src/ReplicatedStorage/ui/store/hooks/useUiProducer.ts diff --git a/src/ReplicatedStorage/uiStore/producer/index.ts b/src/ReplicatedStorage/ui/store/producer/index.ts similarity index 100% rename from src/ReplicatedStorage/uiStore/producer/index.ts rename to src/ReplicatedStorage/ui/store/producer/index.ts diff --git a/src/StarterPlayer/StarterPlayerScripts/showGUI.tsx b/src/StarterPlayer/StarterPlayerScripts/showGUI.tsx index c6c0cf0..e07a659 100644 --- a/src/StarterPlayer/StarterPlayerScripts/showGUI.tsx +++ b/src/StarterPlayer/StarterPlayerScripts/showGUI.tsx @@ -4,7 +4,7 @@ import { WorldContext } from "./ui/contexts/worldContext" import Roact from "@rbxts/roact" import Main from "./ui/main" import { ReflexProvider } from "@rbxts/roact-reflex" -import { producer } from "ReplicatedStorage/uiStore/producer" +import { producer } from "ReplicatedStorage/ui/store/producer" const showGUI = (world: World, state: clientState): void => { const playerGui = state.player.WaitForChild("PlayerGui") as PlayerGui diff --git a/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/hotbar.tsx b/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/hotbar.tsx index 2089b2f..e1a2b1b 100644 --- a/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/hotbar.tsx +++ b/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/hotbar.tsx @@ -1,7 +1,7 @@ import Roact from "@rbxts/roact" import Slot from "./slot" import { useWorldContext } from "../contexts/worldContext" -import Padding from "ReplicatedStorage/uiComponents/padding" +import Padding from "ReplicatedStorage/ui/components/padding" import { StarterGui } from "@rbxts/services" interface hotbarProps extends Roact.JsxInstanceProperties { diff --git a/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/slot.tsx b/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/slot.tsx index 9bedcc1..26c7504 100644 --- a/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/slot.tsx +++ b/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/slot.tsx @@ -2,7 +2,7 @@ import Roact from "@rbxts/roact" import { useEffect } from "@rbxts/roact-hooked" import { useWorldContext } from "../contexts/worldContext" import { ContextActionService, HttpService } from "@rbxts/services" -import Padding from "ReplicatedStorage/uiComponents/padding" +import Padding from "ReplicatedStorage/ui/components/padding" interface slotProps extends Roact.JsxInstanceProperties { index: number