Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement to allow Owner to adjust Offsets for others #11

Open
HowardBaxton opened this issue Apr 23, 2017 · 1 comment
Open

Enhancement to allow Owner to adjust Offsets for others #11

HowardBaxton opened this issue Apr 23, 2017 · 1 comment

Comments

@HowardBaxton
Copy link
Contributor

Amr has suggested this enhancement stating that some users are getting confused and seem to have a lot of trouble adjusting their offsets when he (as the owner) could adjust offsets for them with far less issue. He suggests this enhancement would be an owner only function but still allow individuals to adjust their own.

This would require something like the following:
Add a function to return all sitters to a menu for selection
After Owner selects the sitter to apply offsets, pull the Offsets menu
Upon any changes in the Offsets, apply these changes to the sitter and save using sitter uuid into offsets

I can see that this is possible to do but have no idea what impact this could have on used memory. It makes sense that if this feature were available, others would use it as well.

@LeonaMorro
Copy link
Member

I guess this could be done.

  1. Add a function to return all sitters to a menu for selection
    We may use the npose_pickseat plugin for this by registering it inside our plugin
  2. After Owner selects the sitter to apply offsets, pull the Offsets menu
    The current npose_offset code it tied to the menu user so:
    a) we have to change it or we have to write new code for it.
  3. Upon any changes in the Offsets, apply these changes to the sitter and save using sitter uuid into offsets
    We can simply use the linkMessage (num == ADJUSTOFFSET || num == SETOFFSET) for doing this

Suggestion:
Make a own plugin for this.
Don't limit its functionality to the owner, because this could be done by Button permissions.
Try to use the npose_pickseat plugin from within this plugin. You can provide an integer to npose_pickseat as action parameter. If you are doing so, a linkmessage will be generated when a button is pressed. This message contains the seatnumber, the key of the avatar sitting in the seat and the user who pressed the button.
for the offset menu itself I'm incertain .. we could change the npose_offset (inside the slave script) so we would be able to reuse it, or we could make our own ... perhaps we could try to make our own first, because if we do so, we should be able to do all this without changing any line in the nPose scripts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants