iopietro / Travianz-Legacy

Join our Discord Server: https://discordapp.com/invite/9fbJKP9 | New repo: https://github.com/iopietro/Travianz
GNU General Public License v3.0
160 stars 94 forks source link

Replacing login / register buttons with CSS #530

Closed RevertIT closed 6 years ago

RevertIT commented 6 years ago

I don't know where to find rest of the buttons, but the drill is:

<button value="something" name="s1" id="btn_id" class="trav_buttons" alt="text"/> Button name </button>

iopietro commented 6 years ago

There are a lot of those buttons in Template files, if I'll find one, I'll replace it with your code :) .

iopietro commented 6 years ago

They look so good!

immagine

RevertIT commented 6 years ago

Alright. Also, the thing is we should replace all text images with text. Like login, starting position, choose a tribe, etc etc.

With something like . trav_text { font-size: 12px; color: #79d30f; font-weight: 700; }

<p class="trav_text">Login</p>

iopietro commented 6 years ago

Sure, do what you believe is better :) , I know a very little of CSS.

RevertIT commented 6 years ago

how to search a specific text in all files so i can replace it everywhere, where the id dynamic_btn or something similar appears?

iopietro commented 6 years ago

Which client do you use for editing CSS? With "Eclipse" you can do it very easily: 1) Ctrl + H 2) File search

RevertIT commented 6 years ago

Im writing css directly in browser in console. What I asked was how to search a github with specific text to shoe me all templates php and such with that text

iopietro commented 6 years ago

You can do that by simply writing what code you want to search, in the "Search bar": immagine immagine

RevertIT commented 6 years ago

Oh, I see, but it doesn't include templates. It's impossible that only 1PHP file is left with dynamic_btn when buttons are in templates.

iopietro commented 6 years ago

There're some buttons with different classes, I found this one with the class "dynamic_img":

<input name="del" type="image" id="btn_delete" class="dynamic_img" src="img/x.gif" value="delete" alt="delete" />

(I took this example from Templates/Notice/all.tpl)

iopietro commented 6 years ago

Here we are:

immagine

RevertIT commented 6 years ago

We have different results

https://i.imgur.com/U9uLXfE.png

iopietro commented 6 years ago

You have to search "dynamic_img" and not "dynamic_btn".

velhbxtyrj commented 6 years ago

Would not it be easier to leave the class name old and just replace the classes themselves?

velhbxtyrj commented 6 years ago

Stupidity wrote :) I forgot that more text is added :)

velhbxtyrj commented 6 years ago

@phaze1G The only thing you need to add is:

.trav_buttons {
font-weight: bold;
RevertIT commented 6 years ago

awesome @iopietro thanks for pointing out my blindness.

As for pulls and edit can you please explain me again how to edit files and to look like yours when you pull them. One commit for multiple files. If I edit login.php and amalden.php it will go as 2 commits. Your artefect and other commits have multiple edited files into one commit

iopietro commented 6 years ago

Download this: https://git-scm.com/download/win Then this: https://tortoisegit.org/download/

Install the first one, then the second. Now, create a folder, open the context menu with a right click of the mouse, click on "Git Clone" and in the "URL" field paste this repository Git Clone Url: https://github.com/Shadowss/TravianZ.git Or your fork Url: https://github.com/phaze1G/TravianZ.git

Done, you can now commit things and push them to the master by going to "Git commit -> master".