Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Ayúdame a aumentar el tamaño del icono de habilidad de interEx  (Visto 1231 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline Thormat Posteado: November 01, 2022, 11:03:57 AM | Modificado: November 02, 2022, 12:23:07 AM by Thormat

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 15
  • Gracias recibida: 0
Uso la fuente de InterEx, ¿puede decirme dónde aumentar el tamaño de esta habilidad?



código fuente que uso

Code: [Select]
void sub_813740(int This)
{
float v4; // ST18_4@17
float v5; // ST14_4@17
int v6; // [sp+18h] [bp-34h]@1
int v7; // [sp+20h] [bp-2Ch]@13
int v8; // [sp+24h] [bp-28h]@7
int v9; // [sp+2Ch] [bp-20h]@18
signed int v10; // [sp+30h] [bp-1Ch]@2
float w; // [sp+34h] [bp-18h]@4
signed int i; // [sp+40h] [bp-Ch]@4
float x; // [sp+44h] [bp-8h]@4
float y; // [sp+48h] [bp-4h]@4

int TypeSlot = gProtect.m_MainInfo.CustomInterfaceType;

float xInterface = TransFor2X( 320 ) - TransForX( 320 );

float wSkillSelect = (double) (TypeSlot == 4) ? (( 20.0f / 100) * 112.5) : 20 ;
float hSkillSelect = (double) (TypeSlot == 4) ? (( 28.0f / 100) * 99.99998639285714) : 25;

float Skill_Height = (double) (TypeSlot == 4) ? (( 28.0f / 100) *  89.28571428571429) : 21;
float Skill_Width = (double) (TypeSlot == 4) ? (( 20.0f / 100) * 90) : 15;

v6 = This;

if ( (signed int)*(BYTE *)(oUserObjectStruct + 118) > 0 )
{
v10 = 1;
if ( *(BYTE *)(This + 20) )
v10 = 6;
y = 441.0;
w = 20.0;

for ( i = 0; i < 5; ++i )
{
v8 = i + v10;
if ( i + v10 == 10 )
v8 = 0;
switch( i )
{
case 0:
x = Return2X(xInterface + TransForX( (TypeSlot == 4) ? 333.2999878 : 335));
break;
case 1:
x = Return2X(xInterface + TransForX( (TypeSlot == 4) ? 355.6000061 : 357));
break;
case 2:
x = Return2X(xInterface + TransForX( (TypeSlot == 4) ? 379 : 381));
break;
case 3:
x = Return2X(xInterface + TransForX( (TypeSlot == 4) ? 400.5 : 402));
break;
case 4:
x = Return2X(xInterface + TransForX( (TypeSlot == 4) ? 422.5 : 424));
break;
}

/*if(*(DWORD *)(v6 + 4 * v8 + 24) > 150 && *(DWORD *)(v6 + 4 * v8 + 24) <= 154 && *(DWORD *)(*(DWORD *)0x7BC4F04 + 676) == 0)
{
continue;
}*/

if ( *(DWORD *)(v6 + 4 * v8 + 24) != -1 && (*(DWORD *)(v6 + 4 * v8 + 24) < 120 || *(DWORD *)(v6 + 4 * v8 + 24) >= 124 || *(DWORD *)(*(DWORD *)0x7BC4F04 + 676)) )
{
v7 = *(DWORD *)0x8128ABC + 88 * *(WORD *)(*(DWORD *)0x8128AC8 + 2 * *(DWORD *)(v6 + 4 * v8 + 24) + 120);

if ( !v7 || *(BYTE *)(v7 + 55) != 3 )
{
SkillView(This, *(DWORD *)(v6 + 4 * v8 + 24), x, (TypeSlot == 4) ? 442.2999878: y + 4.5, Skill_Width, Skill_Height, 1, (TypeSlot == 4) ? 90 : 75, (TypeSlot == 4) ? 89.28571428571429 : 75);

if ( *(BYTE *)(*(DWORD *)0x7BC4F04 + 50) == *(DWORD *)(v6 + 4 * v8 + 24) )
{
RenderBitmap(51500, x - Return2X(TransForX( 6 )), y - 2.5, Return2X(TransForX(28)), ReturnY(TransForY(58)), 0, 0, 1.0, 1.0, 1, 1, 0.0); //-- Slot en Uso
}
}
}
CRenderNumberEx(x + 6, y - 1.5, v8, 1.02,6829);
}

v9 = *(DWORD *)0x8128ABC + 88 * *(WORD *)(*(DWORD *)0x8128AC8 + 2 * *(BYTE *)(*(DWORD *)0x7BC4F04 + 50) + 120);

if ( v9 && *(BYTE *)(v9 + 55) != 3 )
{
SkillView(This, *(BYTE *)(*(DWORD *)0x7BC4F04 + 50),
Return2X(xInterface + TransForX((TypeSlot == 4) ? 305.35 : 306 )),
(TypeSlot == 4) ? 440.5 : 444, wSkillSelect, hSkillSelect, 0, (TypeSlot == 4) ? 112.5 : 100, (TypeSlot == 4) ? 99.99998639285714 : 89.2857); //-- Slot en Uso
}
}
}


Offline Thormat #1 Posteado: November 01, 2022, 09:54:09 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 15
  • Gracias recibida: 0

Offline Thormat #2 Posteado: November 02, 2022, 12:21:20 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 15
  • Gracias recibida: 0
Code: [Select]
[code
void sub_813740(int This)
{
float v4; // ST18_4@17
float v5; // ST14_4@17
int v6; // [sp+18h] [bp-34h]@1
int v7; // [sp+20h] [bp-2Ch]@13
int v8; // [sp+24h] [bp-28h]@7
int v9; // [sp+2Ch] [bp-20h]@18
signed int v10; // [sp+30h] [bp-1Ch]@2
float w; // [sp+34h] [bp-18h]@4
signed int i; // [sp+40h] [bp-Ch]@4
float x; // [sp+44h] [bp-8h]@4
float y; // [sp+48h] [bp-4h]@4

int TypeSlot = gProtect.m_MainInfo.CustomInterfaceType;

float xInterface = TransFor2X( 320 ) - TransForX( 320 );

float wSkillSelect = (double) (TypeSlot == 4) ? (( 20.0f / 100) * 112.5) : 20 ;
float hSkillSelect = (double) (TypeSlot == 4) ? (( 28.0f / 100) * 99.99998639285714) : 25;

float Skill_Height = (double) (TypeSlot == 4) ? (( 28.0f / 100) *  89.28571428571429) : 21;
float Skill_Width = (double) (TypeSlot == 4) ? (( 20.0f / 100) * 90) : 15;

v6 = This;

if ( (signed int)*(BYTE *)(oUserObjectStruct + 118) > 0 )
{
v10 = 1;
if ( *(BYTE *)(This + 20) )
v10 = 6;
y = 441.0;
w = 20.0;

for ( i = 0; i < 5; ++i )
{
v8 = i + v10;
if ( i + v10 == 10 )
v8 = 0;
switch( i )
{
case 0:
x = Return2X(xInterface + TransForX( (TypeSlot == 4) ? 333.2999878 : 335));
break;
case 1:
x = Return2X(xInterface + TransForX( (TypeSlot == 4) ? 355.6000061 : 357));
break;
case 2:
x = Return2X(xInterface + TransForX( (TypeSlot == 4) ? 379 : 381));
break;
case 3:
x = Return2X(xInterface + TransForX( (TypeSlot == 4) ? 400.5 : 402));
break;
case 4:
x = Return2X(xInterface + TransForX( (TypeSlot == 4) ? 422.5 : 424));
break;
}

/*if(*(DWORD *)(v6 + 4 * v8 + 24) > 150 && *(DWORD *)(v6 + 4 * v8 + 24) <= 154 && *(DWORD *)(*(DWORD *)0x7BC4F04 + 676) == 0)
{
continue;
}*/

if ( *(DWORD *)(v6 + 4 * v8 + 24) != -1 && (*(DWORD *)(v6 + 4 * v8 + 24) < 120 || *(DWORD *)(v6 + 4 * v8 + 24) >= 124 || *(DWORD *)(*(DWORD *)0x7BC4F04 + 676)) )
{
v7 = *(DWORD *)0x8128ABC + 88 * *(WORD *)(*(DWORD *)0x8128AC8 + 2 * *(DWORD *)(v6 + 4 * v8 + 24) + 120);

if ( !v7 || *(BYTE *)(v7 + 55) != 3 )
{
SkillView(This, *(DWORD *)(v6 + 4 * v8 + 24), x, (TypeSlot == 4) ? 442.2999878: y + 4.5, Skill_Width, Skill_Height, 1, (TypeSlot == 4) ? 90 : 75, (TypeSlot == 4) ? 89.28571428571429 : 75);

if ( *(BYTE *)(*(DWORD *)0x7BC4F04 + 50) == *(DWORD *)(v6 + 4 * v8 + 24) )
{
RenderBitmap(51500, x - Return2X(TransForX( 6 )), y - 2.5, Return2X(TransForX(28)), ReturnY(TransForY(58)), 0, 0, 1.0, 1.0, 1, 1, 0.0); //-- Slot en Uso
}
}
}
CRenderNumberEx(x + 6, y - 1.5, v8, 1.02,6829);
}

v9 = *(DWORD *)0x8128ABC + 88 * *(WORD *)(*(DWORD *)0x8128AC8 + 2 * *(BYTE *)(*(DWORD *)0x7BC4F04 + 50) + 120);

if ( v9 && *(BYTE *)(v9 + 55) != 3 )
{
SkillView(This, *(BYTE *)(*(DWORD *)0x7BC4F04 + 50),
Return2X(xInterface + TransForX((TypeSlot == 4) ? 305.35 : 306 )),
(TypeSlot == 4) ? 440.5 : 444, wSkillSelect, hSkillSelect, 0, (TypeSlot == 4) ? 112.5 : 100, (TypeSlot == 4) ? 99.99998639285714 : 89.2857); //-- Slot en Uso
}
}
}


Offline Thormat #3 Posteado: November 03, 2022, 12:27:41 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 15
  • Gracias recibida: 0

Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
5 Replies
2272 Views
Last post May 03, 2017, 12:28:55 PM
by ZabiinoOo
3 Replies
1320 Views
Last post October 06, 2017, 04:23:03 PM
by edpa
0 Replies
635 Views
Last post May 21, 2018, 10:47:25 PM
by c4nhsatcodong
2 Replies
932 Views
Last post October 06, 2019, 05:49:38 AM
by c4nhsatcodong
0 Replies
359 Views
Last post March 14, 2020, 07:17:03 PM
by Tomy