[0.11.1][kovarex] game.oninit() gui style crash
Posted: Mon Nov 10, 2014 9:34 pm
This control.lua works in 0.10.12, but crashes in 0.11.1.
Styling the gui with console commands still works somehow.
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"