|
Re: How can i make panels darker or brighter?
[Re: Progger]
#339899
08/29/10 17:40
08/29/10 17:40
|
Joined: Nov 2009
Posts: 89 Germany, NRW
TrackingKeks
Junior Member
|
Junior Member
Joined: Nov 2009
Posts: 89
Germany, NRW
|
Perhaps you could try -bmap_to_alpha (BMAP*, var percent); -pan_setcolor(PANEL*, var type, var num, COLOR*); or: Use gimp
Gamestudio: A7.82 Commercial/A8 Commercial System specs (Laptop): Windows 7 64bit DirectX v10.1 Intel Core i7-720QM CPU @ 1,60 GHz 4GB DDR2 Ram NVIDIA GeForce GT 230M (1024MB)
|
|
|
Re: How can i make panels darker or brighter?
[Re: TrackingKeks]
#339901
08/29/10 17:42
08/29/10 17:42
|
Joined: Nov 2007
Posts: 2,568 Germany, BW, Stuttgart
MasterQ32
Expert
|
Expert
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
|
i think the flag LIGHT will do the stuff, because you can color you panels with it so you set the color to 128,128,128 there will be no change, but at 64,64,64 it will be darker
|
|
|
Re: How can i make panels darker or brighter?
[Re: Progger]
#339969
08/30/10 09:41
08/30/10 09:41
|
Joined: Sep 2007
Posts: 62 Germany
bodden
Junior Member
|
Junior Member
Joined: Sep 2007
Posts: 62
Germany
|
I tried Richi's way by setting LIGHT and red/blue/green. Works fine for all panel-elements. You can make the panel brighter by pressing "1" or darker by pressing "2".
BMAP* panel_png = "a7Cube.png";
var vred;
var vblue;
var vgreen;
PANEL* yourPanel =
{
digits(300,0,"red: %.0f",*,1,vred);
digits(300,20,"blue: %.0f",*,1,vblue);
digits(300,40,"green: %.0f",*,1,vgreen);
bmap = panel_png;
flags = SHOW;
}
function main()
{
level_load("");
set(yourPanel,LIGHT);
vec_set(yourPanel.blue,vector(128,128,128));
while(1)
{
if (key_1)
{
yourPanel.blue=clamp(yourPanel.blue+5*time_step,0,255);
yourPanel.red=clamp(yourPanel.red+5*time_step,0,255);
yourPanel.green=clamp(yourPanel.green+5*time_step,0,255);
}
if (key_2)
{
yourPanel.blue=clamp(yourPanel.blue-5*time_step,0,255);
yourPanel.red=clamp(yourPanel.red-5*time_step,0,255);
yourPanel.green=clamp(yourPanel.green-5*time_step,0,255);
}
vred=yourPanel.red;
vblue=yourPanel.blue;
vgreen=yourPanel.green;
wait(1);
}
}
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|