@typetorch/framework 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  local _services = TS.import(script, TS.getModule(script, "@rbxts", "services"))
4
+ local GuiService = _services.GuiService
4
5
  local HttpService = _services.HttpService
5
6
  local Players = _services.Players
6
7
  local ReplicatedStorage = _services.ReplicatedStorage
@@ -2654,8 +2655,17 @@ local function startDevtoolsClient(kernel, dispatcher, trove)
2654
2655
  toggle.TextXAlignment = Enum.TextXAlignment.Center
2655
2656
  toggle.TextColor3 = COLORS.dark
2656
2657
  toggle.BackgroundColor3 = COLORS.accent
2657
- toggle.Size = UDim2.fromOffset(60, 36)
2658
- toggle.Position = UDim2.fromOffset(12, 70)
2658
+ toggle.Size = UDim2.fromOffset(52, 32)
2659
+ -- In Roblox's top bar row, right of its own buttons (GuiService.TopbarInset: the free part of the bar), so it never covers a
2660
+ -- game's top-left HUD (2026-11-07: on a phone the old fixed 12, 70 sat on the game's cash chip). No inset (an old top bar or none):
2661
+ -- the old spot.
2662
+ local placeToggle = function()
2663
+ local inset = GuiService.TopbarInset
2664
+ local height = inset.Max.Y - inset.Min.Y
2665
+ toggle.Position = if inset.Width > 0 and height > 0 then UDim2.fromOffset(math.floor(inset.Min.X + 8), math.floor(inset.Min.Y + (height - 32) / 2)) else UDim2.fromOffset(12, 70)
2666
+ end
2667
+ placeToggle()
2668
+ trove:add(GuiService:GetPropertyChangedSignal("TopbarInset"):Connect(placeToggle))
2659
2669
  -- Above every window (their ZIndex is their stacking order), under the page picker and the copy popup.
2660
2670
  toggle.ZIndex = 800
2661
2671
  corner(toggle, 8)
@@ -3259,7 +3269,7 @@ local function startDevtoolsClient(kernel, dispatcher, trove)
3259
3269
  return playReloadSound()
3260
3270
  end)
3261
3271
  if not ok then
3262
- warn("[src/devtools/client.ts:2270]", `[devtools] reload sound failed: {err}`)
3272
+ warn("[src/devtools/client.ts:2280]", `[devtools] reload sound failed: {err}`)
3263
3273
  end
3264
3274
  end))
3265
3275
  end,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typetorch/framework",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "TypeTorch framework for roblox-ts: hot-swappable modules (dependency injection, lifecycle, troves), guarded networking, hot assets and the in-game dev menu. Ships inside every TypeTorch artifact.",
5
5
  "license": "MIT",
6
6
  "author": "TypeTorch",