script update

This commit is contained in:
Bitl 2022-09-23 14:42:41 -07:00
parent 0935cc521f
commit 256c2b8ee0
4 changed files with 77 additions and 12 deletions

View File

@ -1,3 +1,7 @@
1.3 Snapshot v22.8300.22254.1
Fixes:
- Fixed the Asset Fixer not processing some links correctly.
----------------------------------------------------------------------------
1.3 Snapshot v22.8297.27455.1 1.3 Snapshot v22.8297.27455.1
Enhancements: Enhancements:
- Added the ability to install Addon Scripts with the "Install Mod Package" feature. - Added the ability to install Addon Scripts with the "Install Mod Package" feature.

View File

@ -122,6 +122,7 @@ del /s /q Novetus\config\clients\GlobalSettings4_2007M.xml
del /s /q Novetus\config\clients\GlobalSettings4_2007M-Shaders.xml del /s /q Novetus\config\clients\GlobalSettings4_2007M-Shaders.xml
del /s /q Novetus\config\clients\GlobalSettings7_2008M.xml del /s /q Novetus\config\clients\GlobalSettings7_2008M.xml
del /s /q Novetus\config\clients\GlobalSettings_13_2012M.xml del /s /q Novetus\config\clients\GlobalSettings_13_2012M.xml
del /s /q Novetus\config\clients\GlobalSettings_4_2009L.xml
rmdir /s /q Novetus\maps\Custom rmdir /s /q Novetus\maps\Custom
rmdir /s /q Novetus\shareddata\assetcache rmdir /s /q Novetus\shareddata\assetcache

View File

@ -78,6 +78,23 @@ TempSlot.Parent = CurrentLoadout
GearReference.RobloxLocked = true GearReference.RobloxLocked = true
GearReference.Parent = TempSlot GearReference.Parent = TempSlot
local ToolTipLabel = Instance.new("TextLabel")
ToolTipLabel.Name = "ToolTipLabel"
ToolTipLabel.RobloxLocked = true
ToolTipLabel.Text = ""
ToolTipLabel.BackgroundTransparency = 0.5
ToolTipLabel.BorderSizePixel = 0
ToolTipLabel.Visible = false
ToolTipLabel.TextColor3 = Color3.new(1,1,1)
ToolTipLabel.BackgroundColor3 = Color3.new(0,0,0)
ToolTipLabel.TextStrokeTransparency = 0
ToolTipLabel.Font = Enum.Font.ArialBold
ToolTipLabel.FontSize = Enum.FontSize.Size14
--ToolTipLabel.TextWrap = true
ToolTipLabel.Size = UDim2.new(1,60,0,20)
ToolTipLabel.Position = UDim2.new(0,-30,0,-30)
ToolTipLabel.Parent = TempSlot
local Kill = Instance.new("BoolValue") local Kill = Instance.new("BoolValue")
Kill.Name = "Kill" Kill.Name = "Kill"
Kill.RobloxLocked = true Kill.RobloxLocked = true

View File

@ -4122,6 +4122,22 @@ function previewGear(button)
end end
end end
function findEmptySlot()
local smallestNum = nil
local loadout = currentLoadout:GetChildren()
for i = 1, #loadout do
if loadout[i]:IsA("Frame") and #loadout[i]:GetChildren() <= 0 then
local frameNum = tonumber(string.sub(loadout[i].Name,5))
if frameNum == 0 then frameNum = 10 end
if not smallestNum or (smallestNum > frameNum) then
smallestNum = frameNum
end
end
end
if smallestNum == 10 then smallestNum = 0 end
return smallestNum
end
function checkForSwap(button,x,y) function checkForSwap(button,x,y)
local loadoutChildren = currentLoadout:GetChildren() local loadoutChildren = currentLoadout:GetChildren()
for i = 1, #loadoutChildren do for i = 1, #loadoutChildren do
@ -4149,7 +4165,7 @@ function resizeGrid()
if buttonClone.Image == "" then if buttonClone.Image == "" then
buttonClone.GearText.Text = v.Name buttonClone.GearText.Text = v.Name
end end
--print("v =",v)
buttonClone.GearReference.Value = v buttonClone.GearReference.Value = v
buttonClone.Draggable = true buttonClone.Draggable = true
buttons[v] = buttonClone buttons[v] = buttonClone
@ -4165,8 +4181,8 @@ function resizeGrid()
beginPos = value beginPos = value
end) end)
buttonClone.DragStopped:connect(function(x,y) buttonClone.DragStopped:connect(function(x,y)
buttonClone.ZIndex = 1
if beginPos ~= buttonClone.Position then if beginPos ~= buttonClone.Position then
buttonClone.ZIndex = 1
if not checkForSwap(buttonClone,x,y) then if not checkForSwap(buttonClone,x,y) then
buttonClone:TweenPosition(beginPos,Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.5, true) buttonClone:TweenPosition(beginPos,Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.5, true)
buttonClone.Draggable = false buttonClone.Draggable = false
@ -4178,9 +4194,21 @@ function resizeGrid()
end end
end end
end) end)
local clickTime = tick()
mouseEnterCons[buttonClone] = buttonClone.MouseEnter:connect(function() previewGear(buttonClone) end) mouseEnterCons[buttonClone] = buttonClone.MouseEnter:connect(function() previewGear(buttonClone) end)
mouseClickCons[buttonClone] = buttonClone.MouseButton1Click:connect(function() buttonClick(buttonClone) end) mouseClickCons[buttonClone] = buttonClone.MouseButton1Click:connect(function()
local newClickTime = tick()
if buttonClone.Active and (newClickTime - clickTime) < 0.5 then
local slot = findEmptySlot()
if slot then
buttonClone.ZIndex = 1
swapGearSlot(slot,buttonClone)
end
else
buttonClick(buttonClone)
end
clickTime = newClickTime
end)
end end
end end
end end
@ -4273,12 +4301,12 @@ function spreadOutGear(loadoutChildren)
end end
end end
function openCloseBackpack() function openCloseBackpack(close)
if openCloseDebounce then return end if openCloseDebounce then return end
openCloseDebounce = true openCloseDebounce = true
local visible = not backpack.Visible local visible = not backpack.Visible
if visible then if visible and not close then
updateGridActive() updateGridActive()
local centerDialogSupported, msg = pcall(function() game.GuiService:AddCenterDialog(backpack, Enum.CenterDialogType.PlayerInitiatedDialog, local centerDialogSupported, msg = pcall(function() game.GuiService:AddCenterDialog(backpack, Enum.CenterDialogType.PlayerInitiatedDialog,
function() function()
@ -4290,6 +4318,9 @@ function openCloseBackpack()
end end
end end
spreadOutGear(loadoutChildren) spreadOutGear(loadoutChildren)
end,
function()
backpack.Visible = false
end) end)
end) end)
backpackButton.Selected = true backpackButton.Selected = true
@ -4338,7 +4369,7 @@ function loadoutCheck(child, selectState)
if not child:IsA("ImageButton") then return end if not child:IsA("ImageButton") then return end
for k,v in pairs(backpackItems) do for k,v in pairs(backpackItems) do
if buttons[v] then if buttons[v] then
if child:FindFirstChild("GearReference") then if child:FindFirstChild("GearReference") and buttons[v]:FindFirstChild("GearReference") then
if buttons[v].GearReference.Value == child.GearReference.Value then if buttons[v].GearReference.Value == child.GearReference.Value then
buttons[v].Active = selectState buttons[v].Active = selectState
break break
@ -4418,6 +4449,13 @@ end
function activateBackpack() function activateBackpack()
backpack.Visible = backpackOldStateVisible backpack.Visible = backpackOldStateVisible
loadoutChildren = currentLoadout:GetChildren()
for i = 1, #loadoutChildren do
if loadoutChildren[i]:IsA("Frame") then
loadoutChildren[i].BackgroundTransparency = 1
end
end
backpackButtonClickCon = backpackButton.MouseButton1Click:connect(function() openCloseBackpack() end) backpackButtonClickCon = backpackButton.MouseButton1Click:connect(function() openCloseBackpack() end)
guiServiceKeyPressCon = game:GetService("GuiService").KeyPressed:connect(function(key) guiServiceKeyPressCon = game:GetService("GuiService").KeyPressed:connect(function(key)
if key == tilde or key == backquote then if key == tilde or key == backquote then
@ -4431,6 +4469,7 @@ function deactivateBackpack()
backpackOldStateVisible = backpack.Visible backpackOldStateVisible = backpack.Visible
backpack.Visible = false backpack.Visible = false
openCloseBackpack(true)
end end
function setupCharacterConnections() function setupCharacterConnections()
@ -4465,6 +4504,9 @@ function setupCharacterConnections()
humanoidDiedCon = game.Players.LocalPlayer.Character.Humanoid.Died:connect(function() deactivateBackpack() end) humanoidDiedCon = game.Players.LocalPlayer.Character.Humanoid.Died:connect(function() deactivateBackpack() end)
activateBackpack() activateBackpack()
wait()
centerGear(currentLoadout:GetChildren())
end end
function removeCharacterConnections() function removeCharacterConnections()
@ -4552,7 +4594,7 @@ function getGearContextMenu()
gearContextMenuButton.Name = "UnequipContextMenuButton" gearContextMenuButton.Name = "UnequipContextMenuButton"
gearContextMenuButton.Text = "" gearContextMenuButton.Text = ""
gearContextMenuButton.Style = Enum.ButtonStyle.RobloxButtonDefault gearContextMenuButton.Style = Enum.ButtonStyle.RobloxButtonDefault
gearContextMenuButton.ZIndex = 4 gearContextMenuButton.ZIndex = 8
gearContextMenuButton.Size = UDim2.new(1, 0, 1, -20) gearContextMenuButton.Size = UDim2.new(1, 0, 1, -20)
gearContextMenuButton.Visible = true gearContextMenuButton.Visible = true
gearContextMenuButton.Parent = gearContextMenu gearContextMenuButton.Parent = gearContextMenu
@ -4585,7 +4627,7 @@ function getGearContextMenu()
button.Size = UDim2.new(1, 8, 0, elementHeight) button.Size = UDim2.new(1, 8, 0, elementHeight)
button.Position = UDim2.new(0,0,0,elementHeight * i) button.Position = UDim2.new(0,0,0,elementHeight * i)
button.TextColor3 = Color3.new(1,1,1) button.TextColor3 = Color3.new(1,1,1)
button.ZIndex = 4 button.ZIndex = 9
button.Parent = gearContextMenuButton button.Parent = gearContextMenuButton
button.MouseButton1Click:connect(function() button.MouseButton1Click:connect(function()
@ -4628,7 +4670,7 @@ function getGearContextMenu()
label.Position = UDim2.new(0.0, 0, 0, 0) label.Position = UDim2.new(0.0, 0, 0, 0)
label.Size = UDim2.new(0.5, 0, 1, 0) label.Size = UDim2.new(0.5, 0, 1, 0)
label.TextColor3 = Color3.new(1,1,1) label.TextColor3 = Color3.new(1,1,1)
label.ZIndex = 4 label.ZIndex = 9
label.Parent = frame label.Parent = frame
element.Label1 = label element.Label1 = label
@ -4644,7 +4686,7 @@ function getGearContextMenu()
label.Position = UDim2.new(0.5, 0, 0, 0) label.Position = UDim2.new(0.5, 0, 0, 0)
label.Size = UDim2.new(0.5, 0, 1, 0) label.Size = UDim2.new(0.5, 0, 1, 0)
label.TextColor3 = Color3.new(1,1,1) label.TextColor3 = Color3.new(1,1,1)
label.ZIndex = 4 label.ZIndex = 9
label.Parent = frame label.Parent = frame
element.Label2 = label element.Label2 = label
end end
@ -4738,6 +4780,7 @@ for i = 1, #loadoutChildren do
end end
end end
pcall(function() closeButton.Modal = true end)
closeButton.MouseButton1Click:connect(function() openCloseBackpack() end) closeButton.MouseButton1Click:connect(function() openCloseBackpack() end)
searchButton.MouseButton1Click:connect(function() showSearchGear() end) searchButton.MouseButton1Click:connect(function() showSearchGear() end)