Empire Overview

Script for Ikariam 8.x.x, Overview tables for resources, buildings and military inspired by Ikariam Empire Board

< Feedback on Empire Overview

Question/comment

e41
§
Posted: 2024-02-22

Just a small improvement regarding the smaller font effect...
In order to scale the entire table, not just the text, you can change the following lines:

        if (this.checked) { GM_addStyle("#empireBoard {font-size:8pt}"); }
        else { GM_addStyle("#empireBoard {font-size:inherit}"); }

with this code:

	GM_addStyle('#empireBoard {transform:scale('+(this.checked?'0.9':'1')+')}');

Have fun!
:-)

§
Posted: 2024-02-24

Feedback on this change

Works for me here

Works for me here too. Thanks.

p.s.
change this line
scriptId: 1.1935,
with this
scriptId: 456297,
After the change every time you click the Website button on options board...
you can Go to the scripts greasyfork.org website for this code.

e41
§
Posted: 2024-03-26

Thanks for confirmation.
:-)

mrfixAuthor
§
Posted: 2024-03-26

Works for me here too. Thanks.

p.s.
change this line
scriptId: 1.1935,
with this
scriptId: 456297,
After the change every time you click the Website button on options board...
you can Go to the scripts greasyfork.org website for this code.

now use scriptId: 456297

i change url from old script site on it

mrfixAuthor
§
Posted: 2024-03-26
Edited: 2024-03-26
Just a small improvement regarding the smaller font effect...

Thanx. Update
new code:
}).on("change", "#empire_smallFont", function () {
database.settings.smallFont.value = this.checked;
GM_addStyle('#empireBoard {transform:scale('+(this.checked?'0.9':'1')+')}');


Right ?

e41
§
Posted: 2024-03-26

Right.
Maybe in the future we can add a slider instead of this, because with more than 15 cities, the table gets too big.
:-)

Post reply

Sign in to post a reply.