PDA

View Full Version : replace/merge possible w/o having same name object?



celestian
June 14th, 2018, 18:57
I've a need to have a windowclass with different options, but not so many I want to write a new one. I'm hoping there is a way to use the merge/replace/delete options within the ruleset I'm working with.

Example "charsheet_actions_powers" needs to view powers differently than "recordslist_actions_powers" would. What I'd like to do is have charsheet_actions_powers be the primary and then have recordslist_actions_powers merge/replace bits from that.

Is that possible? Or do I just have to have two full copies with the differences?

Moon Wizard
June 14th, 2018, 19:42
There’s no way to template window classes.

When I need to do that, I tend to encapsulate a lot of the internals as control templates, so I can reuse among both windows.

Regards,
JPG

celestian
June 14th, 2018, 21:00
There’s no way to template window classes.

When I need to do that, I tend to encapsulate a lot of the internals as control templates, so I can reuse among both windows.

Regards,
JPG

Understood. I suspected as much. I've currently got it split to individual windowclasses. I'll go through and see if there are other items within I can template in each to further reduce the replication.