forked from billyvg/OverlayPlugin-themes
-
Notifications
You must be signed in to change notification settings - Fork 1
/
laiglinne-ff-crystalstyle_meter.html
163 lines (144 loc) · 5.56 KB
/
laiglinne-ff-crystalstyle_meter.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html>
<html lang="ko-kr">
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="./css/laiglinne-overlayskin/crystal_style.css">
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/0.12.7/vue.min.js"></script>
<script src="./lib/react.min.js"></script>
<script src="./lib/lodash.min.js"></script>
<script src="./app/laiglinne-overlayskin/rdmty.js"></script>
<script src="./js/laiglinne-overlayskin/setting.js"></script>
<script>
function onOverlayDataUpdate(e)
{
var start = new Date().getTime();
var details = e.detail;
React.render(
React.createElement(DamageMeter,
{
parseData: e.detail
}),
document.getElementById('container')
);
//console.log('rendered in ' + (+new Date() - start) + 'ms');
}
document.addEventListener('onOverlayDataUpdate', onOverlayDataUpdate);
document.addEventListener("onOverlayStateUpdate", function (e) {
if (!e.detail.isLocked) {
document.documentElement.classList.add("resizable");
} else {
document.documentElement.classList.remove("resizable");
}
});
window.addEventListener('message', function (e) {
if (e.data.type === 'onOverlayDataUpdate') {
onOverlayDataUpdate(e.data);
}
});
setInterval(function(){
//privbar(true);
//$("#blurcont").height($("#container").height()+12);
}, 50);
</script>
</head>
<body>
<div id="realcont">
<div id="blurcont">
</div>
<div id="containercase">
<div id="container">
◇ DPS Meter v2016.06.16<br>
Modify by Laiglinne - [KR] Altema
</div>
</div>
<div id="setainer" style="display:none; padding:10px; color:#FFF; z-index:99; position:absolute;">
<div class="setting_border"><span id="_displayMe">내 이름 표시</span> <input id="myname" type="checkbox" checked="checked" />
<input id="mynameval" type="text" value="나" /></div>
<div class="setting_border"><span id="_displayResize">크기조절 표시</span> <input type="checkbox" checked="checked" onclick="resizeview();" id="showresize"/></div>
<div class="setting_border"><span id="_displayName">미터기 닉네임 표시</span> <input id="showname" type="checkbox" checked="checked" onclick="goTab(currenttab + 1, $('#tab' + currenttab));"/></div>
</div>
<div id="bottomset">
<div class="chatloglikehandle settingcon" id="viewresize" style="border-bottom-right-radius:0px; float:right;">
</div>
<div class="chatloglikehandle" id="shg">
<div id="tab0" class="pcl handlecont selbg" onclick="goTab(1, $(this));"><div class="handlecont_in" id="_DPS">딜량</div></div>
<div id="tab1" class="pcl handlecont2" onclick="goTab(2, $(this));"><div class="handlecont_in handlecont_in2" id="_HPS">힐량</div></div>
<div id="tab2" class="pcl handlecont2" onclick="goTab(3, $(this));"><div class="handlecont_in handlecont_in2" id="_DMG">피격</div></div>
<div id="tab3" class="pcl handlecont2" onclick="goTab(4, $(this));"><div class="handlecont_in handlecont_in2" id="_accNCrit">기타</div></div>
</div>
<div class="chatloglikehandle settingcon" onclick="toggleset();">
<div class="settingcon_in"><div style="background:url(images/laiglinne-overlayskin/icon.png) no-repeat; background-position:3px 2px; width:20px; height:20px;" /></div>
</div>
</div>
</div>
<script>
var toggle = true;
var viewback = true;
var nicknameshow = true;
var currenttab = 0; // max 3
language_kr = setting.language;
$("input:checkbox[id='myname']").prop("checked", setting.useCustomName);
$("input:checkbox[id='showname']").prop("checked", setting.showPlayerName);
$("input:checkbox[id='showresize']").prop("checked", setting.showResize);
viewback = !setting.showResize;
resizeview();
$("#_DPS").html(languagepack.DPS[language_kr]);
$("#_HPS").html(languagepack.HPS[language_kr]);
$("#_DMG").html(languagepack.DMG[language_kr]);
$("#_accNCrit").html(languagepack.accNCrit[language_kr]);
$("#mynameval").val(languagepack.me[language_kr]);
$("#_displayMe").html(languagepack.displayMe[language_kr]);
$("#_displayResize").html(languagepack.displayResize[language_kr]);
$("#_displayName").html(languagepack.displayName[language_kr]);
$("#_acc").html(languagepack.acc[language_kr]);
$("#_dodge").html(languagepack.Dodge[language_kr]);
function privbar(bool)
{
if(bool == 1)
{
$(".self .bar-back").css("background", "rgb("+$("#cr").val()+","+$("#cg").val()+","+$("#cb").val()+")");
}
$("#privbar").css("background", "rgb("+$("#cr").val()+","+$("#cg").val()+","+$("#cb").val()+")");
}
function resizeview()
{
if(!viewback)
$("#viewresize").show();
else
$("#viewresize").hide();
viewback=!viewback;
}
function toggleset()
{
if(toggle)
{
$("#container").hide();
$("#setainer").show();
}
else
{
$("#container").show();
$("#setainer").hide();
}
toggle = !toggle;
}
function goTab(e, obj)
{
$(".chatloglikehandle .pcl").removeClass("selbg");
obj.addClass("selbg");
for(i=currenttab; i<4; i++)
$("#container").find(".chart-view-switcher").trigger("click");
for(i=0; i<e-1; i++)
$("#container").find(".chart-view-switcher").trigger("click");
currenttab = e-1;
}
function tmp()
{
$("#container").find(".chart-view-switcher").trigger("click");
$("#container").find(".chart-view-switcher").trigger("click");
}
</script>
</body>
</html>