Game development with Board Game Arena Studio
- Posts: 2
- Joined: 12 December 2013, 23:49
I noticed an empty function called onScreenWidthChange() in gameui. Can we use it or is reserved for other reasons? I can't find any documentation regarding it.
It appears better to use than onresize since it triggers when the playing area size changes even though the window has not. For example switching between log_mode = normal to 2cols
- Posts: 2301
- Joined: 16 June 2010, 19:52
Well, then it's something missing in the documentation
You can use it, it's meant to be the way to react to a resizing of the game area.