I've been receiving multiple reports of buttons not showing up correctly in my mod from players. You can view the comments here:
[url]http://steamcommunity.com/sharedfiles/filedetails/?id=779900330[/url]
According to them, the problem is only visible by some clients, while the host never sees the issue. It's frequent enough that it happens at least once for multiple players every game, and it happens regardless of who is hosting.
I feel it's at least partially related to changing most of the buttons to spawn on scripting zones instead of objects, using the following code:
Code:
--creates a button at the given position, dimensions, scale, and rotation
function createArbitraryButton(params)
local objectParams = {}
objectParams.type = "ScriptingTrigger"
objectParams.position = params.position
objectParams.scale = params.scale
local zoneObj = spawnObject(objectParams)
buttonParams = {}
buttonParams.position = {0, 0, 0}
buttonParams.rotation = params.rotation
buttonParams.width = params.width
buttonParams.height = params.height
buttonParams.index = 1
buttonParams.label = params.label
buttonParams.font_size = params.font_size
buttonParams.click_function = params.click_function
zoneObj.createButton(buttonParams)
end
However, there was a mention of it happening when the button is created on an object as well. Just a note, the above code is needed to avoid stretching caused by scaled objects: [url]http://www.berserk-games.com/forums/showthread.php?3055-BUG-buttons-created-around-a-scaled-object-are-also-scaled[/url]
I could undo the code, but the buttons will go back to being warped and stretched, and as I mentioned, it seems to happen even then.