jeraii Messages : 88
|
Bonjour tout le monde, comme promis, je partage ce mod avec vous. (Ce mod est pour XNova Revolution seulement) Voici un screen: Cliquer ici pour afficher l'image Fermer ce cadre Voici comment procéder: 1. Aller dans root/includes/pages/ 2. Créer un nouveau fichier et appelé-le: class.ShowGalaxy2dPage.php 3. Insérer ce code dans le fichier class.ShowGalaxy2dPage.php <?php include_once(ROOT_PATH . 'includes/classes/class.GalaxyRows.php');
class ShowGalaxy2dPage extends GalaxyRows { private function ShowGalaxyRows($Galaxy, $System) { global $PLANET, $USER, $db, $LNG, $UNI; $GalaxyPlanets = $db->query("SELECT SQL_BIG_RESULT DISTINCT p.`planet`, p.`id`, p.`id_owner`, p.`name`, p.`image`, p.`last_update`, p.`diameter`, p.`temp_min`, p.`destruyed`, p.`der_metal`, p.`der_crystal`, p.`id_luna`, u.`id` as `userid`, u.`ally_id`, u.`username`, u.`onlinetime`, u.`urlaubs_modus`, u.`banaday`, s.`total_points`, s.`total_rank`, a.`id` as `allyid`, a.`ally_tag`, a.`ally_web`, a.`ally_members`, a.`ally_name`, allys.`total_rank` as `ally_rank` FROM ".PLANETS." p LEFT JOIN ".USERS." u ON p.`id_owner` = u.`id` LEFT JOIN ".STATPOINTS." s ON s.`id_owner` = u.`id` AND s.`stat_type` = '1' LEFT JOIN ".ALLIANCE." a ON a.`id` = u.`ally_id` LEFT JOIN ".STATPOINTS." allys ON allys.`stat_type` = '2' AND allys.`id_owner` = a.`id` WHERE p.`universe` = '".$UNI."' AND p.`galaxy` = '".$Galaxy."' AND p.`system` = '".$System."' AND p.`planet_type` = '1' ORDER BY p.`planet` ASC;"); $COUNT = $db->num_rows($GalaxyPlanets); while($GalaxyRowPlanets = $db->fetch_array($GalaxyPlanets)) { $PlanetsInGalaxy[$GalaxyRowPlanets['planet']] = $GalaxyRowPlanets; }
$db->free_result($GalaxyPlanets); for ($Planet = 1; $Planet < (1 + MAX_PLANET_IN_SYSTEM); $Planet++) { if (!isset($PlanetsInGalaxy[$Planet])) { $Result[$Planet] = false; continue; } $GalaxyRowPlanet = $PlanetsInGalaxy[$Planet]; $GalaxyRowPlanet['galaxy'] = $Galaxy; $GalaxyRowPlanet['system'] = $System; if ($GalaxyRowPlanet['destruyed'] != 0) { $Result[$Planet] = $LNG['gl_planet_destroyed']; continue; } if ($GalaxyRowPlanet['id_luna'] != 0) { $GalaxyRowMoon = $db->uniquequery("SELECT `destruyed`, `id`, `id_owner`, `diameter`, `name`, `temp_min`, `last_update` FROM ".PLANETS." WHERE `id` = '".$GalaxyRowPlanet['id_luna']."' AND planet_type='3';"); @$Result[$Planet]['moon'] = $this->GalaxyRowMoon($GalaxyRowMoon); $GalaxyRowPlanet['last_update'] = max($GalaxyRowPlanet['last_update'], $GalaxyRowMoon['last_update']); } else { $Result[$Planet]['moon'] = false; } $Result[$Planet]['user'] = $this->GalaxyRowUser($GalaxyRowPlanet); $Result[$Planet]['planet'] = $this->GalaxyRowPlanet($GalaxyRowPlanet, $IsOwn); $Result[$Planet]['planetname'] = $this->GalaxyRowPlanetName ($GalaxyRowPlanet); $Result[$Planet]['action'] = $GalaxyRowPlanet['userid'] != $USER['id'] ? $this->GalaxyRowActions($GalaxyRowPlanet) : false; $Result[$Planet]['ally'] = $GalaxyRowPlanet['ally_id'] != 0 ? $this->GalaxyRowAlly($GalaxyRowPlanet) : false; $Result[$Planet]['derbis'] = $GalaxyRowPlanet['der_metal'] > 0 || $GalaxyRowPlanet['der_crystal'] > 0 ? $this->GalaxyRowDebris($GalaxyRowPlanet) : false; } return array('Result' => $Result, 'planetcount' => $COUNT); }
public function __construct() { global $USER, $PLANET, $dpath, $resource, $LNG, $db, $reslist, $OfficerInfo, $CONF; $template = new template(); $template->loadscript('galaxy.js'); $diam=round($GalaxyRowPlanet['diametr']/500); $maxfleet = $db->num_rows($db->query("SELECT fleet_id FROM ".FLEETS." WHERE `fleet_owner` = '". $USER['id'] ."' AND `fleet_mission` != 10;")); $mode = request_var('mode', 0); $galaxyLeft = request_var('galaxyLeft', ''); $galaxyRight = request_var('galaxyRight', ''); $systemLeft = request_var('systemLeft', ''); $systemRight = request_var('systemRight', ''); $galaxy = min(max(abs(request_var('galaxy', $PLANET['galaxy'])), 1), $CONF['max_galaxy']); $system = min(max(abs(request_var('system', $PLANET['system'])), 1), $CONF['max_system']); $planet = min(max(abs(request_var('planet', $PLANET['planet'])), 1), $CONF['max_planets']); $current = request_var('current', 0); if ($mode == 1) { if (!empty($galaxyLeft)) $galaxy = max($galaxy - 1, 1); elseif (!empty($galaxyRight)) $galaxy = min($galaxy + 1, $CONF['max_galaxy']);
if (!empty($systemLeft)) $system = max($system - 1, 1); elseif (!empty($systemRight)) $system = min($system + 1, $CONF['max_system']); }
if (!($galaxy == $PLANET['galaxy'] && $system == $PLANET['system']) && $mode != 0) { if($PLANET['deuterium'] < $CONF['deuterium_cost_galaxy']) { $template->message($LNG['gl_no_deuterium_to_view_galaxy'], "game.php?page=galaxy&mode=0", 2); exit; } else $PLANET['deuterium'] -= $CONF['deuterium_cost_galaxy']; } $PlanetRess = new ResourceUpdate(); $PlanetRess->CalcResource(); $PlanetRess->SavePlanetToDB(); unset($reslist['defense'][array_search(502, $reslist['defense'])]); $MissleSelector[0] = $LNG['gl_all_defenses']; foreach($reslist['defense'] as $Element) { $MissleSelector[$Element] = $LNG['tech'][$Element]; } $Result = $this->ShowGalaxyRows($galaxy, $system);
$template->assign_vars(array( 'GalaxyRows' => $Result['Result'], 'planetcount' => sprintf($LNG['gl_populed_planets'], $Result['planetcount']), 'a1' => 'left: 23px', 'b1' => 'top: 5px', 'a2' => 'left: 160px', 'b2' => 'top: -33px', 'a3' => 'left: 296px', 'b3' => 'top: -58px', 'a4' => 'left: 433px', 'b4' => 'top: -58px', 'a5' => 'right: 296px', 'b5' => 'top: -58px', 'a6' => 'right: 160px', 'b6' => 'top: -33px', 'a7' => 'right: 23px', 'b7' => 'top: 5px', 'a8' => 'left: 316px', 'b8' => 'top: 72px', 'a9' => 'right: 316px', 'b9' => 'top: 72px', 'a10' => 'left: -44px', 'b10' => 'top: 139px', 'a11' => 'left: 76px', 'b11' => 'top: 139px', 'a12' => 'left: 196px', 'b12' => 'top: 139px', 'a13' => 'right: 196px', 'b13' => 'top: 139px', 'a14' => 'right: 76px', 'b14' => 'top: 139px', 'a15' => 'right: -44px', 'b15' => 'top: 139px', 'diam' => '70', 'mode' => $mode, 'galaxy' => $galaxy, 'system' => $system, 'planet' => $planet, 'current' => $current, 'currentmip' => pretty_number($PLANET[$resource[503]]), 'maxfleetcount' => $maxfleet, 'fleetmax' => ($USER['computer_tech'] + 1) + ($USER['rpg_commandant'] * $OfficerInfo[611]['info']), 'grecyclers' => pretty_number($PLANET[$resource[219]]), 'recyclers' => pretty_number($PLANET[$resource[209]]), 'spyprobes' => pretty_number($PLANET[$resource[210]]), 'missile_count' => sprintf($LNG['gl_missil_to_launch'], $PLANET[$resource[503]]), 'spio_anz' => $USER['spio_anz'], 'settings_fleetactions' => $USER['settings_fleetactions'], 'current_galaxy' => $PLANET['galaxy'], 'current_system' => $PLANET['system'], 'current_planet' => $PLANET['planet'], 'planet_type' => $PLANET['planet_type'], 'MissleSelector' => $MissleSelector, 'gl_solar_system' => $LNG['gl_solar_system'], 'gl_galaxy' => $LNG['gl_galaxy'], 'gl_missil_launch_action' => $LNG['gl_missil_launch_action'], 'gl_objective' => $LNG['gl_objective'], 'gl_missil_launch' => $LNG['gl_missil_launch'], 'gl_pos' => $LNG['gl_pos'], 'gl_planet' => $LNG['gl_planet'], 'gl_alliance' => $LNG['gl_alliance'], 'gl_actions' => $LNG['gl_actions'], 'gl_name_activity' => $LNG['gl_name_activity'], 'gl_player_estate' => $LNG['gl_player_estate'], 'gl_debris' => $LNG['gl_debris'], 'gl_moon' => $LNG['gl_moon'], 'gl_show' => $LNG['gl_show'], 'gl_out_space' => $LNG['gl_out_space'], 'gl_legend' => $LNG['gl_legend'], 'gl_strong_player' => $LNG['gl_strong_player'], 'gl_s' => $LNG['gl_s'], 'gl_week_player' => $LNG['gl_week_player'], 'gl_w' => $LNG['gl_w'], 'gl_vacation' => $LNG['gl_vacation'], 'gl_v' => $LNG['gl_v'], 'gl_banned' => $LNG['gl_banned'], 'gl_b' => $LNG['gl_b'], 'gl_inactive_seven' => $LNG['gl_inactive_seven'], 'gl_i' => $LNG['gl_i'], 'gl_inactive_twentyeight' => $LNG['gl_inactive_twentyeight'], 'gl_I' => $LNG['gl_I'], 'gl_avaible_grecyclers' => $LNG['gl_avaible_grecyclers'], 'gl_avaible_recyclers' => $LNG['gl_avaible_recyclers'], 'gl_avaible_spyprobes' => $LNG['gl_avaible_spyprobes'], 'gl_fleets' => $LNG['gl_fleets'], 'gl_avaible_missiles' => $LNG['gl_avaible_missiles'], 'gl_moon' => $LNG['gl_moon'], 'gl_diameter' => $LNG['gl_diameter'], 'gl_features' => $LNG['gl_features'], 'gl_temperature' => $LNG['gl_temperature'], 'gl_actions' => $LNG['gl_actions'], 'gl_debris_field' => $LNG['gl_debris_field'], 'gl_resources' => $LNG['gl_resources'], 'gl_collect' => $LNG['gl_collect'], 'gl_with' => $LNG['gl_with'], 'gl_alliance_page' => $LNG['gl_alliance_page'], 'gl_see_on_stats' => $LNG['gl_see_on_stats'], 'gl_alliance_web_page' => $LNG['gl_alliance_web_page'], 'gl_spy' => $LNG['gl_spy'], 'gl_buddy_request' => $LNG['gl_buddy_request'], 'gl_missile_attack' => $LNG['gl_missile_attack'], 'gl_player' => $LNG['gl_player'], 'gl_playercard' => $LNG['gl_playercard'], 'gl_phalanx' => $LNG['gl_phalanx'], 'gl_points' => $LNG['gl_points'], 'gl_ajax_status_ok' => $LNG['gl_ajax_status_ok'], 'gl_ajax_status_fail' => $LNG['gl_ajax_status_fail'], 'write_message' => $LNG['write_message'], 'points' => pretty_number($USER['total_points']), 'nivel' => $nivel, 'rango' => $rango, 'userid' => $USER['id'], 'username' => $USER['username'], )); $template->show('galaxy2d_overview.tpl'); } } ?> 4. Ensuite aller dans root/styles/templates/ 5. Créer un fichier appelé : galaxy2d_overview.tpl 6. Insérer dans celui-ci le code suivant: {include file="overall_header.tpl"} <body id="mercado"> <div id="tooltip" class="tip"></div> <div class="contenido_big"> <div id="cajaBG"> <div id="caja"> <div id="topnav" class="header_normal"> {include file="overall_topnav.tpl"} <div id="titular"> <div id="estructura_titular" style="position:relative;"> <div id="titular_texto" style="display: block;">{$lm_galaxy}</div> </div> </div> </div>
<div id="mainWrapper"> <div id="galaxyWrapper"> <div id="galaxyMenu"> <div id="galaxyBreadcrumb"> <span id="breadCrumb-c1">{$gl_galaxy}</span> <a href="javascript:void(0);" onclick="">{$galaxy}</a> <span id="breadCrumb-c2">{$gl_solar_system}</span> <a href="javascript:void(0);" onclick="" id="breadCrumb-c1">{$system}</a> <b>Galaxy-2D par Jeraii</b> </div>
<div id="galaxySearch"> <div class="group galaxy"> <form action="?page=galaxy2d&mode=1" method="post" id="galaxy_form"> <input type="hidden" id="auto" value="dr"> <a href="javascript:void(0);" onclick="galaxy_submit('galaxyRight')" class="scrollUp"></a> <input type="text" name="galaxy" id="c1" size="2" maxlength="4" value="{$galaxy}" onkeypress="galaxy_submit"/> <a href="javascript:void(0);" onclick="galaxy_submit('galaxyLeft')" class="scrollDown"></a> </div> <div class="group solarSystem"> <a href="javascript:void(0);" onclick="galaxy_submit('systemRight')" class="scrollUp"></a> <input type="text" name="system" id="c2" size="2" maxlength="2" value="{$system}" onkeypress="galaxy_submit"/> <a href="javascript:void(0);" onclick="galaxy_submit('systemLeft')" class="scrollDown"></a> </div> <input type="submit" value="{$gl_show}" class="search"></form> </div> <ul id="galaxyAdditional"> <li><a href="/game.php?page=overview">Retour à l'accueil</a></li> <li><a href="javascript:void(0);" onclick="document.location = '?page=fleet&galaxy={$galaxy}&system={$system}&planet={$smarty.foreach.galaxy.total + 1}&planettype=1&target_mission=15'">{$gl_out_space}</a></li> </ul> </div> {if $mode == 2} <form action="?page=missiles&galaxy2d={$galaxy}&system={$system}&planet={$planet}" method="POST"> <tr> <table class="table569"> <tr> <th colspan="2">{$gl_missil_launch} [{$galaxy}:{$system}:{$planet}]</th> </tr> <tr>
<td>{$missile_count} <input type="text" name="SendMI" size="2" maxlength="7"></td> <td>{$gl_objective}: {html_options name=Target options=$MissleSelector} </td> </tr> <tr> <th colspan="2" style="text-align:center;"><input type="submit" name="aktion" value="{$gl_missil_launch_action}"></th> </tr> </table> </form>{/if} <div id="screenHolder" style="min-height: 500px; position: relative;"> <div id="galaxyLoading"></div> <div id="galaxyHolder"><div id="galaxyPlanets"> <div class="sun"><a class="tooltip_sticky" name="<table style='width:100px'><tr><th>{$gl_solar_system} {$galaxy}:{$system}</th></tr> <tr><td style='width:80'>({$planetcount})</td></tr> </table>"><img src="planis/sun.png" onmouseover="({$planetcount})" onmouseout="hidePlayerInfo();" style="cursor: pointer;height="250" width="250"></a></div> {foreach name=galaxy key=planet item=GalaxyRow from=$GalaxyRows} {if is_array($GalaxyRow)} <div class="planet p-{$planet}" style="{$a{$planet}};{$b{$planet}};width:120px;height:50px;">
<a class="tooltip_sticky" name="<table style='width:100px'><tr><th colspan='2'>{$gl_planet} {$GalaxyRow.planet.name} [{$galaxy}:{$system}:{$planet}]</th></tr> <tr><td style='width:80'><img src='{$dpath}planeten/small/s_{$GalaxyRow.planet.image}.jpg' height='64' width='64'></td><td> {if $GalaxyRow.planet.spionage}<a href='javascript:doit(6,{$galaxy},{$system},{$planet},1,{$spio_anz});'>{$GalaxyRow.planet.spionage}</a> <br><br> {/if} {if $GalaxyRow.planet.phalax} <a href='javascript:OpenPopup("?page=phalanx&galaxy={$galaxy}&system={$system}&planet={$planet}&planettype=1", "", 640, 510);'>{$GalaxyRow.planet.phalax}</a> <br> {/if} {if $GalaxyRow.planet.attack} <a href='?page=fleet&galaxy={$galaxy}&system={$system}&planet={$planet}&planettype=1&target_mission=1'>{$GalaxyRow.planet.attack}</a> <br> {/if} {if $GalaxyRow.planet.stayally} <a href='?page=fleet&galaxy={$galaxy}&system={$system}&planet={$planet}&planettype=1&target_mission=5'>{$GalaxyRow.planet.stayally}</a> <br> {/if} {if $GalaxyRow.planet.stay} <a href='?page=fleet&galaxy={$galaxy}&system={$system}&planet={$planet}&planettype=1&target_mission=4'>{$GalaxyRow.planet.stay}</a> <br> {/if} {if $GalaxyRow.planet.transport} <a href='?page=fleet&galaxy={$galaxy}&system={$system}&planet={$planet}&planettype=1&target_mission=3'>{$GalaxyRow.planet.transport}</a> <br> {/if} {if $GalaxyRow.planet.missile} <a href='?page=galaxy2d&mode=2&galaxy={$galaxy}&system={$system}&planet={$planet}'>{$GalaxyRow.planet.missile}</a> <br> {/if} </td></tr> </table>"> <img src="planis/p{$planet}.png" height="{$GalaxyRow.planet.diameter1}" width="{$GalaxyRow.planet.diameter1}" alt=""></a><div id="GalaxyRow"></div><br><div class="moon">{if $GalaxyRow.moon} <a class="tooltip_sticky" name="<table style='width:240px'><tr><th colspan='2'>{$gl_moon} {$GalaxyRow.moon.name} [{$galaxy}:{$system}:{$planet}]</th></tr><tr> <td style='width:80'><img src='{$dpath}planeten/mond.jpg' height='75' style='width:75'></td> <td><table style='width:100%'><tr><th colspan='2'>{$gl_features}</th></tr> <tr><td>{$gl_diameter}</td><td>{$GalaxyRow.moon.diameter}</td></tr> <tr><td>{$gl_temperature}</td><td>{$GalaxyRow.moon.temp_min}</td></tr> <tr><th colspan=2>{$gl_actions}</th></tr> <tr><td colspan='2'>{if $GalaxyRow.moon.attack}<a href='?page=fleet&galaxy={$galaxy}&system={$system}&planet={$planet}&planettype=3&target_mission=1'>{$GalaxyRow.moon.attack}</a> <br> {/if} <a href='?page=fleet&galaxy={$galaxy}&system={$system}&planet={$planet}&planettype=3&target_mission=3'>{$GalaxyRow.moon.transport}</a> {if $GalaxyRow.moon.stay} <br> <a href='?page=fleet&galaxy={$galaxy}&system={$system}&planet={$planet}&planettype=3&target_mission=4'>{$GalaxyRow.moon.stay}</a> {/if} {if $GalaxyRow.moon.stayally} <br> <a href='?page=fleet&galaxy={$galaxy}&system={$system}&planet={$planet}&planettype=3&target_mission=5'>{$GalaxyRow.moon.stayally}</a> {/if} {if $GalaxyRow.moon.spionage} <br> <a href='javascript:doit(6,{$galaxy},{$system},{$planet},3,{$spio_anz});'>{$GalaxyRow.moon.spionage}</a> {/if} {if $GalaxyRow.moon.destroy} <br> <br> <a href='?page=fleet&galaxy={$galaxy}&system={$system}&planet={$planet}&planettype=3&target_mission=9'>{$GalaxyRow.moon.destroy}</a> <br> {/if} </td></tr></table></td></tr></table>"> <img src="{$dpath}planeten/small/s_mond.jpg" height="22" width="22" alt="{$GalaxyRow.moon.name}"></a> {/if} <a class="tooltip_sticky" name="<table style='width:240px'><tr><th colspan='2'>{$GalaxyRow.user.playerrank}</th></tr> <tr> {if $GalaxyRow.user.isown}<tr><td><a href='javascript:OpenPopup("?page=buddy&mode=2&u={$GalaxyRow.user.id}", "", 720, 300);'>{$gl_buddy_request}</a></td></tr> <td><a href='#' onclick='return Dialog.Playercard({$GalaxyRow.user.id}, "{$GalaxyRow.user.username}");'>{$gl_playercard}</a></td></tr> {/if} <tr><td><a href='?page=statistics&who=1&start={$GalaxyRow.user.rank}'>{$gl_see_on_stats}</a></td> </tr></table>"> <div class="username"><span class="username"> {$GalaxyRow.user.Systemtatus}{$GalaxyRow.user.username}</span><br> {if $GalaxyRow.user.Systemtatus}</span> {/if} <span class="username">{$GalaxyRow.user.Systemtatus2}</span></a> {if $GalaxyRow.ally} <a class="tooltip_sticky" name="<table style='width:240px'><tr><th>{$gl_alliance} {$GalaxyRow.ally.name} {$GalaxyRow.ally.member}</th></tr><td><table> <tr><td><a href='?page=alliance&mode=ainfo&a={$GalaxyRow.ally.id}'>{$gl_alliance_page}</a></td></tr> <tr><td><a href='?page=statistics&start={$GalaxyRow.ally.rank}&who=2'>{$gl_see_on_stats}</a></td></tr> {if $GalaxyRow.ally.web}<tr><td><a href='{$GalaxyRow.ally.web}' target='allyweb'>{$gl_alliance_web_page}</td></tr> {/if} </table> </td> </table>"> {if $GalaxyRow.ally.inally == 2} <span style="color:lime;opacity: 0.5">{$GalaxyRow.ally.tag}</span> {elseif $GalaxyRow.ally.inally == 1} <span class="allymember" style="opacity: 0.5">{$GalaxyRow.ally.tag}</span> {else}{$GalaxyRow.ally.tag} {/if}</a> {else} {/if}</div></div><div id="community-p-{$planet}" style="display:none;"> {if $GalaxyRow.action} {if $GalaxyRow.action.esp} <a href="javascript:doit(6,{$galaxy},{$system},{$planet},1,{$spio_anz});"><img src="{$dpath}img/e.gif" title="{$gl_spy}" alt=""></a> {/if} {if $GalaxyRow.action.message}<a href="#" onclick="return Dialog.PM({$GalaxyRow.user.id});"><img src="{$dpath}img/m.gif" title="{$write_message}" alt=""></a> {/if} {if $GalaxyRow.action.buddy}<a href="javascript:OpenPopup('?page=buddy&mode=2&u={$GalaxyRow.user.id}', '', 720, 300);"><img src="{$dpath}img/b.gif" title="{$gl_buddy_request}" alt=""></a> {/if} {if $GalaxyRow.action.missle}<a href="?page=galaxy2d&mode=2&galaxy={$galaxy}&system={$system}&planet={$planet}"><img src="{$dpath}img/r.gif" title="{$gl_missile_attack}" alt=""></a> {/if} {else} {/if}
</div> <div class="derbis">{if $GalaxyRow.derbis}<a class="tooltip_sticky" name="<table style='width:240px'><tr><th colspan='2'>{$gl_debris_field} [{$galaxy}:{$system}:{$planet}]</th></tr> <tr><td style='width:80'><img src='{$dpath}planeten/debris.jpg' height='75' style='width:75'></td><td><table style='width:100%'><tr><th colspan='2'>{$gl_resources}:</th></tr> <tr><td>{$Metal}: </td><td>{$GalaxyRow.derbis.metal}</td></tr><tr><td>{$Crystal}: </td><td>{$GalaxyRow.derbis.crystal}</td></tr> <tr><th colspan='2'>{$gl_actions}</th></tr> <tr><td colspan='2'><a href='javascript:doit(8,{$galaxy},{$system},{$planet}, 2, "{$GalaxyRow.derbis.GRecSended}|{$GalaxyRow.derbis.RecSended}");'>{$gl_collect}</a></td></tr> </table> </td> </tr> </table>"> <br /> <br /> <br /> <img src="{$dpath}imagenes/escombro.png" height="64" width="64" alt=""></a> {/if}</div>
</div> {elseif !empty($GalaxyRow)} <div>{$GalaxyRow}</div> {else} {/if} {/foreach} </div></div> </div>
</div> <script type="text/javascript"> status_ok = '{$gl_ajax_status_ok}'; status_fail = '{$gl_ajax_status_fail}'; MaxFleetSetting = {$settings_fleetactions} - 1; </script>
{include file="overall_footer.tpl"} 6. Aller dans root/styles/theme/gultra 7. Ouvrer formato.css 8. Insérer ceci à la fin du fichier: /* ---------------------------- */ /* galaxy 2d */ /* ---------------------------- */
#galaxyMenu { background: url('img/galaxy_menu_bknd.jpg') no-repeat; height: 72px; margin: 20px 0; position: relative; }
#galaxyMenu #galaxyBreadcrumb { height: 28px; line-height: 28px; overflow: hidden; position: absolute; top: 9px; left: 14px; font-size: 11px; }
#galaxyMenu #galaxyBreadcrumb a { display: block; float: left; height: 28px; background: url('img/galaxy_breadcrumb_arrow.gif') right 0 no-repeat; padding: 0 25px 0 15px; color: #878787; }
#galaxyMenu #galaxyBreadcrumb a:hover { color: #fff; }
#galaxyMenu #galaxyBreadcrumb span { display: block; float: left; padding: 0 0 0 15px; font-weight: bold; color: #fff; }
#galaxyMenu #galaxySearch { float: right; padding: 8px 35px 0 0; }
#galaxyMenu #galaxySearch .group { float: left; }
#galaxyMenu #galaxySearch .group.galaxy { background: url('img/galaxy_menu_dots.gif') right 17px no-repeat; padding: 0 20px 0 0; margin: 0 13px 0 0; }
#galaxyMenu #galaxySearch a.scrollUp { display: block; height: 16px; width: 66px; background: url('img/galaxy_menu_up.gif') no-repeat; }
#galaxyMenu #galaxySearch a.scrollDown { display: block; height: 16px; width: 66px; background: url('img/galaxy_menu_down.gif') no-repeat; }
#galaxyMenu #galaxySearch a.scrollUp:hover, #galaxyMenu #galaxySearch a.scrollDown:hover { background-position: 0 -16px; }
#galaxyMenu #galaxySearch .group input { width: 64px; border: 1px solid #808080; background: #292929 url('img/galaxy_menu_input.gif') repeat-x; color: #fff; font-size: 14px; font-weight: bold; padding: 3px 0; text-align: center; }
#galaxyMenu #galaxySearch input.search { background: #808080 url('img/galaxy_menu_search.gif') 0 bottom repeat-x; color: #b6b6b6; font-size: 10px; text-transform: uppercase; padding: 5px 35px; border: 1px solid #808080; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; cursor: pointer; float: left; margin: 13px 0 0 20px; }
#galaxyMenu #galaxySearch input.search:hover { border-color: #fff; color: #fff; }
#galaxyMenu ul#galaxyAdditional { list-style: none; position: absolute; top: 45px; left: 30px; }
#galaxyMenu ul#galaxyAdditional li { float: left; padding: 0 10px 0 0; }
#galaxyMenu ul#galaxyAdditional li a { display: block; float: left; height: 25px; line-height: 25px; padding: 0 10px; text-decoration: none; color: #bababa; border: 1px solid #8e8e8e; border-radius-bottomleft: 10px; border-radius-bottomright: 10px; -moz-border-radius-bottomleft: 10px; -moz-border-radius-bottomright: 10px; -webkit-border-bottom-left-radius: 10px; -webkit-border-bottom-right-radius: 10px; background: url('img/f_bknd_ui.jpg')repeat-x;
}
#galaxyMenu ul#galaxyAdditional li a:hover { color: #fff; border-color: #fff; }
#galaxyMenu a.artefact { display: block; position: absolute; left: 528px; top: 48px; }
/* ---------------------------- */ /* galaxy Planets */ /* ---------------------------- */ #galaxyMenu { background: url('img/galaxy_menu_bknd.png') no-repeat; height: 72px; margin: 20px 0; position: relative; } #galaxyPlanets { background: url('img/galaxy_planets_bknd.png') no-repeat; height: 400px; position: relative; margin: 70px 0; }
#galaxyPlanets .sun { width: 250px; height: 250px; position: absolute; top: 70px; left: 368px; } #galaxyPlanets .planet, #galaxyPlanets .empty { position: absolute; width: 70px; height: 70px; }
#galaxyPlanets .planet a, #galaxyPlanets .empty a { display: block; cursor: pointer; text-decoration: none; width: 40px; height: 30px; position: relative; z-index: 5; }
#galaxyPlanets .planet a:hover { border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; }
#galaxyPlanets .empty a:hover { border: 1px dashed #333; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; }
#galaxyPlanets .planet a:hover span.planetName { background-color: #fff; color: #000; opacity: 1; z-index: 60; }
#galaxyPlanets .empty a span.planetNumber { display: none; }
#galaxyPlanets .planet a:hover span.planetName { background-color: #fff; color: #000; opacity: 1; z-index: 60; }
#galaxyPlanets .empty a span.planetNumber { display: none; }
#galaxyPlanets .planet span.planetNumber, #galaxyPlanets .empty a:hover span.planetNumber { position: absolute; display: block; right: 10; top: 16; font-size: 11px; opacity: 0.6; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; }
#galaxyPlanets .planet span.planetName { position: absolute; display: block; bottom: 60px; left: 20px; font-size: 11px; text-align: center; opacity: 0.5; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; } #planet { display: block; cursor: pointer; text-decoration: none; width: 40px; height: 30px; position: relative; z-index: 5; }
#GalaxyRow { display: block; cursor: pointer; text-decoration: none; width: 1px; height: 1px; position: relative; z-index: 5; top: 30px; }
#username { display: block; cursor: pointer; text-decoration: none; width: 50px; height: 50px; position: relative; z-index: 5; } #galaxyPlanets .planet span.username { font-size: 11px; text-align: center; opacity: 0.8; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; position: relative; z-index: 5; } /* ---------------------------- */
9. Répéter les étapes de 6 à 8, mais pour ce répertoire: root/styles/theme/voltra 10. Dans le fichier game.php situé dans la racine de votre FTP, ajouter ceci n'importe où: case 'galaxy2d': if(CheckModule(11)) message($LNG['sys_module_inactive'],"?page=overview", 3, true, true); include_once(ROOT_PATH . 'includes/pages/class.ShowGalaxy2dPage.php'); $ShowGalaxy2dPage = new ShowGalaxy2dPage(); break; 11. Dans root/styles/templates/, ouvrer "left_menu.tpl" 12. Ajouter ceci dans ce fichier: <a class="menu_boton " href="?page=galaxy2d"><span>Galaxie 2D</span></a> </li>{/if} {if !CheckModule(0)}<li> <span class="menu_icon"> <img width="38" height="29" src="./styles/theme/{$Raza_skin}/imagenes/navegacion/menu_icon.png"> </span> 13. Télécherger ceci: Image de la galaxy 2D 14. Décompresser le dossier "planis" sur votre bureau 15. Créer un dossier "planis" sur votre FTP, et envoyer les images du document planis de votre bureau dans celui-ci. Voila, vous disposez maintenant d'une galaxy en 2D et s'il vous plaît veuillez ne pas enlever le "Créer par Jeraii", j'apprécie qu'on respect mes droits. Pour toutes questions, posez-les ici N'oublier pas le "merci", bon je vais me chercher un café... C'était long |