SOURCE - cant you share sd bar? yellow bar Main 5.2

Publicado por Dakosmu, Mar 26, 2025, 12:53 AM

Tema anterior - Siguiente tema

Dakosmu

cant you share sd bar? yellow bar Main 5.2

Los visitantes no pueden visualizar imágenes en los mensajes, por favor Regístrate o Inicia Sesión

Buscas: //RenderGuageSD(); y lo cambias por RenderGuageSD();

ya luego buscas: void SEASON3B::CNewUIMainFrameWindow::RenderGuageSD()

y cambias por:

void SEASON3B::CNewUIMainFrameWindow::RenderGuageSD()
{
    float x, y, width, height;
    float fY, fH, fV;
    WORD wMaxShield, wShield;

    //Master_Level_Data.wMaxShield
    if (gCharacterManager.IsMasterLevel(Hero->Class) == true)
    {
        wMaxShield = max(1, Master_Level_Data.wMaxShield);
        wShield = min(wMaxShield, CharacterAttribute->Shield);
    }
    else
    {
        wMaxShield = max(1, CharacterAttribute->ShieldMax);
        wShield = min(wMaxShield, CharacterAttribute->Shield);
    }

    float fShield = 0.0f;

    if (wMaxShield > 0)
    {
        fShield = (wMaxShield - wShield) / (float)wMaxShield;
    }

    width = 16.f, height = 39.f;
    x = 120; y = 480.f - 42.f;
    fY = y + (fShield * height);
    fH = height - (fShield * height);
    fV = fShield;

    // Habilitar pruebas de alpha
    EnableAlphaTest(true);

    // Renderizar la imagen de la barra de escudo
    RenderBitmap(IMAGE_GAUGE_SD, x, fY, width, fH, 0.f, fV * height / 64.f, width / 16.f, (1.0f - fV) * height / 64.f);

    // Establecer color para el número del escudo
    glColor3f(0.91000003, 0.81, 0.60000002);

    // Renderizar el número del escudo
    float Sub = 10.f;  // Ajuste de posición
    GWidescreen.RenderNumbers(x + 12, GetWindowsY - Sub - 4, (int)wShield, 6.0, 7.0);

    // Restablecer el color a blanco
    glColor4f(1.f, 1.f, 1.f, 1.f);

    // Renderizar el tooltip si el mouse está sobre la barra
    height = 39.f;
    y = 480.f - 10.f - 39.f;
    if (SEASON3B::CheckMouseIn(x, y, width, height) == true)
    {
        char strTipText[256];
        sprintf(strTipText, GlobalText[2037], wShield, wMaxShield);
        RenderTipText((int)x - 20, (int)418, strTipText);
    }
}

Creditos
Dexign
Bon Dia

🡱 🡳