Page 1 of 1

.type property on gui elements

Posted: Sat Aug 27, 2016 10:54 pm
by aubergine18
Currently, without maintaining a separate lookup table, there's no way to determine what type a gui element is. This is particularly troublesome if the elements are added by another mod (eg. I'm working on a patch to EvoGUI to allow external mods to have a bit more control over things like settings and sensor displays; there are some situations where I will need to determine what type an element is in order to determine it's "value" - eg. text for a textbox, or state for a checkbox, etc). I'm trying to avoid having a big nested if-elseif statement trying to deduce type by checking multiple properties across a large number of elements.

Re: .type property on gui elements

Posted: Sun Aug 28, 2016 2:10 am
by Rseding91
Done.