hide insert coords button for non-server clients

This commit is contained in:
Markus Ast
2019-08-19 19:48:00 +02:00
parent 9018f04209
commit 4a12311556

View File

@@ -343,6 +343,13 @@ function scratchpad_load()
panel:setVisible(true)
window:setHasCursor(true)
-- insert coords only works if the client is the server, so hide the button otherwise
if DCS.isServer() then
insertCoordsBtn:setVisible(true)
else
insertCoordsBtn:setVisible(false)
end
isHidden = false
end