Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 7    Views: 87

KHarley
Lost but trying
Profile
Posts: 4
Reg: Feb 03, 2014
Salem, VA
5,740
04/09/14 06:19 PM (10 years ago)

Smug Concentration

I am interested in customizing the cards for this plugin, but cannot figure out where to do this. Please advise. Thanks, K
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
04/09/14 07:00 PM (10 years ago)
android or ios?well you would just replace the images already in there, with your own, and name them the same.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/09/14 08:48 PM (10 years ago)
It's not too difficult… However, the 'card scheme' is a little different between Android and iOS… To change the cards in iOS: Create 10 cards 'per resolution'. low res are named 0.png through 9.png and are sized 46px wide x 64 px high hi-res are named [email protected] through [email protected] and are sized 92 x 128 replace the images in your BT project. To change cards in Android: Create 20 cards per resolution. There are 'two' sets of identical images. swcg_0.png & swcg_0a.png are identical all the way through to swcg_9.png & swcg_9a.png replace the images in your assets/BT_Docs… they do NOT go into res/drawable. Let me know if this makes sense. If not, happy to explain it further. Cheers! -- Smug And don't forget swcg_cb.png for the Android card back, and cardback.png and [email protected] for iOS. If you like the game, I'd appreciate a small review! :)
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
04/09/14 10:08 PM (10 years ago)
Why don't they go in the drawable folder, Smug? That is very interesting.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/09/14 10:59 PM (10 years ago)
On Android I cheated; it's basically an HTML5 game wrapped in a custom WebView for Android. Thus, the HTML references are within the BT_Docs, not res/drawable. Cheers! -- Smug
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
04/09/14 11:12 PM (10 years ago)
Smug -- can you put that ever-so-useful info into the README for the plugin? Thanks! -- Niraj
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
04/10/14 01:57 AM (10 years ago)
Interesting... just following.
 
Masons App Design
Aspiring developer
Profile
Posts: 206
Reg: Aug 06, 2013
Andrews, TX
12,660
like
04/10/14 07:51 AM (10 years ago)
Very cool
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.