GT7 HUD

GT7 HUDMisc  1.2.0

  • Thread starter Thread starter Inori GC
  • 34 comments
  • 21,965 views
Working on an UI Popup when you overtake a car, mildly inspired by GT7's implementation, using the preview image of the skin. Still needs a bit of work, though, as it's a bit taxing on performance right now, and it sometimes triggers on its own.

 
Working on an UI Popup when you overtake a car, mildly inspired by GT7's implementation, using the preview image of the skin. Still needs a bit of work, though, as it's a bit taxing on performance right now, and it sometimes triggers on its own.


Hello, nice to hear from you again. Sorry i just open the forum just now. Your new feature is really interesting
 
1771965701377.webp


In case some one is having the "too dark icons" in the map/track map/radar for GT7 HUD (probably because of Pure LCS), you can fix it by changing a line in these two files: screens\multi_function_display_hud.lua screens\map_hud.lua
render.quad(c1, c2, c3, c4, rgbm.colors.white, arrowTexture) -change this to-> render.quad(c1, c2, c3, c4, rgbm(2.4, 2.4, 2.4, 1), arrowTexture)

1771965957091.webp


(you can play with the numbers to get your desired brightness)
 
Last edited:
View attachment 1515747

In case some one is having the "too dark icons" in the map/track map/radar for GT7 HUD (probably because of Pure LCS), you can fix it by changing a line in these two files: screens\multi_function_display_hud.lua screens\map_hud.lua
render.quad(c1, c2, c3, c4, rgbm.colors.white, arrowTexture) -change this to-> render.quad(c1, c2, c3, c4, rgbm(2.4, 2.4, 2.4, 1), arrowTexture)

View attachment 1515748

(you can play with the numbers to get your desired brightness)
Nice job! That's a thing I wanted to get on fixing but I couldn't get Pure LCS to work.

Great to see more people working on this HUD app :)
 
the KERS (ERS ?) portion of the hud doesn't tell about the available charge in the battery, but instead how much charge you can deploy in an entire lap, which is limited for some cars (LMP1 hybrids) and unlimited for others (Mclaren P1 GTR). In case of unlimited, the meter never depletes even if battery drops to 0.

1773781879008.webp
I added a number below the meter to tell the actual charge available to you, which decreases when you deploy it, and increases when you brake/coast

go to the file steamapps\common\assettocorsa\apps\lua\GT7HUD\screens\tach_hud.lua, and find the line with
if CAR.kersCharging then <code below>

add these lines above it,

Code:
        local batteryBoxWidth = scale(80)
        local batteryBoxHeight = ers_arrow_h
        ui.setCursor(vec2(
            fuel_arc_pos_x - (batteryBoxWidth / 2),
            ers_arrow_pos_y
        ))

        -- if available battery less than 20%, show in red color
        local textColor = rgbm(1, 1, 1, 1)
        if (CAR.kersCharge or 0) < 0.2 then
            textColor = rgbm(1, 0.5, 0, 1)
        end

        ui.pushDWriteFont('MyFont:\\fonts;Weight=Regular')
        ui.dwriteTextAligned(
            string.format("%.0f", (CAR.kersCharge or 0) * 100),
            scale(22),
            ui.Alignment.Center,
            ui.Alignment.Center,
            vec2(batteryBoxWidth, batteryBoxHeight),
            false,
            textColor
        )
        ui.popDWriteFont()
 
Back