I set up a pulldown in a dialog, but the selection won't appear. That is, when I select one of the list items, nothing shows up when the pulldown is contracted. The item remains highlighted when it's expanded. Not sure what exactly is wrong here.
**remove any triggers which could be interfering. ie disable all "dialog item used" triggers.**
replace the code with
i = 0;
PerkDropdown[i] = DialogCreateItem(PerkDialog, c_triggerControlTypePulldown, Width - 80, 40, c_anchorCenter, 6, -25+(42*i), "BLABLABLABLA");
DialogControlAddItem(PerkDropdown[i], PlayerGroupAll(), "test string");
wait(60);
The wait is to make sure that no other code is executed after this which could mess things up. It would give you 60 seconds to try it out without interference.
Forums make for a very hard medium to debug triggers. It is hard to know what could be going wrong to help you with.
I set up a pulldown in a dialog, but the selection won't appear. That is, when I select one of the list items, nothing shows up when the pulldown is contracted. The item remains highlighted when it's expanded. Not sure what exactly is wrong here.
odd.
Have you tried creating one from scratch?
ie. create a new map and in the initialization trigger create a dialog and pulldown menu. add a few options and test it.
If that doesn't work then it sounds like a bug and you should report it to blizzard
Tried making one from scratch just now, which worked. My code still doesn't and I have no idea why. Here's an excerpt of my code.
@DieHappy1234:
If I were to have such a problem I would...
first of all SAVE so as not to screw things up!
**remove any triggers which could be interfering. ie disable all "dialog item used" triggers.**
replace the code with
i = 0;
PerkDropdown[i] = DialogCreateItem(PerkDialog, c_triggerControlTypePulldown, Width - 80, 40, c_anchorCenter, 6, -25+(42*i), "BLABLABLABLA");
DialogControlAddItem(PerkDropdown[i], PlayerGroupAll(), "test string");
wait(60);
The wait is to make sure that no other code is executed after this which could mess things up. It would give you 60 seconds to try it out without interference.
Forums make for a very hard medium to debug triggers. It is hard to know what could be going wrong to help you with.
good luck though