Can t find yellow hex color for my healthbar

  • #1, by nerdSunday, 10. February 2019, 14:59 6 years ago
    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?

    Forum Fan

    147 Posts


  • #2, by afrlmeSunday, 10. February 2019, 16:42 6 years ago
    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.

    Imperator

    7285 Posts

  • #3, by nerdSunday, 10. February 2019, 16:44 6 years ago
    thank you, it worked

    Forum Fan

    147 Posts

  • #4, by afrlmeSunday, 10. February 2019, 18:01 6 years ago
    which order was it?

    Imperator

    7285 Posts

  • #5, by nerdSunday, 10. February 2019, 20:58 6 years ago
    it was 0x00ffff

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

    Forum Fan

    147 Posts

  • #6, by afrlmeSunday, 10. February 2019, 23:25 6 years ago
    what's up with the last fight icon?

    Imperator

    7285 Posts