gadget:ViewResize issue

gadget:ViewResize issue

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

gadget:ViewResize issue

Post by Beherith »

Calling this function during init works fine, but once its called after game start, like on moveing window or losing focus, it fails massively.


function gadget:ViewResize(viewSizeX, viewSizeY)

Instead of returning two numbers, it returns an empty table and a nil value (in x and y)

Is there a solution to this?

(in trepans fog widget btw)
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: gadget:ViewResize issue

Post by Beherith »

It seems there is a bug in BA's gadgetHandler:Viewresize function, but the CA folks look like they have fixed it.
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: gadget:ViewResize issue

Post by TheFatController »

Will fixify
BaNa
Posts: 1562
Joined: 09 Sep 2007, 21:05

Re: gadget:ViewResize issue

Post by BaNa »

You guys have NO IDEA how cash shit is going to be.


(here's a clue: very)
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: gadget:ViewResize issue

Post by TheFatController »

what
Post Reply

Return to “Lua Scripts”