skinning directcheckbutton

Use this :

base.mouseWatcherNode.showRegions(render2d,'gui-popup',0)

and see.

So what now?

You missed 2 lines (bounds adjustment), that’s what.

This?:

button.bounds.setX(button.indicator.bounds[0]-button.indicator['borderWidth'][0])
button.guiItem.setFrame(button.bounds)

still aint right:

that’s the default asterisk’s bounds contribution.
To prevent it, pass indicator_text = ‘’ to the constructor.

doesnt change anything

It does, so the top & bottom borders equal to the left, which is the borderWidth.

Its still not the same size.
I dont know, im completely confused on skinning this particular gui element.