16
Coding / Re: lua design thoughts
« on: December 07, 2014, 05:54:51 pm »
I've added the possibility to set a cvar value to an option list.
New board
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Another thing.
Window 'mail' is inherited from ipopup.
It hasCode: [Select]mail:set_closebutton(true)
But I don't see any close button somehow.
And another thing is that this window takes up all place.
P.S. Can you check if on_viewchange is working properly?
In 'mail' window, for example, it has to update scrollbar fullsize and viewsize property and if fullsize is greater than viewsize, scrollbar should appear (autoshowscroll(true)). I don't see scrollbar regardless of the size of the mail text.
Hmm, seems like nodes created in confuncs are treated as statically created and cannot be removed via remove_childs (which removes only dynamically nodes).
local mail = ufo.create_control(mails, "mailheader", "mail" .. index, nil, ufo.DYNAMIC_CONTROL)
Hmm, seems like nodes created in confuncs are treated as statically created and cannot be removed via remove_childs (which removes only dynamically nodes).
Another feature request: implement starlayout and preventtypingescape for uiWindow.
P.S. btw, just as a matter of fact, 'childs' may be not a proper word, because plural word for 'child' is 'children'
Yet another thing - how to apply string value to cvar?
https://github.com/drone-pl/ufoai/blob/df015731694cb77c069f19724c3046e75f2d67b6/base/ufos/ui/mailclient.ufo
add_mail = ufo.create_confunc(mailclient, "add_mail", nil)
local add_mail = ufo.create_confunc(mailclient, "add_mail", nil)
local foo = ufo.create_window("foo", "ipopup")
I'm going to help with converting ufo files to new format.