PDA

View Full Version : Moving Labels, NumberControls via script



MadBeardMan
May 10th, 2020, 14:26
Afternoon All,

Within the Traveller Ruleset the Companion book introduces a number of new Characteristics along with racial Characteristics for some of the races. So as a test I wanted to allow the current PSI attribute be turned 'off' if the GM didn't want it.

What I'm wanting to do, is via the Options allow the GM to set which Characteristics are available to player.

This is simple, check the Setting via getOptions (which works nicely in the character sheet) but what I can't do is via script, set the X, Y positions of the various Number Controls and labels.

I've searched through CoreRPG and can see a .setPosition but that doesn't appear to work with NumberControls.

I just had a play moving a label and that doesn't have a .setPosition either.

Anyone got any ideas?

Cheers,
MBM

damned
May 10th, 2020, 14:35
Use relative anchoring?

MadBeardMan
May 10th, 2020, 14:40
Use relative anchoring?

Hey Chap,

Long time. Hope you are yours are staying safe at the moment.

That won't work, for example, this image.

35142

If I turn off the PSI, I want the Int/Edu/Soc to line up with Str/Dex/End.

If PSI is on, then it stays as it is.

Cheers,
MBM