Comments (1)
You need to change the gradient in the index.js of your hud, not the css.
I do it like this:
` let health_gradient_left = statistics.health <= 20 ? "#ff0000" : team == "ct" ? "#00a0ff":"#ffa000";
let health_gradient_right = statistics.health <= 20 ? "#ff0000" : team == "ct" ? "#F939E3":"#F939E3";
let
let $bottom = $player.find(".bottom_bar");
let $top = $player.find(".bar1");
//let gradient = "linear-gradient(to " + side +", rgba(0,0,0,0) " + (100-statistics.health) + "%, " + health_color + " " + (100-statistics.health) + "%)";
let gradient = "linear-gradient(to " + side +", rgba(0,0,0,0) " + (100-statistics.health) + "%, " + health_gradient_left + " " + (100-statistics.health) + "%, " + health_gradient_right + " 100%)";`
from cs-go-observer-custom-hud.
Related Issues (20)
- No exe file HOT 1
- Money error
- Dont start up HOT 1
- CSS Grid and Flexbox not working when overlay is running
- The run file crash....... HOT 2
- "Found 0 vulnerabilities" and crash (run.bat file) HOT 1
- Error Message HOT 3
- Add support for ADR HOT 4
- Can't open overlay.exe HOT 1
- Vac issue and further HUD-generating feature request HOT 1
- Where is the .json file? HOT 8
- About Flashes HOT 1
- RUN crashed HOT 10
- Run file crash HOT 14
- OVERLAY DOWNLOAD cannot be downloaded. HOT 2
- How to change xray color? HOT 1
- Observed Player HOT 1
- Can't connect HOT 1
- Invalid Download Link HOT 1
- Admin Panel HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cs-go-observer-custom-hud.