Large

Empire Board Graphic AddOn

By oliezekat Last update Dec 3, 2011 — Installed 141,195 times.

Update ;)

in
Subscribe to Update ;) 4 posts, 4 voices



albanange User
Firefox

Hello,

it will be nice to have an update for new boat ;)

Thank, A+

 
chim1aap User
Firefox

Update completed! At least, i can see those ships:)

 
frechi User
Firefox

Script stop working because some pictures have been changed.

// coding: utf-8
// ==UserScript==
// @name Empire Board Graphic AddOn
// @namespace empire-board.ikariam
// @version 20
// @author oliezekat
// @description Graphic add-on for Ikariam v3 Empire Board script (require v193 or higher).
// @icon http://s3.amazonaws.com/uso_ss/icon/41051/large.jpg
// @require http://userscripts.org/scripts/source/60774.user.js
// @include http://*.ikariam.*/*
// @include http://*.*.ikariam.*/*
// @exclude http://support.ikariam.*/*
// @exclude http://board.*.ikariam.*/*
// ==/UserScript==

/**************************************************************************************************
Require "Ikariam Empire Board" script version 193 (or higher)
with higher priority than this add-on (see GreaseMonkey options)
http://userscripts.org/scripts/show/41051
**************************************************************************************************/

/* Add-on designed as EmpireBoard child object registered with ARexx */

// Remember EmpireBoard and EmpireBoard.ARexx objects
// still exists. And you may not choose child name which
// already used into Ikariam Empire Board.

EmpireBoard.GraphicAddon =
{
/* Require for ARexx */
_Parent: null,
EmpireBoardRequiredVersion: 193,
AddOnName: 'Empire Board Graphic AddOn',

/* Addon optional metas for ARexx */
Version: 20,
HomePage: '',
ScriptURL: '',
UserScriptsID: 44424
};

// Constructor method require for ARexx
// May return true or false (if failed)
EmpireBoard.GraphicAddon.Init = function()
{
this.Apply_Styles();
this.Clean_Headers();
return true;
};

EmpireBoard.GraphicAddon.Clean_Headers = function()
{
// Remove buildings header texts.
var Headers = this._Parent.DOM.Get_Nodes('//*[@id="EmpireBoardBuildings"]//th');
if (Headers.snapshotLength > 1)
{
for (var i=2; i < Headers.snapshotLength; i++)
{
Headers.snapshotItem(i).innerHTML = ' ';
}
}

// Remove resources header texts.
var Headers = this._Parent.DOM.Get_Nodes('//*[@id="EmpireBoardResources"]//th');
if (Headers.snapshotLength > 1)
{
for (var i=2; i < Headers.snapshotLength; i++)
{
Headers.snapshotItem(i).title = Headers.snapshotItem(i).textContent;
Headers.snapshotItem(i).innerHTML = ' ';
}
}

// Remove units header texts.
var Headers = this._Parent.DOM.Get_Nodes('//*[@id="EmpireBoardArmy"]//th');
if (Headers.snapshotLength > 1)
{
for (var i=2; i < Headers.snapshotLength; i++)
{
Headers.snapshotItem(i).innerHTML = ' ';
}
}
};

EmpireBoard.GraphicAddon.Apply_Styles = function()
{
// define CSS
var default_style = <><![CDATA[ <br /> /** Resources table **/ <br /> #EmpireBoardResources th { height: 28px !important; min-width: 25px;} <br /> #EmpireBoardResources th.population, <br /> #EmpireBoardResources th.wood, <br /> #EmpireBoardResources th.wine, <br /> #EmpireBoardResources th.marble, <br /> #EmpireBoardResources th.crystal, <br /> #EmpireBoardResources th.sulfur, <br /> #EmpireBoardResources th.incomes, <br /> #EmpireBoardResources th.research { color: transparent !important;}</p> <p> #EmpireBoardResources th.population {background: url(skin/resources/icon_population.gif) no-repeat center </p> <p>0px;} <br /> #EmpireBoardResources th.growth {background: url(skin/icons/growth_positive.png) no-repeat center 2px;} <br /> #EmpireBoardResources th.wood {background: url(skin/resources/icon_wood.gif) no-repeat center center;} <br /> #EmpireBoardResources th.wine {background: url(skin/resources/icon_wine.gif) no-repeat center center;} <br /> #EmpireBoardResources th.marble {background: url(skin/resources/icon_marble.gif) no-repeat center center;} <br /> #EmpireBoardResources th.crystal {background: url(skin/resources/icon_glass.gif) no-repeat center center;} <br /> #EmpireBoardResources th.sulfur {background: url(skin/resources/icon_sulfur.gif) no-repeat center center;} <br /> #EmpireBoardResources th.incomes {background: url(skin/icons/income_positive.png) no-repeat center </p> <p>center;} <br /> #EmpireBoardResources th.research {background: url(skin/resources/icon_research_time.gif) no-repeat center </p> <p>1px;}</p> <p> /** Buildings table **/ <br /> #EmpireBoardBuildings th { height: 36px !important; min-width: 20px; } <br /> #EmpireBoardBuildings th.build_name0, <br /> #EmpireBoardBuildings th.build_name1, <br /> #EmpireBoardBuildings th.build_name2, <br /> #EmpireBoardBuildings th.build_name3, <br /> #EmpireBoardBuildings th.build_name4, <br /> #EmpireBoardBuildings th.build_name5, <br /> #EmpireBoardBuildings th.build_name6, <br /> #EmpireBoardBuildings th.build_name7, <br /> #EmpireBoardBuildings th.build_name8, <br /> #EmpireBoardBuildings th.build_name9, <br /> #EmpireBoardBuildings th.build_name10, <br /> #EmpireBoardBuildings th.build_name11, <br /> #EmpireBoardBuildings th.build_name12 { color: transparent !important; }</p> <p> #EmpireBoardBuildings th.townHall {background: url(skin/img/city/building_townhall.png) no-repeat -20px -</p> <p>52px;} <br /> #EmpireBoardBuildings th.temple {background: url(skin/img/city/building_temple.png) no-repeat 2px -16px;} <br /> #EmpireBoardBuildings th.academy {background: url(skin/img/city/building_academy.png) no-repeat -59px -</p> <p>1px;} <br /> #EmpireBoardBuildings th.port {background: url(skin/img/city/building_port.png) no-repeat -21px -52px;} <br /> #EmpireBoardBuildings th.shipyard {background: url(skin/img/city/building_shipyard.png) no-repeat -58px -</p> <p>32px;} <br /> #EmpireBoardBuildings th.warehouse {background: url(skin/img/city/building_warehouse.png) no-repeat -10px </p> <p>-23px;} <br /> #EmpireBoardBuildings th.dump {background: url(skin/img/city/building_dump.png) no-repeat -7px -12px;} <br /> #EmpireBoardBuildings th.wall {background: url(skin/img/city/building_wall.png) no-repeat -99px -39px;} <br /> #EmpireBoardBuildings th.tavern {background: url(skin/img/city/building_tavern.png) no-repeat -25px -6px;} <br /> #EmpireBoardBuildings th.museum {background: url(skin/img/city/building_museum.png) no-repeat -44px -</p> <p>21px;} <br /> #EmpireBoardBuildings th.palace {background: url(skin/img/city/building_palace.png) no-repeat -25px -</p> <p>40px;} <br /> #EmpireBoardBuildings th.palaceColony {background: url(skin/img/city/building_palaceColony.png) no-repeat </p> <p>-45px -35px;} <br /> #EmpireBoardBuildings th.embassy {background: url(skin/img/city/building_embassy.png) no-repeat -14px -</p> <p>33px;} <br /> #EmpireBoardBuildings th.branchOffice {background: url(skin/img/city/building_branchOffice.png) no-repeat </p> <p>-15px -35px;} <br /> #EmpireBoardBuildings th.safehouse {background: url(skin/img/city/building_safehouse.png) no-repeat 1px -</p> <p>11px;} <br /> #EmpireBoardBuildings th.barracks {background: url(skin/img/city/building_barracks.png) no-repeat -45px -</p> <p>22px;} <br /> #EmpireBoardBuildings th.workshop {background: url(skin/img/city/building_workshop.png) no-repeat -9px -</p> <p>24px;} <br /> #EmpireBoardBuildings th.carpentering {background: url(skin/img/city/building_carpentering.png) no-repeat </p> <p>-13px -25px;} <br /> #EmpireBoardBuildings th.forester {background: url(skin/img/city/building_forester.png) no-repeat -19px -</p> <p>25px;} <br /> #EmpireBoardBuildings th.stonemason {background: url(skin/img/city/building_stonemason.png) no-repeat -</p> <p>77px -31px;} <br /> #EmpireBoardBuildings th.glassblowing {background: url(skin/img/city/building_glassblowing.png) no-repeat </p> <p>-36px -25px;} <br /> #EmpireBoardBuildings th.winegrower {background: url(skin/img/city/building_winegrower.png) no-repeat -</p> <p>37px -33px;} <br /> #EmpireBoardBuildings th.alchemist {background: url(skin/img/city/building_alchemist.png) no-repeat -26px </p> <p>-30px;} <br /> #EmpireBoardBuildings th.architect {background: url(skin/img/city/building_architect.png) no-repeat -20px </p> <p>-12px;} <br /> #EmpireBoardBuildings th.optician {background: url(skin/img/city/building_optician.png) no-repeat -28px -</p> <p>17px;} <br /> #EmpireBoardBuildings th.vineyard {background: url(skin/img/city/building_vineyard.png) no-repeat -50px -</p> <p>25px;} <br /> #EmpireBoardBuildings th.fireworker {background: url(skin/img/city/building_fireworker.png) no-repeat -</p> <p>58px -11px;}</p> <p> /** Army table **/ <br /> #EmpireBoardArmy th { height: 32px !important; } <br /> #EmpireBoardArmy th.unit_name, <br /> #EmpireBoardArmy th.upkeep {color: transparent !important;}</p> <p> #EmpireBoardArmy th.ship_ram {background: url(skin/characters/fleet/40x40/ship_ram_r_40x40.png) no-repeat </p> <p>center -3px;} <br /> #EmpireBoardArmy th.ship_ballista {background: url(skin/characters/fleet/40x40/ship_ballista_r_40x40.png) </p> <p>no-repeat center -3px;} <br /> #EmpireBoardArmy th.ship_flamethrower {background: url</p> <p>(skin/characters/fleet/40x40/ship_flamethrower_r_40x40.png) no-repeat center -3px;} <br /> #EmpireBoardArmy th.ship_catapult {background: url(skin/characters/fleet/40x40/ship_catapult_r_40x40.png) </p> <p>no-repeat center -2px;} <br /> #EmpireBoardArmy th.ship_steamboat {background: url</p> <p>(skin/characters/fleet/40x40/ship_steamboat_r_40x40.png) no-repeat center -2px;} <br /> #EmpireBoardArmy th.ship_mortar {background: url(skin/characters/fleet/40x40/ship_mortar_r_40x40.png) no-</p> <p>repeat center -3px;} <br /> #EmpireBoardArmy th.ship_submarine {background: url</p> <p>(skin/characters/fleet/40x40/ship_submarine_r_40x40.png) no-repeat center 5px;} <br /> #EmpireBoardArmy th.ship_rocketship {background: url</p> <p>(skin/characters/fleet/40x40/ship_rocketship_r_40x40.png) no-repeat center -2px;} <br /> #EmpireBoardArmy th.ship_paddlespeedship {background: url</p> <p>(skin/characters/fleet/40x40/ship_paddlespeedship_r_40x40.png) no-repeat center -3px;} <br /> #EmpireBoardArmy th.ship_ballooncarrier {background: url</p> <p>(skin/characters/fleet/40x40/ship_ballooncarrier_r_40x40.png) no-repeat center -1px;} <br /> #EmpireBoardArmy th.ship_tender {background: url(skin/characters/fleet/40x40/ship_tender_r_40x40.png) no-</p> <p>repeat center -3px;}</p> <p> #EmpireBoardArmy th.slinger {background: url(skin/characters/military/x40_y40/y40_slinger_faceright.png) </p> <p>no-repeat center 2px;} <br /> #EmpireBoardArmy th.spearman {background: url(skin/characters/military/x40_y40/y40_spearman_faceright.png) </p> <p>no-repeat center 2px;} <br /> #EmpireBoardArmy th.swordsman {background: url</p> <p>(skin/characters/military/x40_y40/y40_swordsman_faceright.png) no-repeat center 0px;} <br /> #EmpireBoardArmy th.phalanx {background: url(skin/characters/military/x40_y40/y40_phalanx_faceright.png) </p> <p>no-repeat center -3px;} <br /> #EmpireBoardArmy th.archer {background: url(skin/characters/military/x40_y40/y40_archer_faceright.png) </p> <p>no-repeat center 2px;} <br /> #EmpireBoardArmy th.marksman {background: url(skin/characters/military/x40_y40/y40_marksman_faceright.png) </p> <p>no-repeat center 3px;} <br /> <br /> #EmpireBoardArmy th.medic {background: url(skin/characters/military/x40_y40/y40_medic_faceright.png) no-</p> <p>repeat center 4px;} <br /> #EmpireBoardArmy th.cook {background: url(skin/characters/military/x40_y40/y40_cook_faceright.png) no-</p> <p>repeat center 1px;}</p> <p> #EmpireBoardArmy th.gyrocopter {background: url</p> <p>(skin/characters/military/x40_y40/y40_gyrocopter_faceright.png) no-repeat center -9px;} <br /> #EmpireBoardArmy th.steamgiant {background: url</p> <p>(skin/characters/military/x40_y40/y40_steamgiant_faceright.png) no-repeat center -3px;} <br /> #EmpireBoardArmy th.bombardier {background: url</p> <p>(skin/characters/military/x40_y40/y40_bombardier_faceright.png) no-repeat center -14px;} <br /> #EmpireBoardArmy th.ram {background: url(skin/characters/military/x40_y40/y40_ram_faceright.png) no-repeat </p> <p>center 2px;} <br /> #EmpireBoardArmy th.catapult {background: url(skin/characters/military/x40_y40/y40_catapult_faceright.png) </p> <p>no-repeat center -1px;} <br /> #EmpireBoardArmy th.mortar {background: url(skin/characters/military/x40_y40/y40_mortar_faceright.png) </p> <p>no-repeat center 0px;} <br /> <br /> #EmpireBoardArmy th.upkeep {background: url(skin/resources/icon_upkeep.png) no-repeat center center;} <br /> ]]></>.toXMLString();

GM_addStyle(default_style);
};

EmpireBoard.ARexx.RegisterAddOn(EmpireBoard.GraphicAddon);

will make this script work again ...

 
Tino User
Firefox

Can you upload the new version anywhere? Copy&Paste is useless, line feeds are missing :-(

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel