Quote:
Originally Posted by concucu
Bro. How to fix the position, even if the screen size is changed?
|
Quote:
Originally Posted by #HB
You shall trigger the function after changing resolution.
|
Lets solve this one first. There's one issue with positioning the icons by yourself. You need to stay away from the auto-positioning area or your icon will collide with another icon. As I said earlier, there's a function that positions the guide icons all on its own. It's actually a class.
I've now reversed the class so we can make use of the positioning and don't have to hook some reset stuff somewhere.
[Only registered and activated users can see links. Click Here To Register...]
How to use CAlramMgrWnd? (typo intended)
[Only registered and activated users can see links. Click Here To Register...]
1. Make your Guide Icon class (see CIFflorian0Guide as a reference).
1.1 Don't forget to register your class:
[Only registered and activated users can see links. Click Here To Register...]
2. Add your class to CAlramMgrWnd like this:
[Only registered and activated users can see links. Click Here To Register...]
3. Make a function in CGInterface that instanciates your guide icon using CAlramMgrWnd:
[Only registered and activated users can see links. Click Here To Register...]
4. Call the function in CGInterface::AfterOnCreate to make the icon visible from the beginning:
[Only registered and activated users can see links. Click Here To Register...]
DO NOT ADD YOUR GUIDE ICON TO GINTERFACE.TXT!