Empire Overview

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

< Commentaires sur Empire Overview

Question / commentaire

e41
§
Posté le: 22/02/2024

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!
:-)

§
Posté le: 24/02/2024

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
§
Posté le: 26/03/2024

Thanks for confirmation.
:-)

mrfixAuteur
§
Posté le: 26/03/2024

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

mrfixAuteur
§
Posté le: 26/03/2024
Édité le: 26/03/2024
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
§
Posté le: 26/03/2024

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

Poster une réponse

Connectez-vous pour poster une réponse.