Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Can t find yellow hex color for my healthbar

  • #1, by nerd 7 years ago Zitieren
    local health

    graphics.addDrawFunc("draw()", 0)



    function drawHealthBar()

    health = (Values["MC_health"].Int / 100) * 300

    -- + --

    function draw() graphics.drawBox(319, 84, health, 40, 0xFFFF00, 1) end

    end
    If I m not wrong 0xFFFF00 should be yellow, but it come out blu, what's the right code for yellow?
  • #2, by afrlme 7 years ago Zitieren
    for some reason the color order is incorrect in VS.

    I think it's BGR or BRG instead. I forget which order, but try swapping the first 2 with the last 2 values.
  • #3, by nerd 7 years ago Zitieren
    thank you, it worked
  • #4, by afrlme 7 years ago Zitieren
    which order was it?
  • #5, by nerd 7 years ago Zitieren
    it was 0x00ffff

    Could you tell me how do I register separate funcion for the drawBoxes? I'm stuck roll

  • #6, by afrlme 7 years ago Zitieren
    what's up with the last fight icon?