HeroWarsHelper

Automation of actions for the game Hero Wars

< HeroWarsHelper 피드백

리뷰: 좋음 - 잘 동작함

§
작성: 2024-09-28

Hi, I recently found the helper and I find it very useful. I did make a slight modification to the scriptMenu function and would like to suggest maybe adding the same to the main script.

The modification I made lets me hover over the status window after it has closed/gone off screen to show it again.

I simply added:

.scriptMenu_statusHide:hover {
top: -1px; /* Bring it back into view */
}

after the 'scriptMenu_status' and 'scriptMenu_statusHide' styling

Like so:
const addStyle = () => {
style = document.createElement('style');
style.innerText = `
.scriptMenu_status {
position: absolute;
z-index: 10001;
/* max-height: 30px; */
top: -1px;
left: 30%;
cursor: pointer;
border-radius: 0px 0px 10px 10px;
background: #190e08e6;
border: 1px #ce9767 solid;
font-size: 18px;
font-family: sans-serif;
font-weight: 600;
font-stretch: condensed;
letter-spacing: 1px;
color: #fce1ac;
text-shadow: 0px 0px 1px;
transition: 0.5s;
padding: 2px 10px 3px;
}


.scriptMenu_statusHide {
top: -35px;
height: 30px;
overflow: hidden;
}

.scriptMenu_statusHide:hover {
top: -1px; /* Bring it back into view */
}
... rest of code ...

~

Thanks for the script and thanks for your time.

§
작성: 2024-09-28
수정: 2024-09-28

Incorrectly provided my addition, just realised it needs to be:

.scriptMenu_statusHide:hover {
top: -1px; /* Bring it back into view */
height: auto; /* Ensures text visibility */
}

to ensure that the text is all visible.

댓글 남기기

댓글을 남기려면 로그인하세요.