tongbu
parent
0b390adc1d
commit
1271eac1a4
|
|
@ -236,7 +236,7 @@ local function __fillRoomItem(self, index, item, room)
|
||||||
|
|
||||||
if p.hp then
|
if p.hp then
|
||||||
local str1="积分:"
|
local str1="积分:"
|
||||||
local hp=p.hp/1000
|
local hp=p.hp/100
|
||||||
p_head.text_score.text=str1..hp
|
p_head.text_score.text=str1..hp
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -237,8 +237,8 @@ end
|
||||||
|
|
||||||
|
|
||||||
function M:SetBank(totalHp,bankHp)
|
function M:SetBank(totalHp,bankHp)
|
||||||
self.playerJF.text=totalHp/1000
|
self.playerJF.text=totalHp/100
|
||||||
self.bankJF.text=bankHp/1000
|
self.bankJF.text=bankHp/100
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -224,12 +224,12 @@ end
|
||||||
|
|
||||||
-- 数据转换成3位小数 data to a decimal
|
-- 数据转换成3位小数 data to a decimal
|
||||||
function d2ad(data)
|
function d2ad(data)
|
||||||
return data / 1000
|
return data / 100
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 3位小数转换成数据 a decimal to data
|
-- 3位小数转换成数据 a decimal to data
|
||||||
function ad2d(decimal)
|
function ad2d(decimal)
|
||||||
return decimal * 1000
|
return decimal * 100
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 获取gps
|
-- 获取gps
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue