fix placement text position
This commit is contained in:
1 parent
99389dcd2d
commit
19a17e33bb
1 file changed
+10
-4
@@ -19,8 +19,16 @@ local function finishPlacing()
|
|||||||
activePlacementProp = nil
|
activePlacementProp = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--[[
|
||||||
|
|
||||||
|
RegisterCommand('testplacement', function()
|
||||||
|
Placeable.PlaceObject("prop_cs_cardbox_01", 10, true, nil, 0.0)
|
||||||
|
end, false)
|
||||||
|
|
||||||
|
--]]
|
||||||
|
|
||||||
Placeable.PlaceObject = function(object, distance, snapToGround, allowedMats, offset)
|
Placeable.PlaceObject = function(object, distance, snapToGround, allowedMats, offset)
|
||||||
distance = tonumber(distance or 10.0 )
|
distance = tonumber(distance or 10.0 )
|
||||||
if activePlacementProp then return end
|
if activePlacementProp then return end
|
||||||
|
|
||||||
if not object then Prints.Error('no_prop_defined') end
|
if not object then Prints.Error('no_prop_defined') end
|
||||||
@@ -38,9 +46,7 @@ Placeable.PlaceObject = function(object, distance, snapToGround, allowedMats, of
|
|||||||
SetEntityInvincible(activePlacementProp, true)
|
SetEntityInvincible(activePlacementProp, true)
|
||||||
FreezeEntityPosition(activePlacementProp, true)
|
FreezeEntityPosition(activePlacementProp, true)
|
||||||
|
|
||||||
Bridge.Notify.ShowHelpText(type(placementText) == 'table' and table.concat(placementText) or placementText, {
|
Bridge.Notify.ShowHelpText(type(placementText) == 'table' and table.concat(placementText))
|
||||||
position = "left-center",
|
|
||||||
})
|
|
||||||
|
|
||||||
local outLine = false
|
local outLine = false
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user