Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Basically the image would change and a sfx at the same time.
Thank you for the help!
thank you soooo much!! yes,
[button name="button_css" storage="test.ks" target=*test01 [b] graphic="button1.png" [/b] width="160" height="100" x=392 y=306 ]
graphic="button1.png" must be transparent, sorry I didn't see you'r note.
Thank you angain !!!
At the end of this guide is a very important info: The graphic of the image button have to be transparent !
[button name="button_css" ... [b]graphic="button1.png"[/b] ... ] <--- This image has to be a transparent image. It may not button1 or button2. :) The Button changed, but u can't see it, because the button is the toppest layer.
Maybe i should note this at the beginning.
.button_css{
opacity : 0.8;
}
.button_css:hover{
opacity : 1;
}
It's working too.
[html]<link href="custom.css" type="text/css" rel="stylesheet">[endhtml]
[button name="button_css" storage="test.ks" target=*test01 graphic="button1.png" width="160" height="100" x=392 y=306 ]
and my "custom.css"
.button_css{
background-image: url(data/image/button1.png);
}
.button_css:hover{
background-image: url(data/image/button2.png);
}
button1.png didn't change button2.png
.button_css:hover{
margin-left: 20px;
}
It's worked, but
.button_css{
background-image: url(data/image/button1.png);
}
.button_css:hover{
background-image: url(data/image/button2.png);
}
It's keep didn't work, i'm pretty sure my image and custom.css in the right place.
What did i do wrong?