The Dink Network

get_truecolor()

June 22nd 2012, 01:21 PM
bonca.gif
Christiaan
Bard They/Them Netherlands
Lazy bum 
How does this command work in practice? I want to check if the player has true color enabled, and if not, a warning pops up to enable it. How is this done?
June 22nd 2012, 02:00 PM
custom_robj.png
Robj
Jester He/Him Australia
You feed the madness, and it feeds on you. 
Put this in start.c:
	int &truecolor = get_truecolor();
	if (&truecolor != 1)
	{
		freeze(1);
		choice_start();
		title_start();
		This Dmod can only be played with true color enabled.
		title_end();
		"Exit"
		choice_end();
		kill_game();
	}
June 22nd 2012, 02:46 PM
bonca.gif
Christiaan
Bard They/Them Netherlands
Lazy bum 
Awesome. Thanks!
June 22nd 2012, 08:21 PM
pq_knight.gif
ExDeathEvn
Peasant He/Him New Zealand rumble
"Skinny Legend" 
O_O
ITS CHRUSTIAAN

And so, it is thus proven; No-one may escape the Dink Network.
June 23rd 2012, 01:09 PM
custom_robj.png
Robj
Jester He/Him Australia
You feed the madness, and it feeds on you. 
Christiaan is too busy working on Shadows of the new order. That's my theory.

Please hurry up and finish it. I want it NAO!
June 23rd 2012, 07:31 PM
wizardg.gif
Or he's busy on xbox.