Posted By: Aku_Aku
[SOLVED] Totally transparent panel with visible buttons - 10/02/16 10:00
I tried to create a totally transparent panel with visible buttons. With no real success. This way:
I have a panel with a button. Unfortunately it is not totally transparent panel.
If it covers an other panel, that becomes little bit greyer, a bit shadowed.
I played with mPanel.alpha but as i set to lower and more lower value, the button becomes also more and more transparent.
Please give some advise or show me the way, how could i achieve what i wrote in the subject of the post ?
Code:
mPanel = pan_create(NULL, 1); mPanel.bmap = bmap_createblack(128, 128, 16); tbmp1 = bmap_create("button.png"); pan_setbutton(mPanel,0,1,2,2,tbmp1,tbmp1,tbmp1,tbmp1,button_says,NULL,NULL); set(mPanel,TRANSLUCENT); set(mPanel,SHOW);
I have a panel with a button. Unfortunately it is not totally transparent panel.
If it covers an other panel, that becomes little bit greyer, a bit shadowed.
I played with mPanel.alpha but as i set to lower and more lower value, the button becomes also more and more transparent.
Please give some advise or show me the way, how could i achieve what i wrote in the subject of the post ?