Author:
Dankworth (posted
2013-07-25 16:25:14 , viewed 247 times)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
public Image image ;
public int x , y , width , height ;
public String texture ;
public GUIComponent (int x , int y , int width , int height , String texture ) {
this .x = x ;
this .y = y ;
this .width = width ;
this .height = height ;
this .texture = texture ;
if (texture .length () > 0 )
this .image = TextureLoader .load (texture );
}
public void render (GameContainer c , Graphics g ) {
image .draw (x ,y , width , height );
}
Special syntax:
To highlight a line (yellow background), prefix it with '@@'
To indicate that a line should be removed (red background), prefix it with '-'
To indicate that a line should be added (green background), prefix it with '+'
To post multiple snippets, seperate them by '~~~~'
ivj94
(584 views)
2018-03-24 14:47:39
ivj94
(49 views)
2018-03-24 14:46:31
ivj94
(382 views)
2018-03-24 14:43:53
Solater
(63 views)
2018-03-17 05:04:08
nelsongames
(109 views)
2018-03-05 17:56:34
Gornova
(159 views)
2018-03-02 22:15:33
buddyBro
(703 views)
2018-02-28 16:59:18
buddyBro
(92 views)
2018-02-28 16:45:17
xxMrPHDxx
(493 views)
2017-12-31 17:17:51
xxMrPHDxx
(733 views)
2017-12-31 17:15:51
java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org