I cant skin that too.
If I pass a texture-card i made to the ‘geom’ parameter, then it will look as expected, but the clickable area is different and a lot bigger. Shouldn’t geom be responsible for that as well? And… what parameter do you use for skinning the options? They cover half of the screen now.
It looks to me like your geom and your indicator_geom aren’t matching up. It’s your responsibility to create these objects so that they match up together.
the archive I posted has the egg files, which were created with egg-texture-cards. I havent done anything special, “egg-texture-cards -o button.egg button.png”
Sry for offtopic, but for sharing files, Dropbox and spideroak are excellent.
If you want to share files for other to see, spideroak is best, you can setup a folder, and application will sync and you get link which point to web mirror of that folder.
With dropbox, you have public folder, and there is python script that will make html page with links to everything else in public folder.
if dropbox is so good why did it delete my file in less than a week? Even if its very rare thing its still enough for me to not use it again.
THe one i use now seems to work and its all i really need.
button.indicator['text'] = '' # change the default asterisk text
button.indicator.guiItem.getStateDef(0).removeNode() # remove the indicator geom of the 0 state
# base.mouseWatcherNode.showRegions(render2d,'gui-popup',0)
About the incorrect Z pos, that’s because the default asterisk text’s bounds is added. To prevent it, pass indicator_text = ‘’ to the constructor, or just button.indicator.setZ(0) afterward.
The line “button.indicator.guiItem.getStateDef(0).removeNode()” makes the custom indicator geom appear only in the correct state. I dont really get what it did, but at least thats fixed.
But the indicator still appears on the left from the button, as you see…
bb = button.bounds # LRBT
for i in range(4):
bgc = button.stateNodePath[i].getChild(0)
bgc.setSx(bb[1]-bb[0])
bgc.setX(-.5*button.indicator['geom_scale'][0]-button['borderWidth'][0])
I dont think we understand each other
I dont want the geom to cover the indicator too, I want the indicator to be in the same place as the button, exactly like when it is not skinned: