-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create esx_hud #82
Create esx_hud #82
Changes from 20 commits
f5f59b4
2c494b8
1f22d98
8453b41
e05a912
0459935
3b0a7eb
46714a5
deccb93
a285842
381ffcb
8c97525
8483437
a04e2a1
550c060
a19ce69
6ef3212
33360fb
122e37f
36b4685
127400e
8af3b35
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
added the function of the stress icon and the drunk icon |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Config = { | ||
CVConfig = { | ||
Locale = GetConvar("esx:locale", "en"), -- If you want to change UI language texts you can do it here: web/src/assets/translate.json !!IMPORTANT that this can only be modified with the unbuilt version. | ||
Colors = { | ||
Info = { | ||
|
@@ -11,6 +11,8 @@ Config = { | |
armorBar = "blue", | ||
drinkBar = "lightblue", | ||
foodBar = "yellow", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where drunk bar? |
||
stressBar = "purple", | ||
drunkBar = "pink", | ||
}, | ||
Speedo = { | ||
["segment-color"] = "#eee", | ||
|
@@ -62,3 +64,9 @@ Config = { | |
PassengerSpeedo = false, -- if this true , you can see speedometer if you don't driver | ||
}, | ||
} | ||
Config = {} | ||
Config.Disable = { | ||
Status = false, | ||
Stress = true, -- Add this line | ||
Drunk = true -- Add this line | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,8 @@ const progressColors = { | |
foodBar: "yellow", | ||
oxygenBar: "green", | ||
staminaBar: "purple", | ||
stressBar: "orange", | ||
drunkBar: "pink" | ||
}; | ||
|
||
const vehDefaultData = { | ||
|
@@ -64,6 +66,8 @@ const progressLevels = { | |
foodBar: 80, | ||
oxygenBar: 100, | ||
staminaBar: 100, | ||
stressBar: 50, // Tambahkan nilai sesuai kebutuhan | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove comment, where drunkBar? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove comment please |
||
drunkBar: 0, // Nilai untuk kondisi pemain tidak mabuk | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove comment please |
||
}; | ||
|
||
const defaultIndicators = { | ||
|
@@ -128,6 +132,18 @@ const progressDefaultCircles = [ | |
color: "green", | ||
icon: StaminaIcon, | ||
}, | ||
{ | ||
name: "stressBar", | ||
progressLevel: 100, | ||
color: "orange", | ||
icon: StressIcon, // Pastikan Anda memiliki ikon untuk stress | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove comment There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove comment |
||
}, | ||
{ | ||
name: "drunkBar", | ||
progressLevel: 100, | ||
color: "purple", | ||
icon: DrunkIcon, // Pastikan Anda memiliki ikon untuk drunk | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove comment There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove comment |
||
}, | ||
]; | ||
|
||
const speedoDefaultColors = [ | ||
|
@@ -256,6 +272,14 @@ const allColors = { | |
name: "staminaBar", | ||
color: "purple", | ||
}, | ||
{ | ||
name: "stressBar", | ||
color: "orange", | ||
}, | ||
{ | ||
name: "drunkBar", | ||
color: "pink", | ||
}, | ||
], | ||
Speedo: [ | ||
{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,18 @@ const initialState = { | |
progressLevel: 100, | ||
color: "green", | ||
icon: StaminaIcon | ||
}, | ||
{ | ||
name: "stressBar", | ||
progressLevel: 100, | ||
color: "orange", | ||
icon: StressIcon // Pastikan Anda memiliki ikon untuk stress | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove comments There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove comments |
||
}, | ||
{ | ||
name: "drunkBar", | ||
progressLevel: 100, | ||
color: "purple", | ||
icon: DrunkIcon // Pastikan Anda memiliki ikon untuk drunk | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove comments There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove comments |
||
} | ||
], | ||
speedo:{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix please typo