Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (dr_panther, AndrewAMD, Ayumi, TedMar), 1,033 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How can i make panels darker or brighter? #339893
08/29/10 17:24
08/29/10 17:24
Joined: Sep 2009
Posts: 496
P
Progger Offline OP
Senior Member
Progger  Offline OP
Senior Member
P

Joined: Sep 2009
Posts: 496
Hi my question is how can i make panels darker is there a function for this?
WFG Progger


asking is the best Way to get help laugh laugh laugh
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
T
TrackingKeks Offline
Junior Member
TrackingKeks  Offline
Junior Member
T

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 grin


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] #339900
08/29/10 17:41
08/29/10 17:41
Joined: Sep 2009
Posts: 496
P
Progger Offline OP
Senior Member
Progger  Offline OP
Senior Member
P

Joined: Sep 2009
Posts: 496
thank you ill try it
WFG Progger


asking is the best Way to get help laugh laugh laugh
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 Offline
Expert
MasterQ32  Offline
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


Visit my site: www.masterq32.de
Re: How can i make panels darker or brighter? [Re: TrackingKeks] #339907
08/29/10 18:02
08/29/10 18:02
Joined: Sep 2009
Posts: 993
Budapest
Aku_Aku Offline
User
Aku_Aku  Offline
User

Joined: Sep 2009
Posts: 993
Budapest
I think pan_setcolor used for setg the color of text on panels...

Re: How can i make panels darker or brighter? [Re: Aku_Aku] #339915
08/29/10 18:46
08/29/10 18:46
Joined: Sep 2009
Posts: 496
P
Progger Offline OP
Senior Member
Progger  Offline OP
Senior Member
P

Joined: Sep 2009
Posts: 496
Ok thanks for ur help i decided to use a sprite because it didnt work with the Panel


asking is the best Way to get help laugh laugh laugh
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
B
bodden Offline
Junior Member
bodden  Offline
Junior Member
B

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".

Code:
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);
		
	}
}



Re: How can i make panels darker or brighter? [Re: bodden] #339978
08/30/10 13:25
08/30/10 13:25
Joined: Sep 2009
Posts: 496
P
Progger Offline OP
Senior Member
Progger  Offline OP
Senior Member
P

Joined: Sep 2009
Posts: 496
Thank you for this example bodden laugh
WFG Progger


asking is the best Way to get help laugh laugh laugh

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1