I'm making a dialog that allows you to select your hero, I'm wanting to have the hero's icon to be the actual button, the way I'm trying ro do this isn't working correctly. It is doing the following:
http://i228.photobucket.com/albums/ee301/Fuglypump/dialog1.jpg
The Archon's picture is the way I'm wanting my buttons to look like, but when add a button to the same place, it appears like the High Templar, the problem is that the button is overtop of the picture, because the button is placed after the picture, but when i place the button before the picture, the button can't be pressed because the picture is actually in the way.
I've tried several ways to make it work, but I can't seem to figure it out, here is what I've got.
http://i228.photobucket.com/albums/ee301/Fuglypump/dialog2.jpg
note that I don't have an event because this trigger is ran at the end of another trigger.
Have you tried "set dialog item image" instead of just displaying the picture?
yes, the image is stretched out way larger than the button's size, but now that you mention it I might as well try modifying it's size. I didn't think of that before
Dont use Set Dialog Item Image - it always stretched and cant be used, bugged, you have to create 2 dialog items ontop of eachother - 1 button and 1 image of the same size but the OP is already doing that
You are setting the Archon Icon as Last Created Dialog Item without ever having made a dialog item or is it not made in this trigger?
Then you made the Archon Image and set it to High Templar variable
Dont use Set Dialog Item Image - it always stretched and cant be used, bugged, you have to create 2 dialog items ontop of eachother - 1 button and 1 image of the same size but the OP is already doing that
You are setting the Archon Icon as Last Created Dialog Item without ever having made a dialog item or is it not made in this trigger?
Then you made the Archon Image and set it to High Templar variable
yeah i noticed that after i posted the screenshot and corrected it, it didn't make any difference then, if you look at the picture I have them both, but the image appears darkened because it is behind the button, the bright picture is in the way of the button and can't be pressed.
editing the text of the button hasn't seemed to work for me either.
then make sure the image dialog is created first so the button dialog is ontop, then it can be pressed
also use Fade Dialog Item Transparency (fade time of 0) to set the button transparency
I cant see why your image is missplaced but thats only cause your screenshot isnt up to date, but it most definetly is a tiny mistake somewhere, look it all over carefully
You need to make the buttons bigger, I found the needed size for the archon button (which is 76 * 76 in the preview) is really 98 * 98, so set the height and width of the buttons to 98 * 98 (if that doesn't work, try bigger) and it should work
You need to make the buttons bigger, I found the needed size for the archon button (which is 76 * 76 in the preview) is really 98 * 98, so set the height and width of the buttons to 98 * 98 (if that doesn't work, try bigger) and it should work
Great stuff you got there! Anyway this helped me a lot in dealing with button images, I don't need to create a separate image and set the blend mode now. :) Thanks
I couldn't get this to work for me, mind you, I had:
<img path="Assets\Textures\btn-unit-zerg-zergling.dds" width = "80" height = "80"/>
So I've resorted to making a dialog image, but, being placed beneath the button, it's sort of dark and hard to see.
Edit: And fading the transparency didn't change it (the fade was on the button, not the image. Any help to get one of the methods working properly would be appreciated.
I'm making a dialog that allows you to select your hero, I'm wanting to have the hero's icon to be the actual button, the way I'm trying ro do this isn't working correctly. It is doing the following: http://i228.photobucket.com/albums/ee301/Fuglypump/dialog1.jpg The Archon's picture is the way I'm wanting my buttons to look like, but when add a button to the same place, it appears like the High Templar, the problem is that the button is overtop of the picture, because the button is placed after the picture, but when i place the button before the picture, the button can't be pressed because the picture is actually in the way.
I've tried several ways to make it work, but I can't seem to figure it out, here is what I've got. http://i228.photobucket.com/albums/ee301/Fuglypump/dialog2.jpg note that I don't have an event because this trigger is ran at the end of another trigger.
@Fuglypump: Go
im still having problems, anyone have any ideas?
@Fuglypump: Go
Have you tried "set dialog item image" instead of just displaying the picture?
yes, the image is stretched out way larger than the button's size, but now that you mention it I might as well try modifying it's size. I didn't think of that before
If you follow this tutorial http://forums.sc2mapster.com/development/tutorials/6776-tutorials-triggers-character-hero-selection/#p3 there are some nice tips.
Seems he sets the text of the button to:
<img path="Assets\Textures\wireframe-terran-scientist01.dds"/>
Pilot Hero
Which will insert the image into the button.
Blizzard uses some scriptlanguage similar to html, which makes you able to mix text and images in button objects.
Dont use Set Dialog Item Image - it always stretched and cant be used, bugged, you have to create 2 dialog items ontop of eachother - 1 button and 1 image of the same size but the OP is already doing that
You are setting the Archon Icon as Last Created Dialog Item without ever having made a dialog item or is it not made in this trigger?
Then you made the Archon Image and set it to High Templar variable
@SweetZombieJesus: Go
I'm not setting the image ever, I'm setting the text of the button to an image link
Guess you didn't reply to me ;P
@Swedishcow: Go
Was a reply mostly to the OP
(also general advice not to use set dialog item image)
yeah i noticed that after i posted the screenshot and corrected it, it didn't make any difference then, if you look at the picture I have them both, but the image appears darkened because it is behind the button, the bright picture is in the way of the button and can't be pressed.
editing the text of the button hasn't seemed to work for me either.
did you download the map? it's pretty easy to follow
then make sure the image dialog is created first so the button dialog is ontop, then it can be pressed also use Fade Dialog Item Transparency (fade time of 0) to set the button transparency
I cant see why your image is missplaced but thats only cause your screenshot isnt up to date, but it most definetly is a tiny mistake somewhere, look it all over carefully
Here is what I have now: http://i228.photobucket.com/albums/ee301/Fuglypump/dialog3-1.jpg
Here is what it looks like: http://i228.photobucket.com/albums/ee301/Fuglypump/dialog4.jpg
the text on the buttons are:
<img path="Assets\Textures\btn-unit-protoss-archon.dds"/>
<img path="Assets\Textures\btn-unit-protoss-hightemplar.dds"/>
<img path="Assets\Textures\btn-unit-protoss-darktemplar.dds"/>
<img path="Assets\Textures\btn-unit-protoss-immortal.dds"/>
@Fuglypump: Go
You need to make the buttons bigger, I found the needed size for the archon button (which is 76 * 76 in the preview) is really 98 * 98, so set the height and width of the buttons to 98 * 98 (if that doesn't work, try bigger) and it should work
The image should scale just fine, my buttons with icons are 80x80
Anyway you dont need to show dialog items, they are shown by default (unlike dialogs)
But what is the problem now? There are no images in your code to display Simply add them with the same coordinates and offset and they will be fine
wow! that got it to work!
Thank you! :D http://i228.photobucket.com/albums/ee301/Fuglypump/dialog5.jpg
@Fuglypump: Go
Found a way to change the dimensions of the picture!
You need a fairly large button to hold the mighty Archon :)
You can also add text anywhere by the picture, so it's pretty much like old school html
Set the text of the button to:
<img path="Assets\Textures\btn-unit-protoss-archon.dds" width = "150" height = "150"/>
A mighty Archon!
nice, I'm not sure I'll be resizing them because I sort of like the size they're at, but if i do decide to, this will be very helpful
I've been creating more and more heroes to fill it up so far.
http://i228.photobucket.com/albums/ee301/Fuglypump/dialog6.jpg Thanks again.
Great stuff you got there! Anyway this helped me a lot in dealing with button images, I don't need to create a separate image and set the blend mode now. :) Thanks
I couldn't get this to work for me, mind you, I had:
<img path="Assets\Textures\btn-unit-zerg-zergling.dds" width = "80" height = "80"/>
So I've resorted to making a dialog image, but, being placed beneath the button, it's sort of dark and hard to see.
Edit: And fading the transparency didn't change it (the fade was on the button, not the image. Any help to get one of the methods working properly would be appreciated.
Any possibilities here? Am I mistyping something?