Posted 20 November 2014 - 07:07 PM
VERSION
ComputerCraft version: 1.65
Minecraft Forge version: 10.13.2.1230
Minecraft version: 1.7.10
DESCRIPTION
Sometimes created GUIs on advanced monitors does not work - you cannot click them through advanced monitor. This only happens in minecraft multiplayer server, single player does not have this problem.
DESCRIPTION
Create a file inside a computer and paste the following code in it.
Save the file. Attach advanced monitor to the back of the computer. Launch the file. Now try to draw a straight line across the whole monitor. There is no erase operation in the code so if you want to begin from clean monitor just restart the program. With single player you will be able to draw straight line with no problems, on multiplayer server however, your line will contain gaps you won't be able to fill. This shows that values returned by "os.pullEvent('monitor_touch')" are sometimes incorrect thus resulting in serious issues if you try do develop a GUI system with small buttons in it.
SCREENSHOT/VIDEO
ComputerCraft version: 1.65
Minecraft Forge version: 10.13.2.1230
Minecraft version: 1.7.10
DESCRIPTION
Sometimes created GUIs on advanced monitors does not work - you cannot click them through advanced monitor. This only happens in minecraft multiplayer server, single player does not have this problem.
DESCRIPTION
Create a file inside a computer and paste the following code in it.
Mon = peripheral.wrap('back')
function Main()
Mon.setBackgroundColor(colors.black)
Mon.setTextScale(0.5)
Mon.clear()
Mon.setBackgroundColor(colors.red)
while true do
_, _, posX, posY = os.pullEvent('monitor_touch')
Mon.setCursorPos(posX, posY)
Mon.write(' ')
end
end
Main()
Save the file. Attach advanced monitor to the back of the computer. Launch the file. Now try to draw a straight line across the whole monitor. There is no erase operation in the code so if you want to begin from clean monitor just restart the program. With single player you will be able to draw straight line with no problems, on multiplayer server however, your line will contain gaps you won't be able to fill. This shows that values returned by "os.pullEvent('monitor_touch')" are sometimes incorrect thus resulting in serious issues if you try do develop a GUI system with small buttons in it.
SCREENSHOT/VIDEO