Increase hint brightness; remove last play hint on select.

This commit is contained in:
yukirij 2024-10-02 00:32:21 -07:00
parent 15030fc700
commit d33aec7bc2
3 changed files with 11 additions and 11 deletions

View File

@ -1,9 +1,9 @@
span.text-system{color:#909090;}
span.c_dawn{color:#ffe082;}
span.c_dusk{color:#f6a1bd;}
span.bold{font-weight:bold;}
button#button-resign.warn {
background-color:#471414;
color:#e0e0e0;
}

View File

@ -30,14 +30,14 @@ const INTERFACE = {
HintHover: "#71a1e8",
HintSelect: "#4a148c",
HintValid: "#1a237e",
HintValidDark: "#121859",
HintValid: "#1d268c",
HintValidDark: "#151c66",
HintThreat: "#054719",
HintThreatDark: "#023311",
HintOpponent: "#49136b",
HintOpponentDark: "#2a0b3f",
HintInvalid: "#b71c1c",
HintInvalidDark: "#3f0808",
HintInvalid: "#b21818",
HintInvalidDark: "#7f1111",
HintPlay: "#307c7f",
HintCheck: "#C62828",
},
@ -479,7 +479,7 @@ const INTERFACE = {
if(is_hover) {
border_color = INTERFACE.Color.HintHover;
} else if(background_color == null) {
if(is_play !== null) {
if(INTERFACE_DATA.select === null && is_play !== null) {
if((GAME_DATA.turn & 1) != GAME.Const.Player.Dawn) { border_color = INTERFACE.Color.DawnDark; }
else { border_color = INTERFACE.Color.DuskDark; }
background_scale = 0.9;
@ -488,7 +488,7 @@ const INTERFACE = {
// Get default colors
if(background_color === null) {
if(is_play !== null) {
if(INTERFACE_DATA.select === null && is_play !== null) {
if(is_play === GAME.Const.Player.Dawn) {
background_color = INTERFACE.Color.DawnDarkest;
} else {

View File

@ -344,12 +344,12 @@ const UI = {
buttons.push(UI.button(LANG("review"), view_callback));
let dawn = UI.text(records[r].dawn);
let dusk = UI.text(records[r].dusk);
let dawn = UI.span([UI.text(records[r].dawn)], "c_dawn");
let dusk = UI.span([UI.text(records[r].dusk)], "c_dusk");
switch(records[r].is_complete) {
case 1: dawn = UI.span([dawn], "c_dawn"); break;
case 2: dusk = UI.span([dusk], "c_dusk"); break;
case 1: dawn = UI.span([dawn], "bold"); break;
case 2: dusk = UI.span([dusk], "bold"); break;
}
rows.push([