Buttons can not see 2 buttons at one time

can not see 2 buttons at one time

 NodePath newButtonNP = window->get_aspect_2d().attach_new_node(newButton);
   NodePath _newButtonNP = window->get_aspect_2d().attach_new_node(newButton);
   _newButtonNP.set_scale(1,1,1);
   _newButtonNP.set_pos(0.5,0,0);
   newButtonNP.set_scale(1,1,1);
   newButtonNP.set_pos(-0.5,0,0);

i can see only newButtonNP
if i do this

 // newButtonNP.set_scale(1,1,1);
 //  newButtonNP.set_pos(-0.5,0,0);

i can see _newButtonNP

You’re taking the same button, attaching it to the same node twice, and altering two NodePaths that point to the same node. You have to duplicate the button.