Skip to content

Commit

Permalink
Change default skin Truck wearPercent output method
Browse files Browse the repository at this point in the history
  • Loading branch information
icaros7 committed Nov 6, 2018
1 parent 95cfea4 commit d5da978
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
5 changes: 4 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## ETS2 Telemetry 웹 서버 3.2.5.1 + 모바일 대시보드 한글 버전
## ETS2 Telemetry 웹 서버 3.2.5.2 + 모바일 대시보드 한글 버전

웹소켓과 REST API에 기반한 C#으로 작성된 [Euro Truck Simulator 2](http://www.eurotrucksimulator2.com/)[American Truck Simulator](http://www.americantrucksimulator.com/)를 위한 무료 Telemetry 웹 서버 입니다. 클라이언트쪽에선 최신 데스크탑과 모바일 브라우저에서 스킨을 씌울 수 있는 HTML5 모바일 대시보드 앱으로 구성됩니다. 또한 안드로이드 사용자의 경우 제공된 안드로이드 앱을 사용 할 수 있습니다만 한글화는 되지 않았습니다.

Expand Down Expand Up @@ -160,6 +160,9 @@ iOS 8.0 이상 기기(아이폰6이나 아이패드 에어 이후 기기)에서

## 버전 체인지로그

### 3.2.5.2
- 기본 스킨 트럭 손상도 표기 방식 변경 (변경 전 : 모든 부품 손상도 합계, 변경 후 : ETS2 표기와 동일하게 최대 값)

### 3.2.5.1
- 데스크탑 어플리케이션 레이아웃 개선
- 한글 작업 (추후 다른 언어를 위해 지역화 예정)
Expand Down
Binary file modified server/Ets2Telemetry.exe
Binary file not shown.
7 changes: 2 additions & 5 deletions server/Html/skins/default-mph/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,8 @@ Funbit.Ets.Telemetry.Dashboard.prototype.filter = function (data, utils) {
// convert rpm to rpm * 100
data.truck.engineRpm = data.truck.engineRpm / 100;
// calculate wear
var wearSumPercent = data.truck.wearEngine * 100 +
data.truck.wearTransmission * 100 +
data.truck.wearCabin * 100 +
data.truck.wearChassis * 100 +
data.truck.wearWheels * 100;
var wearSumList = [data.truck.wearEngine * 100, data.truck.wearTransmission * 100, data.truck.wearCabin * 100, data.truck.wearChassis * 100, data.truck.wearWheels * 100];
var wearSumPercent = Math.max.apply(null, wearSumList);
wearSumPercent = Math.min(wearSumPercent, 100);
data.truck.wearSum = Math.round(wearSumPercent) + '%';
data.trailer.wear = Math.round(data.trailer.wear * 100) + '%';
Expand Down
7 changes: 2 additions & 5 deletions server/Html/skins/default/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,8 @@ Funbit.Ets.Telemetry.Dashboard.prototype.filter = function (data, utils) {
// convert rpm to rpm * 100
data.truck.engineRpm = data.truck.engineRpm / 100;
// calculate wear
var wearSumPercent = data.truck.wearEngine * 100 +
data.truck.wearTransmission * 100 +
data.truck.wearCabin * 100 +
data.truck.wearChassis * 100 +
data.truck.wearWheels * 100;
var wearSumList = [data.truck.wearEngine * 100, data.truck.wearTransmission * 100, data.truck.wearCabin * 100, data.truck.wearChassis * 100, data.truck.wearWheels * 100];
var wearSumPercent = Math.max.apply(null, wearSumList);
wearSumPercent = Math.min(wearSumPercent, 100);
data.truck.wearSum = Math.round(wearSumPercent) + '%';
data.trailer.wear = Math.round(data.trailer.wear * 100) + '%';
Expand Down
4 changes: 2 additions & 2 deletions source/Funbit.Ets.Telemetry.Server/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.2.5.1")]
[assembly: AssemblyFileVersion("3.2.5.1")]
[assembly: AssemblyVersion("3.2.5.2")]
[assembly: AssemblyFileVersion("3.2.5.2")]

0 comments on commit d5da978

Please sign in to comment.