Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Minimap entfernen?
#1
Hallo,

Ich hätte da mal 'ne Frage,

und zwar: Ist es möglich die Minimap zu entfernen ? Und wenn möglich dafür die normale Karte größer zu machen ?



LG Fluffy
Reply
#2
In der Datei htdocs/templates/game_map.tpl diesen Teil entfernen:
Code:
<form method="POST" action="game.php?village={$village.id}&screen=map&action=bigMapOnclick">    
        <input type="hidden" name="startX" id="startX" value="{$xs}" />
        <input type="hidden" name="startY" id="startY" value="{$ys}" />
        <div style="position:relative; padding:0px">
            <div style="position:absolute;z-index:100">
                <input type="image" class="noneStyle" src="graphic/map/empty.png" style="width:251px;height:250px;margin:0px;padding:0px" />
            </div>
            <img src="graphic/continent/{$user.id}-{$conmap}-{$contime}.png">
            <div id="bigMapRect" style="z-index:10; position:absolute; top:{$bigMapRectTop}px; left:{$bigMapRectLeft}px; width:{$mapSize*5-1}px; height:{$mapSize*5-1}px; border: 1px solid rgb(213, 227, 174);"></div>
        </div>
    </form>
Und in der Datei htdocs/templates/game_settings_settings.tpl diesen Teil
Code:
<option label="7x7" value="7" {if $user.map_size==7}selected="selected"{/if}>7x7</option>
<option label="9x9" value="9" {if $user.map_size==9}selected="selected"{/if}>9x9</option>
<option label="11x11" value="11" {if $user.map_size==11}selected="selected"{/if}>11x11</option>
<option label="13x13" value="13" {if $user.map_size==13}selected="selected"{/if}>13x13</option>
durch diesen ersetzen:
Code:
{php}
$start = 7;
$stop = 25;
for($i = $start; $i <= $stop; $i += 2)
{
    echo '<option label="'.$i.'x'.$i.'" value="'.$i.'"'.($this->_tpl_vars['user']['map_size'] == $i ? 'selected="selected"' : '').'>'.$i.'x'.$i.'</option>';
}
{/php}
Durch verändern von $start und $stop kannst du die verfügbaren Grössen dann ändern.

LG
Molt
Reply
#3
Hat geklappt, danke Wink
Reply
#4
Bitte Wink
Reply




Users browsing this thread: 1 Guest(s)