11111
This commit is contained in:
@@ -4,48 +4,7 @@
|
||||
创建日期:2024-08-31 10:32
|
||||
文件用途:秒伤统计
|
||||
*/
|
||||
//大数字
|
||||
class longlong {
|
||||
Value = null;
|
||||
//构造函数 不管是不是string类型都要转成string类型
|
||||
constructor(StrValue) {
|
||||
Value = StrValue.tostring();
|
||||
}
|
||||
|
||||
function _add(other) {
|
||||
return longlong(L_sq_LongLongOperation(this.Value, other.Value, "+"));
|
||||
}
|
||||
|
||||
function _sub(other) {
|
||||
return longlong(L_sq_LongLongOperation(this.Value, other.Value, "-"));
|
||||
}
|
||||
|
||||
function _mul(other) {
|
||||
return longlong(L_sq_LongLongOperation(this.Value, other.Value, "*"));
|
||||
}
|
||||
|
||||
function _div(other) {
|
||||
return L_sq_LongLongOperation(this.Value, other.Value, "/");
|
||||
}
|
||||
|
||||
function _unm() {
|
||||
return longlong(L_sq_LongLongOperation(longlong("0"), this.Value, "-"));
|
||||
}
|
||||
|
||||
function _modulo(other) {
|
||||
return longlong(L_sq_LongLongOperation(this.Value, other.Value, "%"));
|
||||
}
|
||||
|
||||
function GetFormat(FType) {
|
||||
local Buf = L_sq_LongLongOperation(this.Value, FType, "format");
|
||||
if (Buf.len()< 2) return Buf + ".0";
|
||||
local Value = Buf.slice(0, -1);
|
||||
local Unit = Buf.slice(-1);
|
||||
local RetStr = format(FType + Unit, Value.tofloat());
|
||||
return RetStr;
|
||||
}
|
||||
|
||||
}
|
||||
class DamagePerSecondC extends LenheartNewUI_Windows {
|
||||
//调试模式
|
||||
// DeBugMode = true;
|
||||
@@ -93,27 +52,6 @@ class DamagePerSecondC extends LenheartNewUI_Windows {
|
||||
Childrens = [];
|
||||
DamagePerSecondList = {};
|
||||
|
||||
// DamagePerSecondList.rawset(0, {
|
||||
// Name = "测试1",
|
||||
// Damage = longlong("3002132000321100000")
|
||||
// });
|
||||
// DamagePerSecondList.rawset(1, {
|
||||
// Name = "测试2",
|
||||
// Damage = longlong("2002313000012310000")
|
||||
// });
|
||||
// DamagePerSecondList.rawset(2, {
|
||||
// Name = "测试3",
|
||||
// Damage = longlong("10000012121300000")
|
||||
// });
|
||||
// DamagePerSecondList.rawset(3, {
|
||||
// Name = "测试4",
|
||||
// Damage = longlong("1500012313000000")
|
||||
// });
|
||||
|
||||
// foreach(Oii in DamagePerSecondList) {
|
||||
// TotalDamage += Oii.Damage;
|
||||
// }
|
||||
|
||||
//注册控件
|
||||
RegisterWidget();
|
||||
|
||||
|
||||
BIN
Project/DamagePerSecond/img/0.png
Normal file
BIN
Project/DamagePerSecond/img/0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 190 KiB |
BIN
Project/DamagePerSecond/img/1.png
Normal file
BIN
Project/DamagePerSecond/img/1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 82 KiB |
Reference in New Issue
Block a user