Esempio n. 1
0
void init_colors() {
	black = color_s(0, 0, 0);
	white = color_s(255, 255, 255);
	red = color_s(255, 0, 0);
	green = color_s(0, 255, 0);
	blue = color_s(0, 0, 255);
	background_color = color_s(0x26, 0x26, 0x26, 200);
	shader_color = color_s(0x1A, 0x1A, 0x1A);
	pointer_color = black;
}
Esempio n. 2
0
inline color_s operator * (const double & n, const color_s & c) {		// number * color
	return color_s(c.r*n, c.g*n, c.b*n);
}
Esempio n. 3
0
inline color_s operator + (const color_s & c1, const color_s & c2) {	// color + color
	return color_s(c1.r+c2.r, c1.g+c2.g, c1.b+c2.b);
}
Esempio n. 4
0
void draw_bool(bool value) {
	if (can_draw_item()) {
		char* n = (char*)(value ? "shop_box_tick" : "shop_box_cross");
		draw_sprite("commonmenu", n, x_axis + 0.088, y_axis + 0.073 + (.035 * drawing_index), 0.032, 0.056, (value ? color_s(0, 255, 0, 150) : color_s(255, 0, 0, 150)), 0, 1);
	}
}