Code: Select all
require "defines"
game.oninit(function()
game.player.gui["top"].add{type="frame", name="myframe", caption="test"}
--Both these commands crash the game
game.player.gui["top"].myframe.style.leftpadding = 20
game.player.gui["top"].myframe.style.font = "default-bold"
end)

Code: Select all
/c game.player.gui["top"].myframe.style.leftpadding = 20
/c game.player.gui["top"].myframe.style.font = "default-bold"