From b1337881a88454e8f3bed8394c6c7caf04fa6209 Mon Sep 17 00:00:00 2001 From: hydrant Date: Thu, 22 Apr 2021 14:36:48 +0200 Subject: [PATCH] JS: Alle Dateien mit UTF8-BOM abgespeichert --- .editorconfig | 2 ++ ReallifeGamemode.Client/Business/cardealer.ts | 4 ++-- ReallifeGamemode.Client/CharCreator/data.ts | 2 +- ReallifeGamemode.Client/CharCreator/main.ts | 2 +- ReallifeGamemode.Client/Gui/Inventory/inventory.ts | 2 +- ReallifeGamemode.Client/Gui/Inventory/inventory_old.ts | 2 +- ReallifeGamemode.Client/Gui/playerlist.ts | 2 +- ReallifeGamemode.Client/Gui/taximeter.ts | 2 +- ReallifeGamemode.Client/Speedometer/index.ts | 2 +- ReallifeGamemode.Client/Tuning/colors.ts | 4 ++-- ReallifeGamemode.Client/Voice/main.ts | 2 +- ReallifeGamemode.Client/coloredhlights/index.ts | 2 +- ReallifeGamemode.Client/core/rage-mp/game.ts | 2 +- ReallifeGamemode.Client/core/rage-mp/ui.ts | 2 +- ReallifeGamemode.Client/index.ts | 2 +- ReallifeGamemode.Client/vehiclesync/smoothtrottle.ts | 2 +- ReallifeGamemode.Client/vehiclesync/vehiclesync.ts | 2 +- 17 files changed, 20 insertions(+), 18 deletions(-) diff --git a/.editorconfig b/.editorconfig index b42c8ea4..0fadfff1 100644 --- a/.editorconfig +++ b/.editorconfig @@ -122,3 +122,5 @@ csharp_preserve_single_line_blocks = true [*.vb] # Modifier preferences visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion +[*.js] +encoding=utf-8-bom \ No newline at end of file diff --git a/ReallifeGamemode.Client/Business/cardealer.ts b/ReallifeGamemode.Client/Business/cardealer.ts index b6667a31..ac1444c5 100644 --- a/ReallifeGamemode.Client/Business/cardealer.ts +++ b/ReallifeGamemode.Client/Business/cardealer.ts @@ -1,4 +1,4 @@ -import * as NativeUI from '../libs/NativeUI'; +import * as NativeUI from '../libs/NativeUI'; const Menu = NativeUI.Menu; const UIMenuItem = NativeUI.UIMenuItem; const UIMenuListItem = NativeUI.UIMenuListItem; @@ -62,7 +62,7 @@ export default function carDealer(globalData: IGlobalData) { shopMenu.AddItem(priceItem); var targetsCollection = new ItemsCollection(availableOptions); - var targetItem = new UIMenuListItem("Kaufen für", "Wähle den Besitzer aus", targetsCollection); + var targetItem = new UIMenuListItem("Kaufen für", "Wähle den Besitzer aus", targetsCollection); shopMenu.AddItem(targetItem); shopMenu.ListChange.on((item, index) => { diff --git a/ReallifeGamemode.Client/CharCreator/data.ts b/ReallifeGamemode.Client/CharCreator/data.ts index bb827216..83801bab 100644 --- a/ReallifeGamemode.Client/CharCreator/data.ts +++ b/ReallifeGamemode.Client/CharCreator/data.ts @@ -1,4 +1,4 @@ -const fathers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 42, 43, 44]; +const fathers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 42, 43, 44]; const mothers = [21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 45]; const fatherNames = ["Benjamin", "Daniel", "Joshua", "Noah", "Andrew", "Juan", "Alex", "Isaac", "Evan", "Ethan", "Vincent", "Angel", "Diego", "Adrian", "Gabriel", "Michael", "Santiago", "Kevin", "Louis", "Samuel", "Anthony", "Claude", "Niko", "John"]; const motherNames = ["Hannah", "Aubrey", "Jasmine", "Gisele", "Amelia", "Isabella", "Zoe", "Ava", "Camila", "Violet", "Sophia", "Evelyn", "Nicole", "Ashley", "Gracie", "Brianna", "Natalie", "Olivia", "Elizabeth", "Charlotte", "Emma", "Misty"]; diff --git a/ReallifeGamemode.Client/CharCreator/main.ts b/ReallifeGamemode.Client/CharCreator/main.ts index 1c79dc30..daee8540 100644 --- a/ReallifeGamemode.Client/CharCreator/main.ts +++ b/ReallifeGamemode.Client/CharCreator/main.ts @@ -1,4 +1,4 @@ -// shitcode will be better in the future +// shitcode will be better in the future // , \u00dc, \u00fc // , \u00c4, \u00e4 // , \u00d6, \u00f6 diff --git a/ReallifeGamemode.Client/Gui/Inventory/inventory.ts b/ReallifeGamemode.Client/Gui/Inventory/inventory.ts index afb9e735..22b3c8f2 100644 --- a/ReallifeGamemode.Client/Gui/Inventory/inventory.ts +++ b/ReallifeGamemode.Client/Gui/Inventory/inventory.ts @@ -1,4 +1,4 @@ -import InputHelper from '../../inputhelper'; +import InputHelper from '../../inputhelper'; export default function inventory(globalData: IGlobalData) { diff --git a/ReallifeGamemode.Client/Gui/Inventory/inventory_old.ts b/ReallifeGamemode.Client/Gui/Inventory/inventory_old.ts index 2f6deb02..97698e92 100644 --- a/ReallifeGamemode.Client/Gui/Inventory/inventory_old.ts +++ b/ReallifeGamemode.Client/Gui/Inventory/inventory_old.ts @@ -1,4 +1,4 @@ -import InputHelper from '../../inputhelper'; +import InputHelper from '../../inputhelper'; export default function inventory(globalData: IGlobalData) { var q; diff --git a/ReallifeGamemode.Client/Gui/playerlist.ts b/ReallifeGamemode.Client/Gui/playerlist.ts index 4fadec66..1d176cba 100644 --- a/ReallifeGamemode.Client/Gui/playerlist.ts +++ b/ReallifeGamemode.Client/Gui/playerlist.ts @@ -1,4 +1,4 @@ -/** +/** * @overview Life of German Reallife - Gui Playerlist playerlist.js * @author VegaZ. Siga. * @copyright (c) 2008 - 2018 Life of German diff --git a/ReallifeGamemode.Client/Gui/taximeter.ts b/ReallifeGamemode.Client/Gui/taximeter.ts index fe934bef..b807a298 100644 --- a/ReallifeGamemode.Client/Gui/taximeter.ts +++ b/ReallifeGamemode.Client/Gui/taximeter.ts @@ -1,4 +1,4 @@ -import InputHelper from '../inputhelper'; +import InputHelper from '../inputhelper'; let browser: BrowserMp; let price: Number; diff --git a/ReallifeGamemode.Client/Speedometer/index.ts b/ReallifeGamemode.Client/Speedometer/index.ts index a3926f4a..d6bad213 100644 --- a/ReallifeGamemode.Client/Speedometer/index.ts +++ b/ReallifeGamemode.Client/Speedometer/index.ts @@ -1,4 +1,4 @@ -let player = mp.players.local; +let player = mp.players.local; export default function speedometer(globalData: IGlobalData) { var dictLoaded = false; diff --git a/ReallifeGamemode.Client/Tuning/colors.ts b/ReallifeGamemode.Client/Tuning/colors.ts index 4b8ccefc..2f5533d6 100644 --- a/ReallifeGamemode.Client/Tuning/colors.ts +++ b/ReallifeGamemode.Client/Tuning/colors.ts @@ -1,4 +1,4 @@ -const vehicleColors = { +const vehicleColors = { "Klassisch (Util)": { "Schwarz": 15, "Silber": 18, @@ -126,7 +126,7 @@ const vehicleColors = { "Lila": 148, "Dunkellila": 149, "W\u00fcstenbraun": 153, - "W\u00fcstenbräune": 154 + "W\u00fcstenbr�une": 154 }, "Spezial": { "Geb\u00fcrsteter Stahl": 117, diff --git a/ReallifeGamemode.Client/Voice/main.ts b/ReallifeGamemode.Client/Voice/main.ts index eccf7c9d..8405046e 100644 --- a/ReallifeGamemode.Client/Voice/main.ts +++ b/ReallifeGamemode.Client/Voice/main.ts @@ -1,4 +1,4 @@ -/** +/** * @overview Life of German Reallife - Voice Main main.ts * @author Zeuto * @copyright (c) 2008 - 2019 Life of German diff --git a/ReallifeGamemode.Client/coloredhlights/index.ts b/ReallifeGamemode.Client/coloredhlights/index.ts index bfafcab5..97f95dc1 100644 --- a/ReallifeGamemode.Client/coloredhlights/index.ts +++ b/ReallifeGamemode.Client/coloredhlights/index.ts @@ -1,4 +1,4 @@ -export default function coloredHeadLights() { +export default function coloredHeadLights() { function setHeadlightsColor(vehicle, color) { if (typeof color !== "number" || isNaN(color) || color < 0 || color === 255) { // Disable diff --git a/ReallifeGamemode.Client/core/rage-mp/game.ts b/ReallifeGamemode.Client/core/rage-mp/game.ts index 5094ba9f..3afd421f 100644 --- a/ReallifeGamemode.Client/core/rage-mp/game.ts +++ b/ReallifeGamemode.Client/core/rage-mp/game.ts @@ -1,4 +1,4 @@ -import { IGame, IUi, IEvents, IPlayerPool, IVehiclePool, IEntityAttachmentPool } from "../../game"; +import { IGame, IUi, IEvents, IPlayerPool, IVehiclePool, IEntityAttachmentPool } from "../../game"; import RageEvents from "./events"; import RageUi from "./ui"; import { RagePlayerPool, RageVehiclePool, RageEntityAttachmentPool } from "./entities"; diff --git a/ReallifeGamemode.Client/core/rage-mp/ui.ts b/ReallifeGamemode.Client/core/rage-mp/ui.ts index 369e620d..bfe6a788 100644 --- a/ReallifeGamemode.Client/core/rage-mp/ui.ts +++ b/ReallifeGamemode.Client/core/rage-mp/ui.ts @@ -1,4 +1,4 @@ -import { IUi, IBrowser } from "../../game"; +import { IUi, IBrowser } from "../../game"; import { Menu } from "../../libs/NativeUI/index"; import { GlobalData } from "../.."; diff --git a/ReallifeGamemode.Client/index.ts b/ReallifeGamemode.Client/index.ts index 1632f768..64ab04de 100644 --- a/ReallifeGamemode.Client/index.ts +++ b/ReallifeGamemode.Client/index.ts @@ -1,4 +1,4 @@ -/** +/** * @overview Life of German Reallife - Login index.js * @author VegaZ, hydrant * @copyright (c) 2008 - 2018 Life of German diff --git a/ReallifeGamemode.Client/vehiclesync/smoothtrottle.ts b/ReallifeGamemode.Client/vehiclesync/smoothtrottle.ts index 884c1faa..9d5dc874 100644 --- a/ReallifeGamemode.Client/vehiclesync/smoothtrottle.ts +++ b/ReallifeGamemode.Client/vehiclesync/smoothtrottle.ts @@ -1,4 +1,4 @@ -//This script will make vehicles have smoother acceleration. +//This script will make vehicles have smoother acceleration. //To disable the script call an event and set "GlobalDisable" to true. //To disable individual sections, set "DisableAntiReverse" or "DisableSmoothThrottle" to true. diff --git a/ReallifeGamemode.Client/vehiclesync/vehiclesync.ts b/ReallifeGamemode.Client/vehiclesync/vehiclesync.ts index d30322da..461ea0fd 100644 --- a/ReallifeGamemode.Client/vehiclesync/vehiclesync.ts +++ b/ReallifeGamemode.Client/vehiclesync/vehiclesync.ts @@ -1,4 +1,4 @@ -import game from '../index'; +import game from '../index'; import { IVehicle, EntityType, IEntity, VehicleSeat, DoorState } from '../game'; import { parseJson } from '../util'; import { VehicleData } from '../game';