Pantek59 / Screeps-Noob-Code

Screeps code based on the Screeps Nooby Guide by thPion. Thanks for the great tutorial, thPion!
MIT License
21 stars 3 forks source link

Fonts sometimes too small #9

Closed Pantek59 closed 6 years ago

Pantek59 commented 8 years ago

Apparently the font size of the Screeps client can be changed. For HiRes displays the standard font is somewhat small, so a possibility to switch to a larger font would be helpful. The code below is supposed to illustrate what in the CSS has to be adapted to change the font size:

.console-messages-list {
    font-size: 8px;
}
section.console .console-message .timestamp {
    font-size: 8px;
    top: -1px;
}
.creep.owner text {
    font-size: 100px;
}
Pantek59 commented 8 years ago

http://www.w3schools.com/js/js_htmldom_css.asp
This is how an CSS attribute is set in javascript. Now all we need to know is whether something like the following works.

.console-messages-list {
    font-size: 8px;
}
section.console .console-message .timestamp {
    font-size: 8px;
    top: -1px;
}
.creep.owner text {
    font-size: 100px;
}

I had no time to test, yet.