Ability to make Abstract Widget "classes" or user defined Widget Types?
For relative positioning, the parentWidget and parentLinked are god sends.
I'm modding the Conjurer party pet status bars that normally appear below the character status along the left hand side of the screen.
Since all of the partyMember*.mnu files contain reused data, I was trying to figure out how to build an abstract widget type that would lend repeated values to descendant widgets.
Example pseudo code of what I want to do:
No there's not. I keep wishing I had some way to inherit or include but I've never implemented anything for it.
I did a bit more experimentation yesterday with the UI and was able to package up "widget families" a bit better. I made what I called a PartyMembers::Container which positioned all of my lackies in an absolute location on the screen. From there I contained each PartyMemberN widget family in a PartyMemberN::Container, and from there, even though I had to Copy+Paste each widget instance, it was much easier and almost classlike to just copy paste things.
The only changes I needed to make were to the entities that each referred to.
The fact that you allow me at least a ParentWidget type of relationship is good enough in my view... although if you ever get the inheritance thing working, I'll be the first to try it out.
By the way, I did notice something that others making UI changes might wish to know, so I'll just jot it here for archiving purposes.
Version I'm working with: 1.010
When I built said PartyMembers + PartyMemberN position relationships for my UI, I noticed that if I create the following sort of parent relationship in a single file, like so:
Relationships work fine at load time.
I had a problem with the reloadMenus console command giving me errors when using parentWidget and the associated parentLinked (snipped out of the code above) for positioning.
If reloadMenus doesn't seem to work and is returning errors, before giving up on the UI modifications, try quitting/restarting din's curse.
|All times are GMT -4. The time now is 11:40 AM.|
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2007 - 2019 Soldak Entertainment, Inc.