Scale Edit Box Help
Posted: Fri Nov 14, 2014 2:17 am
I'm trying to make an edit box scale to the width of the module it's in. To do so I simply took the modules width from the MGUI and brought it into the Ruby code block in the edit box (as "mWidth"). You can see how I've made simple changes in the Ruby code to adjust with that variable in two places. One is in drawing the background to the edit box ("def draw"), and one is in scaling the edit/text area ("def viewSize"). The former works fine, but the latter doesn't update as the top-most module is resized. If you resize, then open the Ruby code block and type something in there (like a space), it will update correctly. So what I need to know is how to make this update as the module is resized. Of course, I don't know Ruby very well.
Any help is appreciated!
Any help is appreciated!