Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <td valign="top" id="leftcolumn">
- <div id="show_summary" class="vis moveable widget ">
- <h4 class="head">
- <img class="widget-button" onclick="return VillageOverview.toggleWidget( 'show_summary', this );" src="graphic/minus.png"> Tw 100 (219 Punkte)
- </h4>
- <div class="widget_content" style="display: block;"><script type="text/javascript">
- //<![CDATA[
- confirm_queue = false;
- $(document).ready(function(){
- UI.ToolTip($('.upgrade_level'));
- });
- function upgrade_building(building) {
- var url = '/game.php?village=12592&screen=main&ajaxaction=upgrade_building&type=class&h=93d4fb82';
- var handleUpgradeBuilding = function() {
- $.ajax({
- async: false, // prevent fast clicking issues
- dataType: 'json',
- url: url,
- data: {id: building, force: 1, source: game_data.village.id},
- success: function(build_ret){
- if (build_ret.error) {
- UI.ErrorMessage(build_ret.error);
- } else if (build_ret.success) {
- //update resources
- setRes('wood', build_ret.resources[0]);
- setRes('stone', build_ret.resources[1]);
- setRes('iron', build_ret.resources[2]);
- $('#pop_current').html(build_ret.population);
- //increase upgrade level
- var upgrade_level_span = $('#order_level_' + building);
- var old_upgrade_level = parseInt(upgrade_level_span.text(), 10) || 0;
- upgrade_level_span.text("+" + (old_upgrade_level+1));
- //update links
- $.getJSON('/game.php?village=12592&screen=main&ajax=get_possible_building_upgrades', {}, function(ret) {
- var new_buildings = ret.buildings, new_title;
- $('.upgrade_level').hide();
- $.each(new_buildings, function(building_id, needed_resources) {
- new_title = generateResourcesLabel(needed_resources);
- $("#upgrade_level_"+building_id).show().attr('title', new_title);
- });
- UI.ToolTip($('.upgrade_level'));
- });
- confirm_queue = build_ret.confirm_queue;
- }
- }});
- }
- if (!confirm_queue) {
- handleUpgradeBuilding();
- return false;
- }
- var msg = "Aufträge in der Bauschleife kosten extra. Dennoch bauen?";
- var buttons = [{text : "Bestätigen", callback : handleUpgradeBuilding, confirm : true}];
- UI.ConfirmationBox(msg, buttons);
- }
- function generateResourcesLabel(needed_resources) {
- return s("Holz: %1, Lehm: %2, Eisen: %3 <br /> Bevölkerung: %4", needed_resources.wood, needed_resources.stone, needed_resources.iron, needed_resources.population);
- }
- //]]>
- </script>
- <table class="vis" width="100%">
- <tbody><tr id="l_main">
- <td style="width: 20px">
- </td>
- <td width="240">
- <a href="/game.php?village=12592&screen=main"><img src="https://dsde.innogamescdn.com/8.112/35869/graphic/buildings/main.png" title="" alt="" class=""> Hauptgebäude</a>
- (Stufe 7<small id="order_level_main"></small>)
- </td>
- <td class="building_extra">
- <strong>heute um 04:03:13</strong> <img src="https://dsde.innogamescdn.com/8.112/35869/graphic/buildings/wood.png" title="1" alt="" class="">
- </td>
- </tr>
- <tr id="l_barracks">
- <td style="width: 20px">
- </td>
- <td width="240">
- <a href="/game.php?village=12592&screen=barracks"><img src="https://dsde.innogamescdn.com/8.112/35869/graphic/buildings/barracks.png" title="" alt="" class=""> Kaserne</a>
- (Stufe 5<small id="order_level_barracks"></small>)
- </td>
- <td class="building_extra">
- <strong>heute um 03:59:56</strong> <img src="https://dsde.innogamescdn.com/8.112/35869/graphic/unit/unit_sword.png" title="1" alt="" class="">
- </td>
- </tr>
- <tr id="l_smith">
- <td style="width: 20px">
- </td>
- <td width="240">
- <a href="/game.php?village=12592&screen=smith"><img src="https://dsde.innogamescdn.com/8.112/35869/graphic/buildings/smith.png" title="" alt="" class=""> Schmiede</a>
- (Stufe 1<small id="order_level_smith"></small>)
- </td>
- <td class="building_extra">
- </td>
- </tr>
- <tr id="l_place">
- <td style="width: 20px">
- </td>
- <td width="240">
- <a href="/game.php?village=12592&screen=place"><img src="https://dsde.innogamescdn.com/8.112/35869/graphic/buildings/place.png" title="" alt="" class=""> Versammlungsplatz</a>
- (Stufe 1<small id="order_level_place"></small>)
- </td>
- <td class="building_extra">
- </td>
- </tr>
- <tr id="l_market">
- <td style="width: 20px">
- </td>
- <td width="240">
- <a href="/game.php?village=12592&screen=market"><img src="https://dsde.innogamescdn.com/8.112/35869/graphic/buildings/market.png" title="" alt="" class=""> Marktplatz</a>
- (Stufe 1<small id="order_level_market"></small>)
- </td>
- <td class="building_extra">
- <strong>Händler: 1/1</strong>
- </td>
- </tr>
- <tr id="l_wood">
- <td style="width: 20px">
- </td>
- <td width="240">
- <a href="/game.php?village=12592&screen=wood"><img src="https://dsde.innogamescdn.com/8.112/35869/graphic/buildings/wood.png" title="" alt="" class=""> Holzfällerlager</a>
- (Stufe 9<small id="order_level_wood"> +2</small>)
- </td>
- <td class="building_extra">
- </td>
- </tr>
- <tr id="l_stone">
- <td style="width: 20px">
- </td>
- <td width="240">
- <a href="/game.php?village=12592&screen=stone"><img src="https://dsde.innogamescdn.com/8.112/35869/graphic/buildings/stone.png" title="" alt="" class=""> Lehmgrube</a>
- (Stufe 10<small id="order_level_stone"> +1</small>)
- </td>
- <td class="building_extra">
- </td>
- </tr>
- <tr id="l_iron">
- <td style="width: 20px">
- </td>
- <td width="240">
- <a href="/game.php?village=12592&screen=iron"><img src="https://dsde.innogamescdn.com/8.112/35869/graphic/buildings/iron.png" title="" alt="" class=""> Eisenmine</a>
- (Stufe 7<small id="order_level_iron"> +2</small>)
- </td>
- <td class="building_extra">
- </td>
- </tr>
- <tr id="l_farm">
- <td style="width: 20px">
- </td>
- <td width="240">
- <a href="/game.php?village=12592&screen=farm"><img src="https://dsde.innogamescdn.com/8.112/35869/graphic/buildings/farm.png" title="" alt="" class=""> Bauernhof</a>
- (Stufe 3<small id="order_level_farm"></small>)
- </td>
- <td class="building_extra">
- </td>
- </tr>
- <tr id="l_storage">
- <td style="width: 20px">
- </td>
- <td width="240">
- <a href="/game.php?village=12592&screen=storage"><img src="https://dsde.innogamescdn.com/8.112/35869/graphic/buildings/storage.png" title="" alt="" class=""> Speicher</a>
- (Stufe 8<small id="order_level_storage"></small>)
- </td>
- <td class="building_extra">
- <strong>heute um 11:40:49</strong>
- </td>
- </tr>
- <tr id="l_hide">
- <td style="width: 20px">
- </td>
- <td width="240">
- <a href="/game.php?village=12592&screen=hide"><img src="https://dsde.innogamescdn.com/8.112/35869/graphic/buildings/hide.png" title="" alt="" class=""> Versteck</a>
- (Stufe 3<small id="order_level_hide"></small>)
- </td>
- <td class="building_extra">
- </td>
- </tr>
- <tr id="l_wall">
- <td style="width: 20px">
- </td>
- <td width="240">
- <a href="/game.php?village=12592&screen=wall"><img src="https://dsde.innogamescdn.com/8.112/35869/graphic/buildings/wall.png" title="" alt="" class=""> Wall</a>
- (Stufe 5<small id="order_level_wall"></small>)
- </td>
- <td class="building_extra">
- </td>
- </tr>
- </tbody></table></div>
- </div><div id="show_event" class="vis moveable hidden_widget" style="display: none;">
- <h4>Ereignis</h4>
- </div><div id="show_incoming_units" class="vis moveable hidden_widget" style="display: none;">
- <h4>Ankommende Truppen</h4>
- </div><div id="show_outgoing_units" class="vis moveable hidden_widget" style="display: none;">
- <h4>Deine Truppen</h4>
- </div>
- </td>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement