From 4e78d137dfe2dcd60e6dc8c83ad7d9dcc841a770 Mon Sep 17 00:00:00 2001 From: woohoo Date: Wed, 22 Dec 2021 01:30:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=9C=A3=E8=AF=9E?= =?UTF-8?q?=E5=B0=8F=E9=95=87=E6=9C=89=E6=8E=89=E8=90=BD=E7=89=A9=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E9=A2=9C=E8=89=B2=E6=B8=90=E5=8F=98=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- torn-trans-zhcn.user.js | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/torn-trans-zhcn.user.js b/torn-trans-zhcn.user.js index 09a5df0..7bd22ae 100644 --- a/torn-trans-zhcn.user.js +++ b/torn-trans-zhcn.user.js @@ -1,8 +1,8 @@ // ==UserScript== -// @lastmodified 202112212145 +// @lastmodified 202112220130 // @name Torn翻译 // @namespace WOOH -// @version 0.1.1221b +// @version 0.1.1222a // @description Torn UI翻译 // @author Woohoo-[2687093] sabrina_devil[2696209] // @match https://www.torn.com/* @@ -23,6 +23,11 @@ todo: true, cont: `baza npc商店 imarket及imarket搜索结果`, }, + { + ver: '0.1.1222a', + date: '20211222', + cont: `添加了圣诞小镇有掉落物时的颜色渐变效果`, + }, { ver: '0.1.1221b', date: '20211221', @@ -1215,6 +1220,7 @@ '{$} is currently traveling': '{$} 目前正在飞行', '{$} has no items in their bazaar': '{$} 的集市上没有物品', 'View {$}\'s bazaar': '{$} 的集市上没有物品', + '{$} is currently in hospital': '{$} 在住院中', 'Place a bounty on {$}': '悬赏 {$}', 'Report {$} to staff': '向 Torn City 工作人员举报 {$}', 'Attack {$}': '攻击 {$}', @@ -5470,13 +5476,19 @@ margin: 0 0 3px; if (!$wh_loot_container) { const insert_html = `
附近物品
-
+
物品
箱子
-
`; +
+`; $($city_wrapper).before(insert_html); } let item_list = []; @@ -5516,7 +5528,12 @@ margin: 0 0 3px; } }); $root.querySelector('#wh-loot-item-count').innerText = `(${item_count})`; - if (item_count === 0) $wh_loot_container_items.innerText = `暂无`; + if (item_count === 0) { + $wh_loot_container_items.innerText = `暂无`; + $root.querySelector('#wh-loot-container-main').style.animation =''; + } else { + $root.querySelector('#wh-loot-container-main').style.animation = 'lootFoundAlert 2s infinite'; + } $root.querySelector('#wh-loot-chest-count').innerText = `(${chest_count})`; if (chest_count === 0) $wh_loot_container_chests.innerText = `暂无`; }