Jump to content

[C++/python]Release Details_UI


xkillmt2
 Share

Recommended Posts

Missing parts for overin-tooltips:

char __thiscall CButton::SetUp(int this)
{
	int v1; // esi
	_DWORD *v2; // eax
	
	v1 = this;
	CButton::SetCurrentVisual((signed int *)this, (float *)(this + 184));
	*(_DWORD *)(v1 + 172) = 0;                    // m_isPressed
	v2 = (_DWORD *)BuildEmptyTuple();
	return PyCallClassMemberFunc(*(_DWORD **)(v1 + 96), (int)"OnMouseOverOut", v2);
}
//
	void CButton::SetUp()
	{
		SetCurrentVisual(&m_upVisual);
		m_isPressed = FALSE;
		PyCallClassMemberFunc(m_poHandler, "OnMouseOverOut", BuildEmptyTuple());
	}
char __thiscall CButton::Over(char *this)
{
	char *v1; // esi
	_DWORD *v2; // eax
	
	v1 = this;
	CButton::SetCurrentVisual((signed int *)this, (float *)this + 57);
	v2 = (_DWORD *)BuildEmptyTuple();
	return PyCallClassMemberFunc(*((_DWORD **)v1 + 24), (int)"OnMouseOverIn", v2);
}
//
	void CButton::Over()
	{
		SetCurrentVisual(&m_overVisual);
		PyCallClassMemberFunc(m_poHandler, "OnMouseOverIn", BuildEmptyTuple());
	}

 

Link to comment
Share on other sites

Em 07/03/2018 em 07:44, P3NG3R disse:

Missing parts for overin-tooltips:


char __thiscall CButton::SetUp(int this)
{
	int v1; // esi
	_DWORD *v2; // eax
	
	v1 = this;
	CButton::SetCurrentVisual((signed int *)this, (float *)(this + 184));
	*(_DWORD *)(v1 + 172) = 0;                    // m_isPressed
	v2 = (_DWORD *)BuildEmptyTuple();
	return PyCallClassMemberFunc(*(_DWORD **)(v1 + 96), (int)"OnMouseOverOut", v2);
}
//
	void CButton::SetUp()
	{
		SetCurrentVisual(&m_upVisual);
		m_isPressed = FALSE;
		PyCallClassMemberFunc(m_poHandler, "OnMouseOverOut", BuildEmptyTuple());
	}

char __thiscall CButton::Over(char *this)
{
	char *v1; // esi
	_DWORD *v2; // eax
	
	v1 = this;
	CButton::SetCurrentVisual((signed int *)this, (float *)this + 57);
	v2 = (_DWORD *)BuildEmptyTuple();
	return PyCallClassMemberFunc(*((_DWORD **)v1 + 24), (int)"OnMouseOverIn", v2);
}
//
	void CButton::Over()
	{
		SetCurrentVisual(&m_overVisual);
		PyCallClassMemberFunc(m_poHandler, "OnMouseOverIn", BuildEmptyTuple());
	}

 

why archive?

está faltando também o 

d:/ymir work/ui/pattern/thinboardcircle/ThinBoard_Corner_RightBottom_Circle.tga

caso alguem possa upar, agradeço

Link to comment
Share on other sites

Em 07/03/2018 em 07:44, P3NG3R disse:

Missing parts for overin-tooltips:


char __thiscall CButton::SetUp(int this)
{
	int v1; // esi
	_DWORD *v2; // eax
	
	v1 = this;
	CButton::SetCurrentVisual((signed int *)this, (float *)(this + 184));
	*(_DWORD *)(v1 + 172) = 0;                    // m_isPressed
	v2 = (_DWORD *)BuildEmptyTuple();
	return PyCallClassMemberFunc(*(_DWORD **)(v1 + 96), (int)"OnMouseOverOut", v2);
}
//
	void CButton::SetUp()
	{
		SetCurrentVisual(&m_upVisual);
		m_isPressed = FALSE;
		PyCallClassMemberFunc(m_poHandler, "OnMouseOverOut", BuildEmptyTuple());
	}

char __thiscall CButton::Over(char *this)
{
	char *v1; // esi
	_DWORD *v2; // eax
	
	v1 = this;
	CButton::SetCurrentVisual((signed int *)this, (float *)this + 57);
	v2 = (_DWORD *)BuildEmptyTuple();
	return PyCallClassMemberFunc(*((_DWORD **)v1 + 24), (int)"OnMouseOverIn", v2);
}
//
	void CButton::Over()
	{
		SetCurrentVisual(&m_overVisual);
		PyCallClassMemberFunc(m_poHandler, "OnMouseOverIn", BuildEmptyTuple());
	}

 

Boa Noite...

Pessoal me desculpem a minha ignorância, mais aonde eu adiciono esses scripts?

Link to comment
Share on other sites

31 minutos atrás, Marcos disse:

Boa Noite...

Pessoal me desculpem a minha ignorância, mais aonde eu adiciono esses scripts?

EterPythonLib->PythonWindow.cpp

Find: void CButton::SetUp()

Replace:

void CButton::SetUp()
    {
        SetCurrentVisual(&m_upVisual);
        m_isPressed = FALSE;
        PyCallClassMemberFunc(m_poHandler, "OnMouseOverOut", BuildEmptyTuple());
    }

Find: void CButton::Over()

Replace:

void CButton::Over()
    {
        SetCurrentVisual(&m_overVisual);
        PyCallClassMemberFunc(m_poHandler, "OnMouseOverIn", BuildEmptyTuple());
    }

Link to comment
Share on other sites

18 horas atrás, xkillmt2 disse:

EterPythonLib->PythonWindow.cpp

Find: void CButton::SetUp()

Replace:

 


void CButton::SetUp()
    {
        SetCurrentVisual(&m_upVisual);
        m_isPressed = FALSE;
        PyCallClassMemberFunc(m_poHandler, "OnMouseOverOut", BuildEmptyTuple());
    }

 

Find: void CButton::Over()

Replace:

 


void CButton::Over()
    {
        SetCurrentVisual(&m_overVisual);
        PyCallClassMemberFunc(m_poHandler, "OnMouseOverIn", BuildEmptyTuple());
    }

 

Obrigado @xkillmt2

Edited by Marcos
Link to comment
Share on other sites

  • 1 month later...

Here is another function that was not in the tutorial:

Search in uiToolTip.py

	def AppendDescription(self, desc, limit, color = FONT_COLOR):
		if localeInfo.IsEUROPE():
			self.__AppendDescription_WesternLanguage(desc, color)
		else:
			self.__AppendDescription_EasternLanguage(desc, limit, color)

Paste below:

	def SetThinBoardSize(self, width, height = 12) :
		self.toolTipWidth = width 
		self.toolTipHeight = height

Thanks for the tutorial!

Edited by Sonitexx
Link to comment
Share on other sites

  • 2 months later...
  • 4 months later...
  • 2 weeks later...

Resistência contra Classes não está funcionando corretamente, alguma sugestão do que está causando ?

https://prnt.sc/lkdeb4

 

		self.InfoList.append( [ localeInfo.DETAILS_CATE_3, "", self.CATEGORY_STARTLINE ] )
		self.InfoList.append( [ localeInfo.DETAILS_36, localeInfo.DETAILS_TOOLTIP_36, item.GetApplyPoint( item.APPLY_ATTBONUS_WARRIOR ) ] )
		self.InfoList.append( [ localeInfo.DETAILS_37, localeInfo.DETAILS_TOOLTIP_37, item.GetApplyPoint( item.APPLY_ATTBONUS_ASSASSIN ) ] )
		self.InfoList.append( [ localeInfo.DETAILS_38, localeInfo.DETAILS_TOOLTIP_38, item.GetApplyPoint( item.APPLY_ATTBONUS_SURA ) ] )
		self.InfoList.append( [ localeInfo.DETAILS_39, localeInfo.DETAILS_TOOLTIP_39, item.GetApplyPoint( item.APPLY_ATTBONUS_SHAMAN ) ] )
		#self.InfoList.append( [ localeInfo.DETAILS_40, localeInfo.DETAILS_TOOLTIP_40, item.GetApplyPoint( item.APPLY_ATTBONUS_WOLFMAN ) ] )
		self.InfoList.append( [ localeInfo.DETAILS_41, localeInfo.DETAILS_TOOLTIP_41, item.GetApplyPoint( item.APPLY_RESIST_WARRIOR ) ] )
		self.InfoList.append( [ localeInfo.DETAILS_42, localeInfo.DETAILS_TOOLTIP_42, item.GetApplyPoint( item.APPLY_RESIST_ASSASSIN ) ] )
		self.InfoList.append( [ localeInfo.DETAILS_43, localeInfo.DETAILS_TOOLTIP_43, item.GetApplyPoint( item.APPLY_RESIST_SURA ) ] )
		self.InfoList.append( [ localeInfo.DETAILS_44, localeInfo.DETAILS_TOOLTIP_44, item.GetApplyPoint( item.APPLY_RESIST_SHAMAN ) ] )
		#self.InfoList.append( [ localeInfo.DETAILS_45, localeInfo.DETAILS_TOOLTIP_45, item.GetApplyPoint( item.APPLY_RESIST_WOLFMAN ) ] )
		self.InfoList.append( [ "", "", self.CATEGORY_ENDLINE ] )

 

Edited by Sinval
Link to comment
Share on other sites

44 minutos atrás, Sinval disse:

Resistência contra Classes não está funcionando corretamente, alguma sugestão do que está causando ?

https://prnt.sc/lkdeb4

 


		self.InfoList.append( [ localeInfo.DETAILS_CATE_3, "", self.CATEGORY_STARTLINE ] )
		self.InfoList.append( [ localeInfo.DETAILS_36, localeInfo.DETAILS_TOOLTIP_36, item.GetApplyPoint( item.APPLY_ATTBONUS_WARRIOR ) ] )
		self.InfoList.append( [ localeInfo.DETAILS_37, localeInfo.DETAILS_TOOLTIP_37, item.GetApplyPoint( item.APPLY_ATTBONUS_ASSASSIN ) ] )
		self.InfoList.append( [ localeInfo.DETAILS_38, localeInfo.DETAILS_TOOLTIP_38, item.GetApplyPoint( item.APPLY_ATTBONUS_SURA ) ] )
		self.InfoList.append( [ localeInfo.DETAILS_39, localeInfo.DETAILS_TOOLTIP_39, item.GetApplyPoint( item.APPLY_ATTBONUS_SHAMAN ) ] )
		#self.InfoList.append( [ localeInfo.DETAILS_40, localeInfo.DETAILS_TOOLTIP_40, item.GetApplyPoint( item.APPLY_ATTBONUS_WOLFMAN ) ] )
		self.InfoList.append( [ localeInfo.DETAILS_41, localeInfo.DETAILS_TOOLTIP_41, item.GetApplyPoint( item.APPLY_RESIST_WARRIOR ) ] )
		self.InfoList.append( [ localeInfo.DETAILS_42, localeInfo.DETAILS_TOOLTIP_42, item.GetApplyPoint( item.APPLY_RESIST_ASSASSIN ) ] )
		self.InfoList.append( [ localeInfo.DETAILS_43, localeInfo.DETAILS_TOOLTIP_43, item.GetApplyPoint( item.APPLY_RESIST_SURA ) ] )
		self.InfoList.append( [ localeInfo.DETAILS_44, localeInfo.DETAILS_TOOLTIP_44, item.GetApplyPoint( item.APPLY_RESIST_SHAMAN ) ] )
		#self.InfoList.append( [ localeInfo.DETAILS_45, localeInfo.DETAILS_TOOLTIP_45, item.GetApplyPoint( item.APPLY_RESIST_WOLFMAN ) ] )
		self.InfoList.append( [ "", "", self.CATEGORY_ENDLINE ] )

 

Pelo print não se percebe o problema, consegues explicar melhor?

Link to comment
Share on other sites

19 horas atrás, oserra disse:

Pelo print não se percebe o problema, consegues explicar melhor?

No print acontece o seguinte:

- Valor de resistência shaman vai pra resistência shura

- Valor de resistência shura vai pra resistência ninja

- Valor de resistência ninja vai pra resistência guerreiro

É como se os bônus estivessem trocados, mas no código está buscando o bônus correto, por isso não consigo compreender aonde está a falha.

18 horas atrás, Marcos disse:

Eu também percebi este erro.

É como se o os bônus estivessem trocados:

Ex. você equipa uma armadura com HP máximo 2000, ao invés de aparecer na coluna Máximo HP, aparece na coluna Bônus contra Animais.

 

Exatamente, alguns eu corrigi que estavam buscando o bônus trocado, mas no caso da resistência classe eu não entendi :/

Link to comment
Share on other sites

  • 2 weeks later...
  • 11 months later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...