Log in

View Full Version : Character sheet - lock



Xarxus
August 13th, 2025, 09:32
Hey guys, I need to add a button to lock the character sheet window. I saw that D&D5 has one, but I got lost in the CoreRPG code. Also, I’d like the button to be visible only to the GM. Can anyone point me in the right direction?

Moon Wizard
August 13th, 2025, 17:31
There is no built-in mechanism to only lock on the GM. The built-in lock button was designed to allow locking a record to avoid accidental changes during play (play vs. edit mode) to any user who had rights to that record. The lock buttons on character sheets in the rulesets that support that follow that convention.

Regards,
JPG

LordEntrails
August 13th, 2025, 19:41
If you use the new(er ?) window templates it will add several buttons including the lock. There are several of them, they all just have slightly different offsets/positioning. They are named "windowmenubar".

superteddy57
August 13th, 2025, 19:51
This is true, but as Moon said, the lock is interactable by the player. The developer would need to have the GM only have control over this "locked" node. It would also need to be disabled so no interaction could be made from it. Just not normal assumed behavior for how it works now and the developer would need to introduce this new behavior.

Moon Wizard
August 13th, 2025, 21:32
Just to clarify on @LordEntrails post; the various windowmenubar_* templates are tied to the frame used for the window. Look at any examples in CoreRPG or 5E.

Regards,
JPG