I am struggling with dialog images and buttons. Basically what I want is a clickable image in a dialog window.
If I use a dialog button then set the text to an image path, it breaks when I change resolutions. I've tried overlaying a button and a seperate image, but then 1 covers the other up. If the image is ontop I can't click the button, if the image is underneath it looks wierd cause the button is only semi transparent.
Is there any way I can make just a clickable image?
I know this is a rather old thread, but I encountered the same problem and figured out the solution:
If you place a button under an image, the image will prevent the button from being clicked if the image has a tooltip. If the image has no tooltip, the button will be clickable just as if the image wasn't there. If a tooltip is desired, it needs to be placed upon the button instead of the image.
The best solution is to make whatever button you want doubled in length +4 pixels. Then copy the image to the bottom. For example:
A button you want displayed is 64x64. You need to extend it to (64 * 2) + 4. Which would give you 64x132. Then, you just need to simply copy and paste the top half to the bottom half of the image. This is because SC2 handles buttons differently. SC2 takes both the bottom half and the top half of the image to make the button. After you create your button, make sure to set the image type to normal.
Rollback Post to RevisionRollBack
Project Rise of Nigma
To post a comment, please login or register a new account.
I am struggling with dialog images and buttons. Basically what I want is a clickable image in a dialog window.
If I use a dialog button then set the text to an image path, it breaks when I change resolutions. I've tried overlaying a button and a seperate image, but then 1 covers the other up. If the image is ontop I can't click the button, if the image is underneath it looks wierd cause the button is only semi transparent.
Is there any way I can make just a clickable image?
@viridiansky: Go
I know this is a rather old thread, but I encountered the same problem and figured out the solution:
If you place a button under an image, the image will prevent the button from being clicked if the image has a tooltip. If the image has no tooltip, the button will be clickable just as if the image wasn't there. If a tooltip is desired, it needs to be placed upon the button instead of the image.
@Khalanil1: Go
The best solution is to make whatever button you want doubled in length +4 pixels. Then copy the image to the bottom. For example:
A button you want displayed is 64x64. You need to extend it to (64 * 2) + 4. Which would give you 64x132. Then, you just need to simply copy and paste the top half to the bottom half of the image. This is because SC2 handles buttons differently. SC2 takes both the bottom half and the top half of the image to make the button. After you create your button, make sure to set the image type to normal.