Tokens
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
4 posts
• Page 1 of 1
Tokens
by Chris H. » 08 Dec 2009, 00:53
Tokens
I have a question. Dennis spent some time creating the token "c.setImageName()" code. And with the previous changes made to the existing tokens it may make sense to also convert over the Kobolds of Kher Keep and Kelp tokens.
I can add this to the Kher Keep code:
c.setImageName("R 0 1 Kobolds of Kher Keep");
and we would want to find and name the appropriate jpg:
r_0_1_kobolds_of_kher_keep.jpg
I can add this to the Wall of Kelp code:
c.setImageName("U 0 1 Kelp");
and we would want to re-name the appropriate jpg:
u_0_1_kelp.jpg
I have a question. Dennis spent some time creating the token "c.setImageName()" code. And with the previous changes made to the existing tokens it may make sense to also convert over the Kobolds of Kher Keep and Kelp tokens.
I can add this to the Kher Keep code:
c.setImageName("R 0 1 Kobolds of Kher Keep");
and we would want to find and name the appropriate jpg:
r_0_1_kobolds_of_kher_keep.jpg
I can add this to the Wall of Kelp code:
c.setImageName("U 0 1 Kelp");
and we would want to re-name the appropriate jpg:
u_0_1_kelp.jpg
-

Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Tokens
by DennisBergkamp » 08 Dec 2009, 04:20
Yeah, those are actually the correct names, I forgot to change them.
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Tokens
by Chris H. » 08 Dec 2009, 11:24
`DennisBergkamp wrote:Yeah, those are actually the correct names, I forgot to change them.
No problem, I figured that it some times is easy to overlook things like this.
While I was looking at the code I also found for Dark Depths:
c.setName("Marit Lage");
c.setName("C 20 20 Marit Lage");
I think that the second one is supposed to be
c.setImageName("C 20 20 Marit Lage");
I will fix these myself and will merge the corrections into the SVN later today.
-

Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: Tokens
by Chris H. » 08 Dec 2009, 13:15
I see that Dark Depths creates a black and not a colorless token. I will fix and merge this into the SVN.
Our token needs to be renamed:
b_20_20_marit_lage.jpg
Our token needs to be renamed:
b_20_20_marit_lage.jpg
-

Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 15 guests