September 6, 200619 yr I am trying to make a HUD with a clickable spot that is text only. The problem is that i have to actual click on the text to make the button work. Is there any way to have a transparent clickable area?Thanks.
September 6, 200619 yr not that i have ever seen. the gun cross is visable and stationary on most huds...perhaps you can use that?
September 13, 200619 yr For other reasons, I tried to do the same. I tried to have a transparent clickable area, and after many tests and research, I came to the conclusion that it can't be done.If you find a way to do it, please let me know...Eric My Web Site
September 13, 200619 yr It can't be done in FS 2004. I hade a transparent box to close my hud gauge in fs2002 that worked. The same exact gauge did not work in fs2004 until I put some text on it.Chris
September 13, 200619 yr The size tag will create a transparent gauge.Here's a sample, which I named SimRateReset.xml, which resets the sim rate to 1.0 when you click on this "invisible" gauge. Make it any size you like and put it at any handy spot on your panel.(CAREFUL! Don't forget where you put it, grin!)256 (>K:SIM_RATE_SET)Cheers, Bob Dell410, Core2Duo E6700, 2.66Ghz, 2GB ram, nVidia 7900GTX/512MB/195.62 driver, FSX/sp1, UTX USA, Fsgenesis
September 14, 200619 yr This is interesting, I will test it immediately.In fact, my tests were done with a C++ gauge, so there might be another difference between C/C++ and XML here...Eric My Web Site
September 15, 200619 yr I was looking for a transparent area within a HUD or really an area with text but you can click on the whole rectangle the text is in.Would this work there?ThanksSteve
September 15, 200619 yr Hi Steve,I checked this on my own HUD and find that the mouse click won't work when the background is RGB 0,0,0 - which of course is the background of a HUD! Ooops!However, it WILL work if you size it and position it so that the click area is over a portion of the HUD framework (perhaps adjacent to your text?).In short, you can place an invisible mouse click area anywhere on the panel EXCEPT in the sim's transparent zones (RGB 0,0,0).Hope you can somehow get this to work for you.Cheers, Bob Dell410, Core2Duo E6700, 2.66Ghz, 2GB ram, nVidia 7900GTX/512MB/195.62 driver, FSX/sp1, UTX USA, Fsgenesis
September 16, 200619 yr You could always make a clickspot that remains invisible until the mouse is moved over it, then becomes visible, thereby allowing the mouse click functions to work and it dissapears when the mouse is moved away from the clickspot?Steve
September 18, 200619 yr Hello guys,Please let me answer to this interesting posts:@Redlander:A1ccording to my tests (in C++, not in XML), if you place the invisible area anywhere on the HUD, it will work only if some pixels are drawn were you click. For example, if you place it over text, it will work only if you click on a character.@SkyMed:I already tried what you describe here, but it doesn't work. If you make a transparent clickspot, it will not be able to detect the mouse movements, just like it can't detect the mouse clicks.Eric My Web Site
Create an account or sign in to comment