Game Development Community

GuiPopUpMenuCtrl

by Chris Byars · in Torque Game Engine · 06/13/2005 (4:37 pm) · 4 replies

I am having difficulty finding what bitmap, if any, or what area of the scripts the color and look of the GuiPopUpMenuCtrl are defined.

ion-productions.com/guipopupmenuctrl.jpg
I'm trying to change the background menu/bitmap of the OpenGL/1024x768/32 drop-down menus..and cannot find how to do that. Any help would be appreciated. :)

#1
06/13/2005 (5:49 pm)
You can look at the GuiControlProfile as a start. The button itself uses the bitmap array indicated by "bitmap" in the Profile. To actually place a bitmap in the place of the generic button, one could modify the code or place a GuiBitmapButtonCtrl over the GuiPopUpMenuCtrl (matching the size so it covers it perfectly). This GuiBitmapButtonCtrl can have the command: "YourPopUpControlName.forceOnAction(); which will act as if you clicked on the Pop-up menu itself. I have used the latter approach and it functions perfectly. :)
#2
06/13/2005 (5:53 pm)
Oddly enough, I've set every bitmap about the GuiPopupMenuCtrl to the osxScroll bitmap, just to test it out, and it does not affect it. (It was natively set to darkScroll, which I modified it's hue to a blue, with no result but the normal crappy beige).
#3
06/13/2005 (5:57 pm)
I'm not sure I follow. GuiPopupMenuCtrl uses OpenGL to draw the border and the fill, it does not use a bitmaparray. I'm not sure, but this is what I remember from last year when I fiddled with it.
#4
06/13/2005 (5:59 pm)
..Oh.

Well I've found another way to get what I want. I'll just make a new profile with the colorations I wish to have and stuff. (I used AmmoPrintProfile as the profile for these, and discovered that it indeed affects it.) So what I'll do is make a new profile with the colors/size/transparencies I want. :)

Gracias anyways.