Posts: 63
Threads: 6
Joined: Jul 2017
Reputation:
2
Kann mir jmd bitte sagen wie ich die ingame schriftfarbe ändern kann?
Posts: 128
Threads: 5
Joined: May 2015
Reputation:
6
Mit CSS in den entsprechenden Stylesheet-Dateien (*.css).
Posts: 63
Threads: 6
Joined: Jul 2017
Reputation:
2
ja die habe ich alle schon entsprechend geändert. habe ein dunkles template erstellt und dafür wollte ich die alle schwarzen schriften in weiß ändern nur gibt es einige wörter wie "Gebäude, Bedarf, Bauzeit, usw..." lassen sich nicht ändern
Posts: 3'164
Threads: 47
Joined: Dec 2008
Reputation:
205
Versuchs mal mit dem wort !important (mit Ausrufezeichen) hinter der CSS Anweisung die sich nicht ändern. Außerdem mal Browser Cache leeren.
Manche Dinge, wie zum Beispiel "Stufe xx" werden in Funktionen zusammengefummelt, daher könnte es bei denen schwieriger werden.
Ein Ansatz hier wäre an entsprechender Stelle (dort wo die Funktion im Template aufgerufen wird), das ganze in ein <span>-Tag zu wrappen und das dann im CSS Code anzusprechen.
MfG Manuel
Posts: 63
Threads: 6
Joined: Jul 2017
Reputation:
2
ja die sind leider überhaupt nicht zu finden in den CSS, genau diese wörter meine ich wie "Stufe" und co... sind wohl nur in den verschlüsselten php zu finden?
Posts: 128
Threads: 5
Joined: May 2015
Reputation:
6
(This post was last modified: 26.08.2017, 12:31 by 0xEAB.)
26.08.2017, 12:30
templates/game_main.tpl: Zeile 98 ff.
Posts: 63
Threads: 6
Joined: Jul 2017
Reputation:
2
Posts: 63
Threads: 6
Joined: Jul 2017
Reputation:
2
(This post was last modified: 12.09.2017, 23:08 by Jujan.)
12.09.2017, 23:07
leider nicht zu finden in meiner game_main.tpl. siehe:
Code: <table>
<tr>
<td>
<img src="{$cl_builds->getGraphic("main", $village.main)}" title="{$cl_builds->get_name('main')}" alt="" />
</td>
<td>
<h2>{$cl_builds->get_name("main")} ({$village.main|stage})</h2>
{$description}
</td>
</tr>
</table>
<br />
{if $mode == 'destroy'}
{include file='game_main_destroy.tpl'}
{else}
{* ALLE GEBÄUDE IN DER BAUSCHLEIFE AUSLESEN *}
{if $num_do_build>0}
<table class="vis">
<tr><th width="250">{$lang->grab("main", "doBuild")}</th><th width="100">{$lang->grab("main", "duration")}</th><th width="150">{$lang->grab("main", "time_finished")}</th><th>{$lang->grab("main", "cancel")}</th></tr>
{foreach from=$do_build item=item key=id}
{assign var="buildname" value=$do_build.$id.build}
{if $id==0}
<tr class="lit">
{else}
<tr>
{/if}
<td>{$cl_builds->get_name($buildname)} ({$lang->grab("main", "stage")} {$do_build.$id.stage})</td>
{if $id==0}
{if $do_build.$id.finished<$time}
<td>{$do_build.$id.dauer|format_time}</td>
{else}
<td><span class="timer">{$do_build.$id.dauer|format_time}</span></td>
{/if}
{else}
<td>{$do_build.$id.dauer|format_time}</td>
{/if}
<td>{$do_build.$id.finished|format_date}</td>
<td><a href="game.php?village={$village.id}&screen=main&action=cancel&id={$do_build.$id.r_id}&mode=build&h={$hkey}" onclick="return confirm('{$lang->grab('main','cancel_confirm')}')">{$lang->grab("main", "doCancel")}</a></td>
</tr>
{/foreach}
{* ZUSATZKOSTEN FÜR DEN NÄCHSTEN AUFTRAG*}
{if $num_do_build>2}
<tr>
<td colspan="4">{$costs_plus}%<br />
<small>{$lang->grab("main", "plus_costs_cancel")}</small></td>
</tr>
{/if}
</table>
<br />
{/if}
{if !empty($error)}
<span class="error">{$error}</span>
{/if}
{if $village.main >= 1 AND $village.agreement == 100}
<table class="vis">
<tbody>
<tr>
{if $mode == 'destroy'}
<td width="100">
{else}
<td class="selected" width="100">
{/if}
<a href="game.php?village={$village.id}&screen=main">{$lang->grab("main", "build")}</a>
</td>
{if $mode == 'destroy'}
<td class="selected" width="100">
{else}
<td width="100">
{/if}
<a href="help.php?mode=buildings">Gebäudevoraussetzungen</a>
</td>
</tr>
</tbody>
</table>
{/if}
<table class="vis">
<tr>
<th width="220">{$lang->grab("main", "building")}</th><th colspan="4">{$lang->grab("main", "need")}</th><th width="100">{$lang->grab("main", "build_time")}<br /> (hh:mm:ss)</th><th width="200">{$lang->grab("main", "build")}</th>
</tr>
{foreach from=$fulfilled_builds item=dbname key=id}
<tr>
<td><a href="game.php?village={$village.id}&screen={$dbname}"><img src="{$image_base}/buildings/{$dbname}.png" alt="" /> {$cl_builds->get_name($dbname)}</a> ({$village.$dbname|stage})</td>
{if $cl_builds->get_maxstage($dbname)<=$build_village.$dbname}
<td colspan="6" align="center" class="inactive">{$lang->grab("error", "full_build")}</td>
{else}
<td><img src="{$image_base}/holz.png" title="{$lang->grab('game', 'wood')}" alt="" />{$cl_builds->get_wood($dbname,$build_village.$dbname+1)}</td>
<td><img src="{$image_base}/lehm.png" title="{$lang->grab('game', 'stone')}" alt="" />{$cl_builds->get_stone($dbname,$build_village.$dbname+1)}</td>
<td><img src="{$image_base}/eisen.png" title="{$lang->grab('game', 'iron')}" alt="" />{$cl_builds->get_iron($dbname,$build_village.$dbname+1)}</td>
<td>{if $cl_builds->get_bh($dbname,$build_village.$dbname+1)>0}<img src="{$image_base}/face.png" title="{$lang->grab('game', 'worker')}" alt="" />{$cl_builds->get_bh($dbname,$build_village.$dbname+1)}{/if}</td>
<td>{$cl_builds->get_time($village.main,$dbname,$build_village.$dbname+1)|format_time}</td>
{$cl_builds->build($village,$id,$build_village,$plus_costs)}
{if $cl_builds->get_build_error2()=='not_enough_ress'}
<td class="inactive"><span>{$lang->grab("error", "ress_available_in")} <span class="timer_replace">{$cl_builds->get_build_error()}</span></span><span style="display:none">
{if $build_village.$dbname < 1}
{if count($do_build)>2 && $user.confirm_queue==1}
<a href="game.php?village={$village.id}&screen=main&action=build&id={$dbname}&force&h={$hkey}" onclick="return confirm('{$lang->grab("main", "build_confirm")}')">{$lang->grab("main", "build")}</a>
{else}
<a href="game.php?village={$village.id}&screen=main&action=build&id={$dbname}&h={$hkey}">{$lang->grab("main", "build")}
{/if}
{else}
{if count($do_build)>2 && $user.confirm_queue==1}
<a href="game.php?village={$village.id}&screen=main&action=build&id={$dbname}&force&h={$hkey}" onclick="return confirm('{$lang->grab("main", "build_confirm")}')">{$lang->grab("main", "build_on_stage")} {$build_village.$dbname+1}</a>
{else}
<a href="game.php?village={$village.id}&screen=main&action=build&id={$dbname}&h={$hkey}">{$lang->grab("main", "build_on_stage")} {$build_village.$dbname+1}</a>
{/if}
{/if}
</span></td>
{elseif $cl_builds->get_build_error2()=='not_enough_ress_plus'}
<td class="inactive">{$lang->grab("error", "not_enough_ress_plus")}</td>
{elseif $cl_builds->get_build_error2()=='not_fulfilled'}
<td class="inactive">{$lang->grab("error", "not_fulfilled")}</td>
{elseif $cl_builds->get_build_error2()=='not_enough_bh'}
<td class="inactive">{$lang->grab("error", "not_enough_bh")}</td>
{elseif $cl_builds->get_build_error2()=='not_enough_storage'}
<td class="inactive">{$lang->grab("error", "not_enough_storage")}</td>
{else}
{if $build_village.$dbname < 1}
{if count($do_build)>2 && $user.confirm_queue==1}
<td><a href="game.php?village={$village.id}&screen=main&action=build&id={$dbname}&force&h={$hkey}" onclick="return confirm('{$lang->grab("main", "build_confirm")}')">{$lang->grab("main", "build")}</a></td>
{else}
<td><a href="game.php?village={$village.id}&screen=main&action=build&id={$dbname}&h={$hkey}">{$lang->grab("main", "build")}</td>
{/if}
{else}
{if count($do_build)>2 && $user.confirm_queue==1}
<td><a href="game.php?village={$village.id}&screen=main&action=build&id={$dbname}&force&h={$hkey}" onclick="return confirm('{$lang->grab("main", "build_confirm")}')">{$lang->grab("main", "build_on_stage")} {$build_village.$dbname+1}</a></td>
{else}
<td><a href="game.php?village={$village.id}&screen=main&action=build&id={$dbname}&h={$hkey}">{$lang->grab("main", "build_on_stage")} {$build_village.$dbname+1}</a></td>
{/if}
{/if}
{/if}
{/if}
</tr>
{/foreach}
</table>
{/if}
<form action="game.php?village={$village.id}&screen=main&action=change_name&h={$hkey}" method="post">
<table>
<tr><th colspan="3">{$lang->grab("main", "change_village_name")}</th></tr>
<tr><td><input type="text" name="name" value="{$village.name}" /></td><td><input type="submit" value="{$lang->grab("main", "change")}" /></td></tr>
</table>
</form>
Posts: 128
Threads: 5
Joined: May 2015
Reputation:
6
doch:
|