onScreenWidthChange function

Game development with Board Game Arena Studio
Post Reply
User avatar
hersh
Posts: 2
Joined: 12 December 2013, 23:49

onScreenWidthChange function

Post by hersh » 17 October 2019, 22:17

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

thanks

User avatar
Een
Posts: 2301
Joined: 16 June 2010, 19:52

Re: onScreenWidthChange function

Post by Een » 18 October 2019, 09:07

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.

Post Reply

Return to “Developers”