Jump to content

[Tutorial] How to add icons next to your switch in a Patcher!


Rook

4 posts in this topic

Recommended Posts

Updated

Today I'll show you how to add and icon next to your patchers settings like in the screenshot below: 

 

m9GUU3el.png

 

Let's get started!

 

1. You will need to find some icons on the internet or you can grab them from the Apps .app folder.

 

Some icon sites: 

 

 

 

2. Icon size should be 29x29/32x32/48x48 and you will also need an [email protected] for iPads (57x57) but I haven't figured that out yet since I don't own an iPad.

 

3. After you have obtained the icons, you will upload them in the "Resources" folder of you Preference Bundle project folder. Name them as you wish so you won't get mixed up when editing the plist. If you don't know where that folder is then read this tutorial.

 

2ejsjmC.png

 

 

 

4. Now edit the .plist file which is also located in the Resources folder.

<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>Gives you unlimited Gold when turned on.</string> //Displays text under the switch
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>com.iosgods.xxxx</string>
			<key>icon</key>
			<string>ICONNAMEHERE.PNG</string> //This is where you will insert your icon name
			<key>key</key>
			<string>kKEY</string>
			<key>label</key>
			<string>Unlimited Gold</string>
		</dict>
So you need to replace ICONNAMEHERE.PNG with the icon name in the Resources folder you uploaded. In my case it's "gold.png" so I will enter that there.

<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>footerText</key>
			<string>Gives you unlimited Gold when turned on.</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<false/>
			<key>defaults</key>
			<string>com.iosgods.xxx</string>
			<key>icon</key>
			<string>gold.png</string>
			<key>key</key>
			<string>kKEY</string>
			<key>label</key>
			<string>Unlimited Gold</string>
		</dict>
Same thing goes with the rest of the switches. Just add the code below and replace the icon name with the one you have.

<key>icon</key>
<string>icon.png</string>
You can also add icons next to buttons or even better replace them with the text completely.

PHYAkgtl.png

 

That's it! Stay tuned for more!

Posted

Boss can you explain better how to make a preference bundle hack? I've followed the SUPERGIU topic,but,I don't understand what I need to modify..

Posted

Boss can you explain better how to make a preference bundle hack? I've followed the SUPERGIU topic,but,I don't understand what I need to modify..

Which part of Supergiu's topic are you stuck at? 

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines