mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 13:17:49 +00:00
ye
This commit is contained in:
@@ -28,7 +28,7 @@ local WaitingToSave = false
|
||||
|
||||
local PlaceId = Game.PlaceId
|
||||
local Url = ContentProviderService.BaseUrl
|
||||
local UrlBase = Url:match('^http://www\.(.-)/?$') -- Turns "http://www.gametest1.pizzaboxer.fun/" into "gametest1.pizzaboxer.fun"
|
||||
local UrlBase = Url:match('^http://www\.(.-)/?$') -- Turns "http://www.gametest1.watrbx.local/" into "gametest1.watrbx.local"
|
||||
local ApiProxyUrl = 'https://api.' .. UrlBase
|
||||
|
||||
-----------------
|
||||
|
||||
@@ -28,7 +28,7 @@ local WaitingToSave = false
|
||||
|
||||
local PlaceId = Game.PlaceId
|
||||
local Url = ContentProviderService.BaseUrl
|
||||
local UrlBase = Url:match('^http://www\.(.-)/?$') -- Turns "http://www.gametest1.pizzaboxer.fun/" into "gametest1.pizzaboxer.fun"
|
||||
local UrlBase = Url:match('^http://www\.(.-)/?$') -- Turns "http://www.gametest1.watrbx.local/" into "gametest1.watrbx.local"
|
||||
local ApiProxyUrl = 'https://api.' .. UrlBase
|
||||
|
||||
-----------------
|
||||
|
||||
@@ -28,7 +28,7 @@ local WaitingToSave = false
|
||||
|
||||
local PlaceId = game.PlaceId
|
||||
local Url = ContentProviderService.BaseUrl
|
||||
local UrlBase = Url:match('^http://www\.(.-)/?$') -- Turns "http://www.gametest1.pizzaboxer.fun/" into "gametest1.pizzaboxer.fun"
|
||||
local UrlBase = Url:match('^http://www\.(.-)/?$') -- Turns "http://www.gametest1.watrbx.local/" into "gametest1.watrbx.local"
|
||||
local ApiProxyUrl = 'https://api.' .. UrlBase
|
||||
local DataFarmProtocol = 'http'
|
||||
local DataFarmUsesHttpsFlagExists, DataFarmUsesHttpsFlagValue = pcall(function () return settings():GetFFlag("DataFarmUsesHttps") end)
|
||||
|
||||
@@ -28,7 +28,7 @@ local WaitingToSave = false
|
||||
|
||||
local PlaceId = Game.PlaceId
|
||||
local Url = ContentProviderService.BaseUrl
|
||||
local UrlBase = Url:match('^http://www\.(.-)/?$') -- Turns "http://www.gametest1.pizzaboxer.fun/" into "gametest1.pizzaboxer.fun"
|
||||
local UrlBase = Url:match('^http://www\.(.-)/?$') -- Turns "http://www.gametest1.watrbx.local/" into "gametest1.watrbx.local"
|
||||
local ApiProxyUrl = 'https://api.' .. UrlBase
|
||||
|
||||
-----------------
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local Settings = UserSettings()
|
||||
local GameSettings = Settings.GameSettings
|
||||
local YearSettingEnum = GameSettings.YearSetting
|
||||
local YearSettingEnum = GameSettings.YearSetting.Value
|
||||
local scriptContext = game:GetService("ScriptContext")
|
||||
local RobloxGui = game:GetService("CoreGui"):WaitForChild("RobloxGui")
|
||||
local RobloxGuiBackup = game:GetService("CoreGui"):WaitForChild("RobloxGuiBackup")
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local Settings = UserSettings()
|
||||
local GameSettings = Settings.GameSettings
|
||||
local YearSettingEnum = GameSettings.YearSetting
|
||||
local YearSettingEnum = GameSettings.YearSetting.Value
|
||||
local scriptContext = game:GetService("ScriptContext")
|
||||
local RobloxGui = game:GetService("CoreGui"):WaitForChild("RobloxGui")
|
||||
local Backup = RobloxGui:Clone()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local Settings = UserSettings()
|
||||
local GameSettings = Settings.GameSettings
|
||||
local YearSettingEnum = GameSettings.YearSetting
|
||||
local YearSettingEnum = GameSettings.YearSetting.Value
|
||||
local scriptContext = game:GetService("ScriptContext")
|
||||
local RobloxGui = game:GetService("CoreGui"):WaitForChild("RobloxGui")
|
||||
local RobloxGuiBackup = game:GetService("CoreGui"):WaitForChild("RobloxGuiBackup")
|
||||
|
||||
@@ -582,7 +582,7 @@ end
|
||||
// Returns true if the user owns the asset, otherwise, returns false
|
||||
]]
|
||||
function Http.GetUserOwnsAssetAsync(userId, assetId)
|
||||
-- local BaseUrl = 'http://api.sitetest2.pizzaboxer.fun/'
|
||||
-- local BaseUrl = 'http://api.sitetest2.watrbx.local/'
|
||||
return rbxApiGetAsync(BaseUrl..'ownership/hasasset?userId='..tostring(userId)..'&assetId='..tostring(assetId), false)
|
||||
end
|
||||
|
||||
@@ -627,7 +627,7 @@ end
|
||||
function Http.GetUserOwnedPackagesAsync(userId, currentPage)
|
||||
currentPage = currentPage or 1
|
||||
local packageAssetIdType = 32
|
||||
-- return rbxGetAsync('http://www.sitetest2.pizzaboxer.fun/' ..'users/inventory/list-json?userId='..tostring(userId)..
|
||||
-- return rbxGetAsync('http://www.sitetest2.watrbx.local/' ..'users/inventory/list-json?userId='..tostring(userId)..
|
||||
-- '&assetTypeId='..tostring(packageAssetIdType)..'&pageNumber='..tostring(currentPage))
|
||||
return rbxGetAsync(BaseUrl..'users/inventory/list-json?userId='..tostring(userId)..
|
||||
'&assetTypeId='..tostring(packageAssetIdType)..'&pageNumber='..tostring(currentPage))
|
||||
@@ -651,7 +651,7 @@ function Http.PostWearUserOutfitAsync(id)
|
||||
end
|
||||
|
||||
function Http.PostWearAssetAsync(assetId)
|
||||
--local BaseUrl = 'http://api.gametest5.pizzaboxer.fun/'
|
||||
--local BaseUrl = 'http://api.gametest5.watrbx.local/'
|
||||
return rbxApiPostAsync('appearance/set-clothing?assetIds='..tostring(assetId), '', false)
|
||||
end
|
||||
|
||||
|
||||
@@ -1,26 +1,12 @@
|
||||
local Settings = UserSettings()
|
||||
local GameSettings = Settings.GameSettings
|
||||
local YearSettingEnum = GameSettings.YearSetting
|
||||
local YearSettingEnum = GameSettings.YearSetting.Value
|
||||
local scriptContext = game:GetService("ScriptContext")
|
||||
local RobloxGui = game:GetService("CoreGui"):WaitForChild("RobloxGui")
|
||||
local Backup = RobloxGui:Clone()
|
||||
Backup.Name = "RobloxGuiBackup"
|
||||
Backup.Parent = game:GetService("CoreGui")
|
||||
|
||||
--local success, YearSettingEnum = pcall(function()
|
||||
-- print(game.isXboxClient)
|
||||
-- return GameSettings.YearSetting
|
||||
--end)
|
||||
--if not UserSettings().GameSettings:InStudioMode() then
|
||||
-- game:GetService("RunService"):Run()
|
||||
-- game:Load("rbxasset://ScaledWorldv4.7.rbxl")
|
||||
--end
|
||||
--scriptContext:AddCoreScriptLocal("CoreScripts/xbox/ui/XStarterScript", RobloxGui)
|
||||
|
||||
if not success or type(YearSettingEnum) ~= "number" or YearSettingEnum < 0 or YearSettingEnum > 3 then
|
||||
YearSettingEnum = 0
|
||||
end
|
||||
|
||||
local switch = {
|
||||
[0] = function()
|
||||
scriptContext:AddCoreScriptLocal("CoreScripts/2016/StarterScript", RobloxGui)
|
||||
|
||||
Reference in New Issue
Block a user