Esempio n. 1
0
static void gui_calls_call_status_callback(SphoneCall *call)
{
	gchar *dial=NULL;
	gchar *state=NULL;
	gint answer_status, direction;
	
	debug("gui_calls_call_status_callback\n");
	
	g_object_get( G_OBJECT(call), "line_identifier", &dial, "state", &state, "answer_status", &answer_status, "direction", &direction, NULL);
	debug("Update call %s %s\n",dial,state);
	if(!g_strcmp0 (state,"incoming"))
		utils_start_ringing(dial);
	else
		utils_stop_ringing(dial);

	if(!g_strcmp0 (state,"disconnected")){
		gui_calls_utils_delete_dial(dial);
		if(answer_status==STORE_INTERACTION_CALL_STATUS_MISSED && direction==STORE_INTERACTION_DIRECTION_INCOMING){
			notification_add("missed_call.png",gui_history_calls);
		}
	}else
		gui_calls_utils_update_dial(dial,state);

	gui_calls_check_voice();

	gui_calls_update_global_status();
	
	g_free(state);
	g_free(dial);
}
Esempio n. 2
0
static void ApplySPMax() {
	
	MakeCoolFx(player.pos);
	sp_max = ~sp_max;
	
	if (sp_max) {
		MakeSpCol();
		DisplayCheatText("!!!_FaNt0mAc1e_!!!");
		
		player.skin = 4;
		
		ARX_EQUIPMENT_RecreatePlayerMesh();
		
		ARX_PLAYER_Rune_Add_All();
		std::string text = "!!!!!!! FanTomAciE !!!!!!!";
		notification_add(text);
		player.Attribute_Redistribute += 10;
		player.Skill_Redistribute += 50;
		player.level = std::max(player.level, short(10));
		player.xp = GetXPforLevel(10);
	} else {
		TextureContainer * tcm;
		tcm = TextureContainer::Load("graph/obj3d/textures/npc_human_cm_hero_head");
		if(tcm) {
			delete tcm;
			player.heads[0] = TextureContainer::Load("graph/obj3d/textures/npc_human_base_hero_head");
			player.heads[1] = TextureContainer::Load("graph/obj3d/textures/npc_human_base_hero2_head");
			player.heads[2] = TextureContainer::Load("graph/obj3d/textures/npc_human_base_hero3_head");
			ARX_EQUIPMENT_RecreatePlayerMesh();
		}
	}
}