design fixes
This commit is contained in:
parent
e0266e41d5
commit
a37ca65d00
@ -5,5 +5,6 @@ public enum DialogButtonColor {
|
|||||||
RED,
|
RED,
|
||||||
BLUE,
|
BLUE,
|
||||||
PURPLE,
|
PURPLE,
|
||||||
YELLOW
|
YELLOW,
|
||||||
|
GREY
|
||||||
}
|
}
|
||||||
|
@ -279,11 +279,10 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn_string {
|
.btn_string {
|
||||||
|
width: 100%;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
padding-left:5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#cell_descr {
|
#cell_descr {
|
||||||
z-index:100;
|
z-index:100;
|
||||||
border-radius:10px;
|
border-radius:10px;
|
||||||
@ -379,7 +378,7 @@ body {
|
|||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: white;
|
color: white;
|
||||||
width: 220px;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 6px 4px;
|
padding: 6px 4px;
|
||||||
margin: 6px;
|
margin: 6px;
|
||||||
|
@ -177,12 +177,11 @@ function showDialog(body) {
|
|||||||
let html_btns = '';
|
let html_btns = '';
|
||||||
for(let i = 0; i < btns.length; i++) {
|
for(let i = 0; i < btns.length; i++) {
|
||||||
let btn = btns[i];
|
let btn = btns[i];
|
||||||
html_btns += '<div id="buybtn" onclick="actionButtonClicked(\''+btoa(JSON.stringify(btn.onclickAction))+'\')" class="btn '+btn.buttonColor.toLowerCase()+'">'+btn.buttonText+'</div>';
|
html_btns += '<div onclick="actionButtonClicked(\''+btoa(JSON.stringify(btn.onclickAction))+'\')" class="btn '+btn.buttonColor.toLowerCase()+'">'+btn.buttonText+'</div>';
|
||||||
}
|
}
|
||||||
$("#twobtns").html(html_btns);
|
$("#twobtns").html(html_btns);
|
||||||
}
|
}
|
||||||
$("#dialog").css("display", "");
|
$("#dialog").css("display", "");
|
||||||
$("#onebtn").css("display", "none");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function playerColor(body) {
|
function playerColor(body) {
|
||||||
|
@ -127,12 +127,7 @@
|
|||||||
<div style="display: none;" id="dialog" class="dialogturn">
|
<div style="display: none;" id="dialog" class="dialogturn">
|
||||||
<p id="dialog_title">Покупаем?</p>
|
<p id="dialog_title">Покупаем?</p>
|
||||||
<p id="dialog_desc">Lorem ipsum dolor sit amet...</p></br>
|
<p id="dialog_desc">Lorem ipsum dolor sit amet...</p></br>
|
||||||
<div class="btn_string" id="twobtns">
|
<div class="btn_string" id="twobtns"></div>
|
||||||
<div id="buybtn" onClick="leftBtnClicked(this)" class="btn green">Купить за 1,000k</div><div id="ignorebtn" onClick="rightBtnClicked()" class="btn grey">На аукцион</div>
|
|
||||||
</div>
|
|
||||||
<div class="btn_string" id="onebtn">
|
|
||||||
<div class="btn_long green" onClick="centerBtnClicked()" id="ogbtn">Купить за 1,000k</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- style="top:270px;left:400px" -->
|
<!-- style="top:270px;left:400px" -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user