mirror of
https://github.com/asherao/dcs-scratchpad.git
synced 2025-10-29 16:56:22 +00:00
hide insert coords button for non-server clients
This commit is contained in:
@@ -343,6 +343,13 @@ function scratchpad_load()
|
|||||||
panel:setVisible(true)
|
panel:setVisible(true)
|
||||||
window:setHasCursor(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
|
isHidden = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user