Ir para conteúdo
Propaganda

Posts Recomendados

Queria trocar no creature.cpp:

	if(m_showTimedSquare && animate) {
		g_painter->setColor(m_timedSquareColor);
		g_painter->drawBoundingRect(Rect(dest + (animationOffset - getDisplacement() + 2)*scaleFactor, Size(28, 28)*scaleFactor), std::max<int>((int)(2*scaleFactor), 1));
		g_painter->setColor(Color::white);
	}

	if(m_showStaticSquare && animate) {
		g_painter->setColor(m_staticSquareColor);
		g_painter->drawBoundingRect(Rect(dest + (animationOffset - getDisplacement())*scaleFactor, Size(Otc::TILE_PIXELS, Otc::TILE_PIXELS)*scaleFactor), std::max<int>((int)(2*scaleFactor), 1));
		g_painter->setColor(Color::white);
	}

por:

	if(m_showTimedSquare && animate) {
		EffectPtr effect = EffectPtr(new Effect());
		effect->setId(379);
		g_painter->setColor(m_timedSquareColor);
		Rect rect = Rect(dest + (animationOffset - getDisplacement())*scaleFactor, Size(Otc::TILE_PIXELS, Otc::TILE_PIXELS)*scaleFactor);
		g_painter->drawTexturedRect(rect, effect->getThingType()->getTexture(0));
		g_painter->setColor(Color::white); g_painter->setColor(Color::white);
	}

	if(m_showStaticSquare && animate) {
		EffectPtr effect = EffectPtr(new Effect());
		effect->setId(379);
		g_painter->setColor(m_staticSquareColor);
		Rect rect = Rect(dest + (animationOffset - getDisplacement())*scaleFactor, Size(Otc::TILE_PIXELS, Otc::TILE_PIXELS)*scaleFactor);
		g_painter->drawTexturedRect(rect, effect->getThingType()->getTexture(0));
		g_painter->setColor(Color::white);
	}

 

Mas, não é nem sequer as mesmas linhas do 0.6.7
Como proceder?

Link para o comentário
https://tibiadevs.com/forums/topic/433-pedido-adaptar-sistema-de-target-067-para-otcv8/
Compartilhar em outros sites

  • Administrador
Em 21/05/2024 em 22:32, VelhoBarreiro disse:

Queria trocar no creature.cpp:

	if(m_showTimedSquare && animate) {
		g_painter->setColor(m_timedSquareColor);
		g_painter->drawBoundingRect(Rect(dest + (animationOffset - getDisplacement() + 2)*scaleFactor, Size(28, 28)*scaleFactor), std::max<int>((int)(2*scaleFactor), 1));
		g_painter->setColor(Color::white);
	}

	if(m_showStaticSquare && animate) {
		g_painter->setColor(m_staticSquareColor);
		g_painter->drawBoundingRect(Rect(dest + (animationOffset - getDisplacement())*scaleFactor, Size(Otc::TILE_PIXELS, Otc::TILE_PIXELS)*scaleFactor), std::max<int>((int)(2*scaleFactor), 1));
		g_painter->setColor(Color::white);
	}

por:

	if(m_showTimedSquare && animate) {
		EffectPtr effect = EffectPtr(new Effect());
		effect->setId(379);
		g_painter->setColor(m_timedSquareColor);
		Rect rect = Rect(dest + (animationOffset - getDisplacement())*scaleFactor, Size(Otc::TILE_PIXELS, Otc::TILE_PIXELS)*scaleFactor);
		g_painter->drawTexturedRect(rect, effect->getThingType()->getTexture(0));
		g_painter->setColor(Color::white); g_painter->setColor(Color::white);
	}

	if(m_showStaticSquare && animate) {
		EffectPtr effect = EffectPtr(new Effect());
		effect->setId(379);
		g_painter->setColor(m_staticSquareColor);
		Rect rect = Rect(dest + (animationOffset - getDisplacement())*scaleFactor, Size(Otc::TILE_PIXELS, Otc::TILE_PIXELS)*scaleFactor);
		g_painter->drawTexturedRect(rect, effect->getThingType()->getTexture(0));
		g_painter->setColor(Color::white);
	}

 

Mas, não é nem sequer as mesmas linhas do 0.6.7
Como proceder?

ué, seria só assim n ?

 

if(m_showTimedSquare && animate) {
    EffectPtr effect = EffectPtr(new Effect());
    effect->setId(379);
    g_painter->setColor(m_timedSquareColor);
    Rect rect = Rect(dest + (animationOffset - getDisplacement() + 2)*scaleFactor, Size(28, 28)*scaleFactor);
    g_painter->drawTexturedRect(rect, effect->getThingType()->getTexture(0));
    g_painter->setColor(Color::white);
}

if(m_showStaticSquare && animate) {
    EffectPtr effect = EffectPtr(new Effect());
    effect->setId(379);
    g_painter->setColor(m_staticSquareColor);
    Rect rect = Rect(dest + (animationOffset - getDisplacement())*scaleFactor, Size(Otc::TILE_PIXELS, Otc::TILE_PIXELS)*scaleFactor);
    g_painter->drawTexturedRect(rect, effect->getThingType()->getTexture(0));
    g_painter->setColor(Color::white);
}

 

Link para o comentário
https://tibiadevs.com/forums/topic/433-pedido-adaptar-sistema-de-target-067-para-otcv8/#findComment-2362
Compartilhar em outros sites

  • 2 semanas atrás...
Em 23/05/2024 em 12:56, TELASKO disse:

ué, seria só assim n ?

 

if(m_showTimedSquare && animate) {
    EffectPtr effect = EffectPtr(new Effect());
    effect->setId(379);
    g_painter->setColor(m_timedSquareColor);
    Rect rect = Rect(dest + (animationOffset - getDisplacement() + 2)*scaleFactor, Size(28, 28)*scaleFactor);
    g_painter->drawTexturedRect(rect, effect->getThingType()->getTexture(0));
    g_painter->setColor(Color::white);
}

if(m_showStaticSquare && animate) {
    EffectPtr effect = EffectPtr(new Effect());
    effect->setId(379);
    g_painter->setColor(m_staticSquareColor);
    Rect rect = Rect(dest + (animationOffset - getDisplacement())*scaleFactor, Size(Otc::TILE_PIXELS, Otc::TILE_PIXELS)*scaleFactor);
    g_painter->drawTexturedRect(rect, effect->getThingType()->getTexture(0));
    g_painter->setColor(Color::white);
}

 

pelo que intendi ele quer adaptar mas para o otcv8

Link para o comentário
https://tibiadevs.com/forums/topic/433-pedido-adaptar-sistema-de-target-067-para-otcv8/#findComment-2415
Compartilhar em outros sites

  • Administrador
1 hora atrás, Lindolfo disse:

pelo que intendi ele quer adaptar mas para o otcv8

Sim, foi o que eu fiz tá pra v8 aí, pelo menos essa parte aí q ele mandou.

Link para o comentário
https://tibiadevs.com/forums/topic/433-pedido-adaptar-sistema-de-target-067-para-otcv8/#findComment-2416
Compartilhar em outros sites

Crie uma conta ou entre para comentar

Você precisar ser um membro para fazer um comentário

Criar uma conta

Crie uma nova conta em nossa comunidade. É fácil!

Crie uma nova conta

Entrar

Já tem uma conta? Faça o login.

Entrar Agora
×
  • Criar Novo...