Jump to content

[Tutorial] How to add an icon to your Preference Bundle


25 posts in this topic

Recommended Posts

Here's a quick tutorial showing how you can add an icon to your Preference Patcher.

If you are having trouble understanding the tutorial below then go ahead and take a look at this video.


1. Run the command to start making a new project (I'll be using PuTTY for this)

login as: root
[email protected]'s password:
DiDAs-iPhone:~ root# /var/theos/bin/nic.pl
NIC 2.0 - New Instance Creator
------------------------------  
[1.] iphone/application  
[2.] iphone/library  
[3.] iphone/preference_bundle  
[4.] iphone/tool  
[5.] iphone/tweak
Choose a Template (required): 5
Project Name (required): igtutorial
Package Name [com.yourcompany.igtutorial]: com.iosgods.igtutorial
Author/Maintainer Name [System Administrator]: DiDA
[iphone/tweak]
MobileSubstrate Bundle filter [com.apple.springboard]:[iphone/tweak] List of applications to terminate upon installation (space-separated, '-' for none) [SpringBoard]:
Instantiating iphone/tweak in igtutorial/... Done.
DiDAs-iPhone:~ root#

2. Next, CD into your project folder and run /var/theos/bin/nic.pl again and choose #3 iPhone/Preference_Bundle. This will automatically add it as a sub project in the 'makefile'.


DiDAs-iPhone:~ root# cd /var/root/igtutorial/
DiDAs-iPhone:~/igtutorial root# /var/theos/bin/nic.pl
NIC 2.0 - New Instance Creator
------------------------------  
[1.] iphone/application  
[2.] iphone/library  
[3.] iphone/preference_bundle  
[4.] iphone/tool  
[5.] iphone/tweak
Choose a Template (required): 3
Project Name (required): igtutpref
Package Name [com.yourcompany.igtutpref]: com.iosgods.igtutpref
Author/Maintainer Name [System Administrator]: DiDA
Instantiating iphone/preference_bundle in igtutpref/...
Adding 'igtutpref' as an aggregate subproject in Theos makefile 'Makefile'.
Done.
DiDAs-iPhone:~/igtutorial root#

You should have these files: FQD5PRh.png



3. By default, you will need an "igtutpref.png" icon based on the project name you've entered. You can change this to whatever you like as long as it's the same as the one in the entry.plist file located in /path/to/project/igtutorial/igtutpref/


<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>items</key>
	<array>
		<dict>
			<key>cell</key>
			<string>PSGroupCell</string>
			<key>label</key>
			<string>igtutpref First Page</string>
		</dict>
		<dict>
			<key>cell</key>
			<string>PSSwitchCell</string>
			<key>default</key>
			<true/>
			<key>defaults</key>
			<string>com.iosgods.igtutpref</string>
			<key>key</key>
			<string>AwesomeSwitch1</string>
			<key>label</key>
			<string>Awesome Switch 1</string>
		</dict>
	</array>
	<key>title</key>
	<string>igtutpref</string>
</dict>
</plist>

4. You can get the icon of the game from their .app folder or you can craft one yourself or even find one on Google. The recommended size is 32x32 or 16x16.
p566gYyl.png



5. After you have obtained the icon, simply copy it to the "Resources" folder located inside the "igtutpref" folder.
XhzMSyUl.png



6. Once you're finished, CD back into your project folder and type make package install to see the new icon on the settings.app.


DiDAs-iPhone:~/igtutorial root# make package install
/var/root/igtutorial/theos/makefiles/targets/Darwin-arm/iphone.mk:46: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang./var/root/igtutorial/theos/makefiles/targets/Darwin-arm/iphone.mk:56: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.Making all for tweak igtutorial...make[2]: Nothing to be done for `internal-library-compile'.Making all in igtutpref...Making all for bundle igtutpref... Copying resource directories into the bundle wrapper... Compiling igtutpref.mm... Linking bundle igtutpref... Stripping igtutpref... Signing igtutpref...Making stage for tweak igtutorial...Making stage in igtutpref...Making stage for bundle igtutpref...dpkg-deb: building package `com.iosgods.igtutorial' in `./com.iosgods.igtutorial_0.0.1-1_iphoneos-arm.deb'.install.exec "dpkg -i \"./com.iosgods.igtutorial_0.0.1-1_iphoneos-arm.deb\""Selecting previously deselected package com.iosgods.igtutorial.(Reading database ... 7502 files and directories currently installed.)Unpacking com.iosgods.igtutorial (from .../com.iosgods.igtutorial_0.0.1-1_iphoneos-arm.deb) ...Setting up com.iosgods.igtutorial (0.0.1-1) ...Making after-install in igtutpref...install.exec "killall -9 SpringBoard"
DiDAs-iPhone:~/igtutorial root#

Final Result:
Ai8se7Pl.png



Note: If you get this error:


fatal error: 'Preferences/Preferences.h' file not found

Refer to this post here.

You can also change the title of the Patcher that is displayed on the settings from the entry.plist file.

That's all!

Reply below if you have any problems! :)

Project template: How to add icon to Preference Bundle

Want custom icons? Ask here: http://iosgods.com/topic/1228-icons-for-patchers-hacks-in-settings/

Updated by DiDA

All that to use ur own icons??

Whatever happened to themes bundled with icons? Oh wait....

All you literally have to do is just copy the icon to the resources folder. The only reason why this tutorial is so long is because it's explained in details for the new guys. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • Lucky Defense! Cheats v1.4.11 +2
      Modded/Hacked App: Lucky Defense! By Crater Co., Ltd.
      Bundle ID: com.percent.ios.luckydefense
      iTunes Store Link: https://apps.apple.com/us/app/lucky-defense/id6482291732?uo=4


      Hack Features:
      - Free Spawn
      - Unlimited Spawn
      - Free In-Game Upgrade


      iOS Hack Download Link: https://iosgods.com/topic/183406-lucky-defense-cheats-v121-3/
      • 173 replies
    • FarmVille 2: Country Escape Cheats v27.2 +1
      Modded/Hacked App: FarmVille 2: Country Escape by Zynga Inc.
      Bundle ID: com.zynga.FarmVille2CountryEscape
      iTunes Store Link: https://apps.apple.com/us/app/farmville-2-country-escape/id824318267?uo=4&at=1010lce4


      Hack Features:
      - Freeze Key


      iOS Hack Download Link: https://iosgods.com/topic/101607-arm64-farmville-2-country-escape-cheats-v1263984-1/
      • 1,966 replies
    • Immortal Rising Cheats v2.5.1 +4
      Modded/Hacked App: Immortal Rising By MOBIRIX
      Bundle ID: com.badbeans.DarkIdle
      iTunes Store Link: https://apps.apple.com/us/app/immortal-rising/id1588863558?uo=4


      Hack Features:
      - God Mode
      - One Hit Kill
      - PREMIUM
      - Freeze Currencies*

      *Abuse = Ban


      iOS Hack Download Link: https://iosgods.com/topic/178921-immortal-rising-cheats-v222-4/
      • 166 replies
    • HomeScapes v7.6.5 Jailed Cheats +3
      Modded/Hacked App: Homescapes By PLR Worldwide Sales Limited
      Bundle ID: com.playrix.gardenscapes-sweethome
      iTunes Store Link: https://apps.apple.com/us/app/homescapes/id1195621598?uo=4


      Hack Features:
      - Infinite Moves
      - Infinite Booster
      - Infinite Lives
       

      Hack Download Link: https://iosgods.com/topic/71443-arm64-homescapes-483-jailed-cheats-3/
      • 2,383 replies
    • Candy Crush Saga v1.294.1 Jailed Cheats +3
      Modded/Hacked App: Candy Crush Saga By King.com Limited
      Bundle ID: com.midasplayer.apps.candycrushsaga
      iTunes Store Link: https://apps.apple.com/us/app/candy-crush-saga/id553834731?uo=4


      Hack Features:
      - Infinite Life
      - Infinite Booster
      - Infinite Move


      Jailbreak required hack(s): https://iosgods.com/topic/190447-candy-crush-saga-cheats-v12941-3/


      iOS Hack Download IPA Link: https://iosgods.com/topic/190448-candy-crush-saga-v12941-jailed-cheats-3/
      • 13 replies
    • Cat Snack Bar Cheats v1.0.159 +1
      Modded/Hacked App: Cat Snack Bar By treeplla Inc.
      Bundle ID: com.tree.idle.catsnackbar
      iTunes Store Link: https://apps.apple.com/us/app/cat-snack-bar/id6443895159?uo=4


      Hack Features:
      - Freeze Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/170232-cat-snack-bar-v1036-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/170233-cat-snack-bar-cheats-v1036-1/
      • 67 replies
    • Archero Cheats v6.9.1 +5 [ God Mode & More ]
      Modded/Hacked App: Archero by HABBY PTE. LTD.
      Bundle ID: com.habby.archero
      iTunes Store Link: https://apps.apple.com/us/app/archero/id1453651052?uo=4&at=1010lce4



      Hack Features:
      - Multiply Defense to
      - Multiply Damage to
      - God Mode
      - OHK (Must use with God Mode)
      - Freeze Enemies

      NOTE: If you want to use god mode and ohk turn off multiply damage and defense first. I added multiply damage and defense there to avoid ban


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/100710-archero-v210-enemies-dont-attack-x30-attack/


      Hack Download Link: https://iosgods.com/topic/96783-arm64-archero-cheats-v220-5/
      • 15,764 replies
    • Eatventure v1.30.0 Jailed Cheats +2
      Modded/Hacked App: Eatventure By Lessmore UG haftungsbeschraenkt
      Bundle ID: com.hwqgrhhjfd.idlefastfood
      iTunes Store Link: https://apps.apple.com/us/app/eatventure/id1600871388?uo=4


      Hack Features:
      - Freeze Currencies
      - Free iAP (Turn on inside iOSGods Mod Menu first)


      Jailbreak required hack(s): https://iosgods.com/topic/168170-eatventure-cheats-all-versions-1/


      iOS Hack Download IPA Link: https://iosgods.com/topic/168169-eatventure-v110-jailed-cheats-2/
      • 290 replies
    • Subway Surfers Cheats v3.40.4 +5
      Modded/Hacked App: Subway Surfers by Sybo Games ApS
      Bundle ID: com.kiloo.subwaysurfers
      iTunes Store Link: https://apps.apple.com/us/app/subway-surfers/id512939461?uo=4&at=1010lce4


      Hack Features:
      - Infinite Currencies
      - Unlock Characters Outfit
      - Custom Jump Height
      - No Clip (You can't end level with this even if you turned it off)


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/119795-arm64-subway-surfers-v231-jailed-cheats-2/


      iOS Hack Download Link: https://iosgods.com/topic/119793-arm64-subway-surfers-cheats-all-versions-4/
      • 2,253 replies
    • EA SPORTS FC™ (FIFA) MOBILE SOCCER v24.0.02 Jailed Cheats +2
      Modded/Hacked App: EA SPORTS FC™ MOBILE 24 SOCCER By EA Swiss Sarl
      Bundle ID: com.ea.ios.fifamobile
      iTunes Store Link: https://apps.apple.com/us/app/ea-sports-fc-mobile-24-soccer/id1094930513?uo=4

      Hack Features:
      - Keeper on Drugs
      - Stupid AI Defense - Sometimes works, sometimes doesn't.

      Credit: @0xSUBZ3R0
      • 539 replies
    • Matchington Mansion Cheats v1.173.0 +5
      Modded/Hacked App: Matchington Mansion by Baklava Entertainment Societe Anonyme
      Bundle ID: com.matchington.mansion
      iTunes Store Link: https://itunes.apple.com/us/app/matchington-mansion/id1216575026?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Moves
      - Infinite Lives
      - Infinite Booster
      - Infinite Coin (Spend some/ Get some)
      - Infinite Stars (Complete task without needing Stars)



      Hack Download Link: https://iosgods.com/topic/75127-arm64-matchington-mansion-cheats-v131-5/
      • 785 replies
    • God Keeper ( ケモミミヤシロ ) v1.2.0 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: ケモミミヤシロ By HAKONY LLC.
      Bundle ID: com.hakony.godkeeper
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%82%B1%E3%83%A2%E3%83%9F%E3%83%9F%E3%83%A4%E3%82%B7%E3%83%AD/id6450285105?uo=4


      Hack Features:
      - Coin Multiplier
      - Prayer Multiplier
      - Daily Orb Multiplier
      - Daily Diamond Multiplier


      Jailbreak required hack(s): [Mod Menu Hack] God Keeper ( ケモミミヤシロ ) v1.0.6 +4 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 17 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