Can't skin a GuiPopUpMenuCtrl
by Fabio Luis Stange · in Game Design and Creative Issues · 02/03/2007 (12:45 am) · 4 replies
I have sucessfully skinned every other GUI component I'm using, but the GuiPopUpMenuCtrl refuses to display anything but that flat look with a single darker border.
Anything special I need to know? What's the format of the bitmap array supposed to be?
Anything special I need to know? What's the format of the bitmap array supposed to be?
#3
Here's how:
new GuiPopUpMenuCtrl(OptGraphicsResolutionMenu) {
// ...
Command = "optionsDlg.applyGraphics();";
};
new GuiBitmapButtonCtrl() {
// ...
Command = "OptGraphicsResolutionMenu.forceOnAction();";
bitmap = "./buttons/drop_down";
};
If your bitmap is not transparent, you also have to feed the button text like steve said, but as the saying goes, simple is better then complex.
And yes, Gustavo, I'm from Brazil (Floripa).
02/24/2007 (10:36 am)
Yes, I did the same steve, only that I made a bitmap button with the middle part transparent, so I can see the text from the popupMenuCtrl underneath it.Here's how:
new GuiPopUpMenuCtrl(OptGraphicsResolutionMenu) {
// ...
Command = "optionsDlg.applyGraphics();";
};
new GuiBitmapButtonCtrl() {
// ...
Command = "OptGraphicsResolutionMenu.forceOnAction();";
bitmap = "./buttons/drop_down";
};
If your bitmap is not transparent, you also have to feed the button text like steve said, but as the saying goes, simple is better then complex.
And yes, Gustavo, I'm from Brazil (Floripa).
#4
Always nice to meet brazilian torquers.
02/24/2007 (10:51 am)
Hey Fabio, add me on MSN: msn@gustavoboni.comAlways nice to meet brazilian torquers.
Torque 3D Owner Steve Flowers
I've decided to use a custom button and profile to overlay the popupmenu and force an action, then have the popup menu populate the button text when a new item is selected...