11import { Players , ReplicatedStorage } from "@rbxts/services" ;
2+ import { AREAS } from "shared/constants" ;
23
34export const LOCAL_PLAYER = Players . LocalPlayer ;
45export const MOUSE = LOCAL_PLAYER . GetMouse ( ) ;
56export const PLAYER_GUI = LOCAL_PLAYER . WaitForChild ( "PlayerGui" ) as StarterGui ;
67
78export const INTERFACE = PLAYER_GUI . WaitForChild ( "Interface" ) as ScreenGui ;
89
9- export const SERVER_INFO_LABEL = INTERFACE . WaitForChild ( "ServerInfoLabel" ) as TextLabel ;
10-
1110export const SIDEBAR_BUTTONS = INTERFACE . WaitForChild ( "SidebarButtons" ) as Frame ;
1211
1312export const ADAPTIVE_TAB = INTERFACE . WaitForChild ( "AdaptiveTab" ) as Frame & {
@@ -22,27 +21,71 @@ export const ADAPTIVE_TAB_MAIN_WINDOW = ADAPTIVE_TAB.WaitForChild("MainWindow")
2221
2322} ;
2423
24+ export const TRACKED_QUEST_WINDOW = INTERFACE . WaitForChild ( "TrackedQuestWindow" ) as Frame & {
25+ Background : Folder & {
26+ Frame : Frame ,
27+ ProgressBar : CanvasGroup & {
28+ UIStroke : UIStroke ,
29+ Fill : Frame ,
30+ BarLabel : TextLabel
31+ }
32+ } ,
33+ Completion : Frame & {
34+ ImageLabel : ImageLabel ,
35+ TextLabel : TextLabel & {
36+ UIStroke : UIStroke
37+ } ,
38+ RewardLabel : TextLabel & {
39+ UIStroke : UIStroke
40+ }
41+ } ,
42+ Reset : Frame & {
43+ ImageLabel : ImageLabel ,
44+ TextLabel : TextLabel & {
45+ UIStroke : UIStroke
46+ } ,
47+ AmountLabel : TextLabel & {
48+ UIStroke : UIStroke
49+ }
50+ } ,
51+ DescriptionLabel : TextLabel ,
52+ TitleLabel : TextLabel
53+ }
54+
55+ export const DETAILS_WINDOW = INTERFACE . WaitForChild ( "DetailsWindow" ) as Frame & {
56+ PositionLabel : TextLabel ,
57+ FundsBombLabel : TextLabel
58+ }
59+
60+ export const SAVING_DATA_LABEL = INTERFACE . WaitForChild ( "SavingDataLabel" ) as TextLabel ;
61+
2562type ItemListContainer = Frame & {
2663 ItemList : ScrollingFrame ;
2764}
2865
2966export const INVENTORY_WINDOW = ADAPTIVE_TAB_MAIN_WINDOW . WaitForChild ( "Inventory" ) as ItemListContainer & {
3067 Empty : Frame
3168} ;
32- export const SHOP_WINDOW = ADAPTIVE_TAB_MAIN_WINDOW . WaitForChild ( "Shop " ) as ItemListContainer & {
69+ export const SHOP_WINDOW = INTERFACE . WaitForChild ( "ShopWindow " ) as Frame & {
3370 PurchaseWindow : Frame & {
3471 ViewportFrame : ViewportFrame ,
3572 Title : Frame & {
3673 DifficultyLabel : ImageLabel ,
3774 ItemNameLabel : TextLabel
3875 } ,
39- ItemInfo : Frame & {
40- DescriptionFrame : ScrollingFrame & {
41- DescriptionLabel : TextLabel ,
42- }
43- Purchase : TextButton & {
44- PriceLabel : TextLabel
45- }
76+ DescriptionFrame : ScrollingFrame & {
77+ DescriptionLabel : TextLabel ,
78+ CreatorLabel : TextLabel ,
79+ PlaceableAreasLabel : TextLabel ,
80+ } ,
81+ Purchase : TextButton & {
82+ PriceLabel : TextLabel
83+ } ,
84+ CloseButton : TextButton
85+ } ,
86+ ItemListWrapper : Frame & {
87+ ItemList : ItemListContainer & {
88+ BuyAll : TextButton ,
4689 }
4790 }
4891} ;
@@ -107,7 +150,7 @@ export const MUTE_BUTTON_WINDOW = INTERFACE.WaitForChild("MuteButtonWindow") as
107150 }
108151}
109152
110- export type StatContainer = {
153+ export type StatContainer = Frame & {
111154 StatLabel : TextLabel ;
112155 AmountLabel : TextLabel ;
113156}
@@ -117,10 +160,18 @@ export const STATS_WINDOW = ADAPTIVE_TAB_MAIN_WINDOW.WaitForChild("Stats") as Fr
117160 Playtime : StatContainer ;
118161 SessionTime : StatContainer ;
119162 LongestSessionTime : StatContainer ;
163+ RawPurifierClicks : StatContainer ;
120164 }
121165} ;
122166
123- export const LOADED_ITEM_MODELS = ReplicatedStorage . WaitForChild ( "LoadedItemModels" ) as Folder ;
167+ const itemModels = new Map < string , Model > ( ) ;
168+ const loaded = ReplicatedStorage . WaitForChild ( "LoadedItemModels" ) . GetChildren ( ) ;
169+ for ( const value of loaded ) {
170+ if ( value . IsA ( "ObjectValue" ) ) {
171+ itemModels . set ( value . Name , value . Value as Model ) ;
172+ }
173+ }
174+ export const ITEM_MODELS = itemModels ;
124175
125176export const COMMANDS_WINDOW = ADAPTIVE_TAB_MAIN_WINDOW . WaitForChild ( "Commands" ) as Frame & {
126177 CommandsList : ScrollingFrame & {
@@ -129,7 +180,58 @@ export const COMMANDS_WINDOW = ADAPTIVE_TAB_MAIN_WINDOW.WaitForChild("Commands")
129180} ;
130181
131182export const SHARE_WINDOW = ADAPTIVE_TAB_MAIN_WINDOW . WaitForChild ( "Share" ) as Frame & {
132- JoinLink : Frame & {
183+ Code : Frame & {
133184 Input : TextBox
134185 }
135- } ;
186+ } ;
187+
188+ export const SETTINGS_WINDOW = ADAPTIVE_TAB_MAIN_WINDOW . WaitForChild ( "Settings" ) as Frame & {
189+ InteractionOptions : Frame & {
190+
191+ }
192+ } ;
193+
194+ export const LOGS_WINDOW = ADAPTIVE_TAB_MAIN_WINDOW . WaitForChild ( "Logs" ) as Frame & {
195+ LogList : Frame & {
196+
197+ }
198+ } ;
199+
200+ export const QUESTS_WINDOW = ADAPTIVE_TAB_MAIN_WINDOW . WaitForChild ( "Quests" ) as Frame & {
201+ Level : Frame & {
202+ Current : TextButton & {
203+ NotificationLabel : ImageLabel ,
204+ LevelLabel : TextLabel
205+ } ,
206+ ProgressBar : Frame & {
207+ Fill : Frame ,
208+ BarLabel : TextLabel
209+ }
210+ } ,
211+ QuestList : Frame & {
212+
213+ }
214+ } ;
215+
216+ export type LPUpgradeOption = Frame & {
217+ Button : ImageButton & {
218+ ValueLabel : TextLabel
219+ } ,
220+ DescriptionLabel : TextLabel
221+ }
222+
223+ export const LEVELS_WINDOW = ADAPTIVE_TAB_MAIN_WINDOW . WaitForChild ( "Levels" ) as Frame & {
224+ LevelPointOptions : Frame & {
225+ Respec : TextButton ,
226+ LevelPointsLabel : TextLabel
227+ } ,
228+ UpgradeOptions : Frame & {
229+ Stone : LPUpgradeOption ,
230+ WhiteGem : LPUpgradeOption ,
231+ Crystal : LPUpgradeOption
232+ }
233+ } ;
234+
235+ export const WARP_WINDOW = ADAPTIVE_TAB_MAIN_WINDOW . WaitForChild ( "Warp" ) as Frame & {
236+ [ area in keyof ( typeof AREAS ) ] : ImageButton
237+ } ;
0 commit comments