View Single Post
  #750  
Old 23-06-2021, 09:41
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by sajmon83 View Post
Cesar82 I can't figure out how [MusicIcon] it works properly together with MusicIcon.png. Could you give a simple example of what MusicIcon.png should look like. My guess is that it should have two states, but I've already tried vertically (39x78) and horizontally (78x39). And it looks bad all the time
Code:
[MusicIcon]
Width=39
Height=39
Icon buttons must have measurements: HEIGHT = WIDTH * 8

Code:
Image file:
MusicIcon.png = 26x208 pixels (8 * 26 = 208)

Setup.ini example
[MusicIcon]
Width=26
Height=26

Image Layout (Top to Bottom):
1) BTN NORMAL   - IF MUSIC CHECKED
2) BTN SELECTED - IF MUSIC CHECKED
3) BTN CLICKED  - IF MUSIC CHECKED
4) BTN DISABLED - IF MUSIC CHECKED
5) BTN NORMAL   - IF MUSIC UNCHECKED
6) BTN SELECTED - IF MUSIC UNCHECKED
7) BTN CLICKED  - IF MUSIC UNCHECKED
8) BTN DISABLED - IF MUSIC UNCHECKED
I recommend that you always create the button in the exact size it will appear in the project.
If your button image is larger, create a new project with the button's final dimensions and add the larger button as a smart object and save your final png in the dimensions specified in Setup.ini.

EDIT:
- Added CIU hotfix in previous post.
Attached Images
File Type: png btn.png (4.3 KB, 171 views)
Attached Files
File Type: 7z MusicIconAR PSD.7z (32.5 KB, 10 views)

Last edited by Cesar82; 08-07-2021 at 15:03.
Reply With Quote
The Following 6 Users Say Thank You to Cesar82 For This Useful Post:
andreiutzu21 (23-06-2021), ffmla (24-06-2021), Grumpy (23-06-2021), GTX590 (23-06-2021), mausschieber (23-06-2021), sajmon83 (23-06-2021)