@nativewrappers/fivem 0.0.64 → 0.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Audio.d.ts +2 -2
- package/Blip.d.ts +2 -2
- package/Camera.d.ts +1 -1
- package/Game.d.ts +1 -1
- package/GameplayCamera.d.ts +1 -1
- package/Model.d.ts +1 -1
- package/ParticleEffect.d.ts +2 -2
- package/ParticleEffectAsset.d.ts +1 -1
- package/README.md +45 -0
- package/Raycast.d.ts +2 -2
- package/RelationshipGroup.d.ts +1 -1
- package/Tasks.d.ts +3 -3
- package/World.d.ts +2 -2
- package/cfx/StateBagChangeHandler.d.ts +1 -3
- package/common/Command.d.ts +30 -0
- package/common/Convar.d.ts +13 -0
- package/common/GlobalData.d.ts +8 -0
- package/common/Kvp.d.ts +69 -0
- package/common/Resource.d.ts +14 -0
- package/common/decors/Events.d.ts +54 -0
- package/common/index.d.ts +8 -0
- package/common/net/NetworkedMap.d.ts +28 -0
- package/common/types.d.ts +5 -0
- package/common/utils/ClassTypes.d.ts +11 -0
- package/common/utils/Color.d.ts +14 -0
- package/common/utils/Maths.d.ts +4 -0
- package/common/utils/PointF.d.ts +12 -0
- package/common/utils/Quaternion.d.ts +10 -0
- package/common/utils/Vector.d.ts +429 -0
- package/common/utils/Vector2.d.ts +1 -0
- package/common/utils/Vector3.d.ts +1 -0
- package/common/utils/Vector4.d.ts +1 -0
- package/common/utils/cleanPlayerName.d.ts +6 -0
- package/common/utils/enumValues.d.ts +12 -0
- package/{utils/getStringFromUInt8Array.js → common/utils/getStringFromUInt8Array.d.ts} +1 -3
- package/{utils/getUInt32FromUint8Array.js → common/utils/getUInt32FromUint8Array.d.ts} +1 -1
- package/common/utils/index.d.ts +12 -0
- package/index.d.ts +1 -1
- package/index.js +20136 -26
- package/interfaces/Dimensions.d.ts +1 -1
- package/models/BaseEntity.d.ts +3 -3
- package/models/Ped.d.ts +2 -2
- package/models/PedBone.d.ts +1 -1
- package/models/PedBoneCollection.d.ts +1 -1
- package/models/Player.d.ts +1 -1
- package/models/Vehicle.d.ts +2 -2
- package/models/VehicleDoor.d.ts +2 -2
- package/models/VehicleDoorCollection.d.ts +1 -1
- package/models/VehicleMod.d.ts +2 -2
- package/models/VehicleModCollection.d.ts +2 -2
- package/models/VehicleToggleMod.d.ts +2 -2
- package/models/VehicleWheel.d.ts +1 -1
- package/models/VehicleWheelCollection.d.ts +1 -1
- package/models/VehicleWindow.d.ts +2 -2
- package/models/VehicleWindowCollection.d.ts +1 -1
- package/package.json +6 -4
- package/ui/Container.d.ts +2 -2
- package/ui/Effects.d.ts +1 -1
- package/ui/Hud.d.ts +2 -2
- package/ui/InstructionalButtons.d.ts +1 -1
- package/ui/Rectangle.d.ts +2 -2
- package/ui/Scaleform.d.ts +1 -1
- package/ui/Screen.d.ts +1 -1
- package/ui/Text.d.ts +1 -1
- package/ui/interfaces/IButton.d.ts +1 -1
- package/ui/interfaces/IDrawable.d.ts +1 -1
- package/ui/menu/items/UIMenuItem.d.ts +1 -1
- package/ui/menu/items/UIMenuListItem.d.ts +1 -1
- package/ui/menu/items/panels/AbstractUIMenuPanel.d.ts +2 -2
- package/ui/menu/items/panels/UIMenuStatisticsPanel.d.ts +1 -1
- package/utils/LiteEvent.d.ts +2 -6
- package/utils/index.d.ts +1 -1
- package/weapon/DlcWeaponData.d.ts +1 -1
- package/weapon/Weapon.d.ts +7 -7
- package/weapon/WeaponAsset.d.ts +1 -1
- package/weapon/WeaponCollection.d.ts +2 -2
- package/weaponComponent/DlcWeaponComponentData.d.ts +1 -1
- package/weaponComponent/InvalidWeaponComponent.d.ts +1 -1
- package/weaponComponent/WeaponComponent.d.ts +3 -3
- package/weaponComponent/WeaponComponentCollection.d.ts +3 -3
- package/Audio.js +0 -93
- package/Blip.js +0 -105
- package/Camera.js +0 -162
- package/Checkpoint.js +0 -43
- package/Events.js +0 -74
- package/Game.js +0 -474
- package/GameplayCamera.js +0 -141
- package/Model.js +0 -213
- package/NetworkedScene.js +0 -18
- package/ParticleEffect.js +0 -123
- package/ParticleEffectAsset.js +0 -105
- package/Pickup.js +0 -19
- package/Raycast.js +0 -123
- package/RelationshipGroup.js +0 -67
- package/Rope.js +0 -129
- package/TaskSequence.js +0 -48
- package/Tasks.js +0 -241
- package/World.js +0 -765
- package/cfx/StateBagChangeHandler.js +0 -1
- package/cfx/index.js +0 -1
- package/enums/Alignment.js +0 -6
- package/enums/AnimationFlags.js +0 -35
- package/enums/AudioFlag.js +0 -38
- package/enums/BadgeStyle.js +0 -183
- package/enums/Blip.js +0 -225
- package/enums/Bone.js +0 -103
- package/enums/CameraShake.js +0 -14
- package/enums/CameraTypes.js +0 -8
- package/enums/CheckboxStyle.js +0 -5
- package/enums/Checkpoint.js +0 -67
- package/enums/CloudHat.js +0 -27
- package/enums/Control.js +0 -361
- package/enums/CursorSprite.js +0 -15
- package/enums/Driving.js +0 -34
- package/enums/ExplosionType.js +0 -45
- package/enums/FiringPattern.js +0 -20
- package/enums/Font.js +0 -8
- package/enums/ForceType.js +0 -9
- package/enums/Gender.js +0 -5
- package/enums/HelmetType.js +0 -6
- package/enums/HudColor.js +0 -184
- package/enums/HudComponent.js +0 -54
- package/enums/InputMode.js +0 -5
- package/enums/InvertAxis.js +0 -7
- package/enums/Language.js +0 -15
- package/enums/LeaveVehicleFlags.js +0 -11
- package/enums/LoadingSpinnerType.js +0 -8
- package/enums/MarkerType.js +0 -50
- package/enums/MenuAlignment.js +0 -5
- package/enums/NotificationType.js +0 -11
- package/enums/Parachute.js +0 -15
- package/enums/PickupType.js +0 -74
- package/enums/RadioStation.js +0 -25
- package/enums/RagdollType.js +0 -7
- package/enums/RaycastEnums.js +0 -32
- package/enums/Relationship.js +0 -10
- package/enums/RopeType.js +0 -6
- package/enums/ScreenEffect.js +0 -84
- package/enums/SpeechModifier.js +0 -40
- package/enums/Vehicle.js +0 -376
- package/enums/Weather.js +0 -22
- package/enums/ZoneID.js +0 -95
- package/enums/index.js +0 -42
- package/hashes/MaterialHash.js +0 -217
- package/hashes/PedHash.js +0 -725
- package/hashes/VehicleHash.js +0 -523
- package/hashes/WeaponHash.js +0 -161
- package/hashes/WeatherTypeHash.js +0 -22
- package/hashes/index.js +0 -5
- package/interfaces/Dimensions.js +0 -1
- package/models/BaseEntity.js +0 -477
- package/models/Entity.js +0 -25
- package/models/EntityBone.js +0 -26
- package/models/EntityBoneCollection.js +0 -18
- package/models/Ped.js +0 -692
- package/models/PedBone.js +0 -9
- package/models/PedBoneCollection.js +0 -21
- package/models/Player.js +0 -186
- package/models/Prop.js +0 -26
- package/models/Vehicle.js +0 -576
- package/models/VehicleDoor.js +0 -44
- package/models/VehicleDoorCollection.js +0 -62
- package/models/VehicleMod.js +0 -35
- package/models/VehicleModCollection.js +0 -227
- package/models/VehicleToggleMod.js +0 -29
- package/models/VehicleWheel.js +0 -23
- package/models/VehicleWheelCollection.js +0 -57
- package/models/VehicleWindow.js +0 -35
- package/models/VehicleWindowCollection.js +0 -57
- package/models/index.js +0 -19
- package/ui/Container.js +0 -31
- package/ui/Effects.js +0 -106
- package/ui/Fading.js +0 -69
- package/ui/Hud.js +0 -39
- package/ui/InstructionalButtons.js +0 -54
- package/ui/LoadingPrompt.js +0 -45
- package/ui/Notification.js +0 -9
- package/ui/Rectangle.js +0 -40
- package/ui/Scaleform.js +0 -236
- package/ui/Screen.js +0 -72
- package/ui/Sprite.js +0 -60
- package/ui/Text.js +0 -115
- package/ui/Timerbar.js +0 -248
- package/ui/index.js +0 -15
- package/ui/interfaces/IButton.js +0 -1
- package/ui/interfaces/IDrawable.js +0 -1
- package/ui/interfaces/index.js +0 -1
- package/ui/menu/Menu.js +0 -831
- package/ui/menu/MenuControl.js +0 -12
- package/ui/menu/MenuControls.js +0 -9
- package/ui/menu/MenuSettings.js +0 -54
- package/ui/menu/index.js +0 -6
- package/ui/menu/items/UIMenuCheckboxItem.js +0 -59
- package/ui/menu/items/UIMenuItem.js +0 -1111
- package/ui/menu/items/UIMenuListItem.js +0 -119
- package/ui/menu/items/UIMenuSeparatorItem.js +0 -29
- package/ui/menu/items/UIMenuSliderItem.js +0 -191
- package/ui/menu/items/index.js +0 -6
- package/ui/menu/items/panels/AbstractUIMenuPanel.js +0 -44
- package/ui/menu/items/panels/UIMenuColorPanel.js +0 -217
- package/ui/menu/items/panels/UIMenuGridPanel.js +0 -261
- package/ui/menu/items/panels/UIMenuPercentagePanel.js +0 -124
- package/ui/menu/items/panels/UIMenuStatisticsPanel.js +0 -79
- package/ui/menu/items/panels/UIMenuStatisticsPanelItem.js +0 -35
- package/ui/menu/items/panels/index.js +0 -6
- package/ui/menu/modules/ListItem.js +0 -10
- package/ui/menu/modules/index.js +0 -1
- package/utils/Animations.js +0 -55
- package/utils/Crypto.js +0 -25
- package/utils/LiteEvent.js +0 -19
- package/utils/Maths.js +0 -10
- package/utils/Point.js +0 -30
- package/utils/PointF.js +0 -14
- package/utils/Quaternion.js +0 -27
- package/utils/Size.js +0 -8
- package/utils/String.js +0 -25
- package/utils/enumValues.js +0 -14
- package/utils/index.js +0 -9
- package/weapon/DlcWeaponData.js +0 -44
- package/weapon/Mk2WeaponHash.js +0 -25
- package/weapon/Weapon.js +0 -270
- package/weapon/WeaponAsset.js +0 -84
- package/weapon/WeaponCollection.js +0 -187
- package/weapon/WeaponDisplayNameByHash.js +0 -75
- package/weapon/WeaponGroup.js +0 -19
- package/weapon/WeaponHudStats.js +0 -38
- package/weapon/WeaponLivery.js +0 -14
- package/weapon/WeaponLiveryColor.js +0 -35
- package/weapon/WeaponTint.js +0 -43
- package/weapon/index.js +0 -8
- package/weaponComponent/ComponentAttachmentPoint.js +0 -19
- package/weaponComponent/ComponentAttachmentPointByHash.js +0 -573
- package/weaponComponent/ComponentDisplayNameByHash.js +0 -280
- package/weaponComponent/DlcWeaponComponentData.js +0 -44
- package/weaponComponent/InvalidWeaponComponent.js +0 -28
- package/weaponComponent/WeaponComponent.js +0 -123
- package/weaponComponent/WeaponComponentCollection.js +0 -174
- package/weaponComponent/WeaponComponentHash.js +0 -887
- package/weaponComponent/WeaponComponentHashesByWeaponHash.js +0 -829
- package/weaponComponent/WeaponComponentHudStats.js +0 -34
- package/weaponComponent/index.js +0 -5
package/ui/Timerbar.js
DELETED
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
import { HudComponent } from "../enums";
|
|
2
|
-
import { Color, Point, Size } from "../utils";
|
|
3
|
-
import { Hud } from "./Hud";
|
|
4
|
-
import { LoadingPrompt } from "./LoadingPrompt";
|
|
5
|
-
import { Screen } from "./Screen";
|
|
6
|
-
import { Sprite } from "./Sprite";
|
|
7
|
-
/** @internal */
|
|
8
|
-
const activeTimerBars = [];
|
|
9
|
-
/** @internal */
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
|
-
const drawText = (text, position, options) => {
|
|
12
|
-
options = {
|
|
13
|
-
...{
|
|
14
|
-
align: 1,
|
|
15
|
-
color: [255, 255, 255, 255],
|
|
16
|
-
font: 4,
|
|
17
|
-
outline: true,
|
|
18
|
-
scale: 0.3,
|
|
19
|
-
shadow: true,
|
|
20
|
-
},
|
|
21
|
-
...options,
|
|
22
|
-
};
|
|
23
|
-
const font = options.font;
|
|
24
|
-
const scale = options.scale;
|
|
25
|
-
const outline = options.outline;
|
|
26
|
-
const shadow = options.shadow;
|
|
27
|
-
const color = options.color;
|
|
28
|
-
const align = options.align;
|
|
29
|
-
SetTextEntry("CELL_EMAIL_BCON");
|
|
30
|
-
for (let i = 0; i < text.length; i += 99) {
|
|
31
|
-
const subStringText = text.substr(i, Math.min(99, text.length - i));
|
|
32
|
-
AddTextComponentSubstringPlayerName(subStringText);
|
|
33
|
-
}
|
|
34
|
-
SetTextFont(font);
|
|
35
|
-
SetTextScale(scale, scale);
|
|
36
|
-
SetTextColour(color[0], color[1], color[2], color[3]);
|
|
37
|
-
if (shadow) {
|
|
38
|
-
SetTextDropShadow();
|
|
39
|
-
}
|
|
40
|
-
if (outline) {
|
|
41
|
-
SetTextOutline();
|
|
42
|
-
}
|
|
43
|
-
switch (align) {
|
|
44
|
-
case 1: {
|
|
45
|
-
SetTextCentre(true);
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
case 2: {
|
|
49
|
-
SetTextRightJustify(true);
|
|
50
|
-
SetTextWrap(0.0, position[0] || 0);
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
DrawText(position[0] || 0, position[1] || 0);
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Create a Timerbar. It's automatically added to the internal Timerbar array and drawn in a FIFO (first in, first out) way.
|
|
58
|
-
*
|
|
59
|
-
* ```typescript
|
|
60
|
-
* // Create simple Timerbar
|
|
61
|
-
* const myTimerbar = new Cfx.Timerbar("Hello");
|
|
62
|
-
* myTimerbar.Text = "World";
|
|
63
|
-
*
|
|
64
|
-
* // Disable Timerbar later on
|
|
65
|
-
* myTimerbar.Visible = false;
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
|
-
export class Timerbar {
|
|
69
|
-
sprite;
|
|
70
|
-
title = "";
|
|
71
|
-
text = "";
|
|
72
|
-
useProgressBar = false;
|
|
73
|
-
usePlayerStyle = false;
|
|
74
|
-
isVisible = false;
|
|
75
|
-
pbarValue = 0.0;
|
|
76
|
-
textColor = [240, 240, 240, 255];
|
|
77
|
-
pbarBgColor = [155, 155, 155, 255];
|
|
78
|
-
pbarFgColor = [255, 255, 255, 255];
|
|
79
|
-
constructor(title, useProgressBar = false) {
|
|
80
|
-
this.title = title;
|
|
81
|
-
this.useProgressBar = useProgressBar;
|
|
82
|
-
this.text = "";
|
|
83
|
-
this.pbarValue = 0.0;
|
|
84
|
-
this.textColor = [240, 240, 240, 255];
|
|
85
|
-
this.pbarBgColor = [155, 155, 155, 255];
|
|
86
|
-
this.pbarFgColor = [255, 255, 255, 255];
|
|
87
|
-
this.usePlayerStyle = false;
|
|
88
|
-
const safeZone = GetSafeZoneSize();
|
|
89
|
-
const safeZoneX = (1.0 - safeZone) * 0.5;
|
|
90
|
-
const safeZoneY = (1.0 - safeZone) * 0.5;
|
|
91
|
-
this.sprite = new Sprite("timerbars", "all_black_bg", new Point(Screen.ScaledWidth * 0.918 - safeZoneX, Screen.Height * 0.984 - safeZoneY), new Size(Screen.ScaledWidth * 0.165, Screen.Height * 0.035), 0, new Color(255, 255, 255, 160));
|
|
92
|
-
if (!this.sprite.IsTextureDictionaryLoaded) {
|
|
93
|
-
this.sprite.loadTextureDictionary();
|
|
94
|
-
}
|
|
95
|
-
this.isVisible = true;
|
|
96
|
-
activeTimerBars.push(this);
|
|
97
|
-
}
|
|
98
|
-
get Title() {
|
|
99
|
-
return this.title;
|
|
100
|
-
}
|
|
101
|
-
set Title(value) {
|
|
102
|
-
this.title = value;
|
|
103
|
-
}
|
|
104
|
-
get Text() {
|
|
105
|
-
return this.text;
|
|
106
|
-
}
|
|
107
|
-
set Text(value) {
|
|
108
|
-
this.text = value;
|
|
109
|
-
}
|
|
110
|
-
get UseProgressBar() {
|
|
111
|
-
return this.useProgressBar;
|
|
112
|
-
}
|
|
113
|
-
get Progress() {
|
|
114
|
-
return this.pbarValue;
|
|
115
|
-
}
|
|
116
|
-
set Progress(value) {
|
|
117
|
-
this.pbarValue = value <= 0.0 ? 0.0 : value >= 1.0 ? 1.0 : value;
|
|
118
|
-
}
|
|
119
|
-
get Visible() {
|
|
120
|
-
return this.isVisible;
|
|
121
|
-
}
|
|
122
|
-
set Visible(value) {
|
|
123
|
-
const idx = activeTimerBars.indexOf(this);
|
|
124
|
-
if (value) {
|
|
125
|
-
if (idx !== -1) {
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
activeTimerBars.push(this);
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
if (idx === -1) {
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
activeTimerBars.splice(idx, 1);
|
|
135
|
-
}
|
|
136
|
-
this.isVisible = value;
|
|
137
|
-
}
|
|
138
|
-
get TextColor() {
|
|
139
|
-
return this.textColor;
|
|
140
|
-
}
|
|
141
|
-
set TextColor(value) {
|
|
142
|
-
if (Array.isArray(value)) {
|
|
143
|
-
this.textColor = value;
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
const result = GetHudColour(value);
|
|
147
|
-
this.textColor = [result[0], result[1], result[2], result[3]];
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
get ProgressbarBgColor() {
|
|
151
|
-
return this.pbarBgColor;
|
|
152
|
-
}
|
|
153
|
-
set ProgressbarBgColor(value) {
|
|
154
|
-
if (Array.isArray(value)) {
|
|
155
|
-
this.pbarBgColor = value;
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
const result = GetHudColour(value);
|
|
159
|
-
this.pbarBgColor = [result[0], result[1], result[2], result[3]];
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
get ProgressbarFgColor() {
|
|
163
|
-
return this.pbarFgColor;
|
|
164
|
-
}
|
|
165
|
-
set ProgressbarFgColor(value) {
|
|
166
|
-
if (Array.isArray(value)) {
|
|
167
|
-
this.pbarFgColor = value;
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
const result = GetHudColour(value);
|
|
171
|
-
this.pbarFgColor = [result[0], result[1], result[2], result[3]];
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
set PlayerStyle(value) {
|
|
175
|
-
this.usePlayerStyle = value;
|
|
176
|
-
}
|
|
177
|
-
get PlayerStyle() {
|
|
178
|
-
return this.usePlayerStyle;
|
|
179
|
-
}
|
|
180
|
-
get Sprite() {
|
|
181
|
-
return this.sprite;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
setTick(() => {
|
|
185
|
-
if (activeTimerBars.length <= 0) {
|
|
186
|
-
return;
|
|
187
|
-
}
|
|
188
|
-
const safeZone = GetSafeZoneSize();
|
|
189
|
-
const safeZoneX = (1.0 - safeZone) * 0.5;
|
|
190
|
-
const safeZoneY = (1.0 - safeZone) * 0.5;
|
|
191
|
-
Hud.hideComponentThisFrame(HudComponent.AreaName);
|
|
192
|
-
Hud.hideComponentThisFrame(HudComponent.StreetName);
|
|
193
|
-
let loadingPromptOffset = 0;
|
|
194
|
-
if (LoadingPrompt.IsActive) {
|
|
195
|
-
loadingPromptOffset = 0.035 + 0.035 * 0.038 * 2;
|
|
196
|
-
}
|
|
197
|
-
activeTimerBars.forEach((timerbar) => {
|
|
198
|
-
const drawY = 0.984 -
|
|
199
|
-
loadingPromptOffset -
|
|
200
|
-
safeZoneY -
|
|
201
|
-
activeTimerBars.indexOf(timerbar) * 0.038;
|
|
202
|
-
DrawSprite("timerbars", "all_black_bg", 0.918 - safeZoneX, drawY, 0.165, 0.035, 0.0, 255, 255, 255, 160);
|
|
203
|
-
drawText(timerbar.Title, [
|
|
204
|
-
0.918 - safeZoneX + 0.012,
|
|
205
|
-
drawY - 0.009 - (timerbar.PlayerStyle ? 0.00625 : 0),
|
|
206
|
-
], {
|
|
207
|
-
align: 2,
|
|
208
|
-
color: timerbar.TextColor,
|
|
209
|
-
font: timerbar.PlayerStyle ? 4 : 0,
|
|
210
|
-
outline: false,
|
|
211
|
-
scale: timerbar.PlayerStyle ? 0.465 : 0.3,
|
|
212
|
-
shadow: timerbar.PlayerStyle,
|
|
213
|
-
});
|
|
214
|
-
if (timerbar.UseProgressBar) {
|
|
215
|
-
const pbarX = 0.918 - safeZoneX + 0.047;
|
|
216
|
-
const pbarY = drawY + 0.0015;
|
|
217
|
-
const width = 0.0616 * timerbar.Progress;
|
|
218
|
-
DrawRect(pbarX, pbarY, 0.0616, 0.0105, typeof timerbar.ProgressbarBgColor === "number"
|
|
219
|
-
? timerbar.ProgressbarBgColor
|
|
220
|
-
: timerbar.ProgressbarBgColor[0], typeof timerbar.ProgressbarBgColor === "number"
|
|
221
|
-
? timerbar.ProgressbarBgColor
|
|
222
|
-
: timerbar.ProgressbarBgColor[1], typeof timerbar.ProgressbarBgColor === "number"
|
|
223
|
-
? timerbar.ProgressbarBgColor
|
|
224
|
-
: timerbar.ProgressbarBgColor[2], typeof timerbar.ProgressbarBgColor === "number"
|
|
225
|
-
? timerbar.ProgressbarBgColor
|
|
226
|
-
: timerbar.ProgressbarBgColor[3]);
|
|
227
|
-
DrawRect(pbarX - 0.0616 / 2 + width / 2, pbarY, width, 0.0105, typeof timerbar.ProgressbarFgColor === "number"
|
|
228
|
-
? timerbar.ProgressbarFgColor
|
|
229
|
-
: timerbar.ProgressbarFgColor[0], typeof timerbar.ProgressbarFgColor === "number"
|
|
230
|
-
? timerbar.ProgressbarFgColor
|
|
231
|
-
: timerbar.ProgressbarFgColor[1], typeof timerbar.ProgressbarFgColor === "number"
|
|
232
|
-
? timerbar.ProgressbarFgColor
|
|
233
|
-
: timerbar.ProgressbarFgColor[2], typeof timerbar.ProgressbarFgColor === "number"
|
|
234
|
-
? timerbar.ProgressbarFgColor
|
|
235
|
-
: timerbar.ProgressbarFgColor[3]);
|
|
236
|
-
}
|
|
237
|
-
else {
|
|
238
|
-
drawText(timerbar.Text, [0.918 - safeZoneX + 0.0785, drawY + -0.0165], {
|
|
239
|
-
align: 2,
|
|
240
|
-
color: timerbar.TextColor,
|
|
241
|
-
font: 0,
|
|
242
|
-
outline: false,
|
|
243
|
-
scale: 0.425,
|
|
244
|
-
shadow: false,
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
|
-
});
|
package/ui/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export * from "./interfaces";
|
|
2
|
-
export { Rectangle } from "./Rectangle";
|
|
3
|
-
export { Container } from "./Container";
|
|
4
|
-
export { Effects } from "./Effects";
|
|
5
|
-
export { Fading } from "./Fading";
|
|
6
|
-
export { Hud } from "./Hud";
|
|
7
|
-
export { InstructionalButtons } from "./InstructionalButtons";
|
|
8
|
-
export { LoadingPrompt } from "./LoadingPrompt";
|
|
9
|
-
export { Notification } from "./Notification";
|
|
10
|
-
export { Scaleform } from "./Scaleform";
|
|
11
|
-
export { Screen } from "./Screen";
|
|
12
|
-
export { Sprite } from "./Sprite";
|
|
13
|
-
export { Text } from "./Text";
|
|
14
|
-
export { Timerbar } from "./Timerbar";
|
|
15
|
-
export * from "./menu";
|
package/ui/interfaces/IButton.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/ui/interfaces/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|