TWLan Forum
Schriftfarbe ändern - Printable Version

+- TWLan Forum (https://twlan.org)
+-- Forum: Deutsch (https://twlan.org/forumdisplay.php?fid=1)
+--- Forum: Fragen & Probleme (https://twlan.org/forumdisplay.php?fid=70)
+--- Thread: Schriftfarbe ändern (/showthread.php?tid=43497)



Schriftfarbe ändern - Jujan - 04.08.2017

Kann mir jmd bitte sagen wie ich die ingame schriftfarbe ändern kann?


RE: Entwicklung - 0xEAB - 06.08.2017

Mit CSS in den entsprechenden Stylesheet-Dateien (*.css).


RE: Entwicklung - Jujan - 23.08.2017

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


RE: Entwicklung - SlimShady95 - 24.08.2017

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


RE: Entwicklung - Jujan - 25.08.2017

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?


RE: Schriftfarbe ändern - 0xEAB - 26.08.2017

templates/game_main.tpl: Zeile 98 ff.


RE: Schriftfarbe ändern - Jujan - 08.09.2017

danke


RE: Schriftfarbe ändern - Jujan - 12.09.2017

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}&amp;screen=main&amp;action=cancel&amp;id={$do_build.$id.r_id}&amp;mode=build&amp;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}&amp;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}&amp;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}&amp;screen=main&amp;action=build&amp;id={$dbname}&amp;force&amp;h={$hkey}" onclick="return confirm('{$lang->grab("main", "build_confirm")}')">{$lang->grab("main", "build")}</a>
                               {else}
                                   <a href="game.php?village={$village.id}&amp;screen=main&amp;action=build&amp;id={$dbname}&amp;h={$hkey}">{$lang->grab("main", "build")}
                               {/if}
                           {else}
                               {if count($do_build)>2 && $user.confirm_queue==1}
                                   <a href="game.php?village={$village.id}&amp;screen=main&amp;action=build&amp;id={$dbname}&amp;force&amp;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}&amp;screen=main&amp;action=build&amp;id={$dbname}&amp;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}&amp;screen=main&amp;action=build&amp;id={$dbname}&amp;force&amp;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}&amp;screen=main&amp;action=build&amp;id={$dbname}&amp;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}&amp;screen=main&amp;action=build&amp;id={$dbname}&amp;force&amp;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}&amp;screen=main&amp;action=build&amp;id={$dbname}&amp;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}&amp;screen=main&amp;action=change_name&amp;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>



RE: Schriftfarbe ändern - 0xEAB - 13.09.2017

doch:

[Image: 6297Up_thumb.png]