Brendan Chen 943434 Posted October 28, 2010 at 06:22 AM Posted October 28, 2010 at 06:22 AM Hi, Just wondering if there is a way to use functions inside 'CRadarScreen' in another cl[Mod - Happy Thoughts] that is not the new radar screen cl[Mod - Happy Thoughts] you are trying to create? My situation is, i have a cl[Mod - Happy Thoughts] which is the main screen cl[Mod - Happy Thoughts], then i have a separate one for drawing target related and data tags. One problem is that I cannot use the function provided by CRadarScreen which is very helpful, so I would like to do this, rather than having a one M[Mod - Happy Thoughts]IVE cl[Mod - Happy Thoughts] for everything. Thanks Brendan Chen VATPRC Tech Support You make the difference! Link to comment Share on other sites More sharing options...
Ross Carlson Posted October 28, 2010 at 05:25 PM Posted October 28, 2010 at 05:25 PM I've never done any work on ES plugins, so my reply may be less than helpful, but could you just subcl[Mod - Happy Thoughts] CRadarScreen and add public wrapper functions that call the ones you want from CRadarScreen? Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
Brendan Chen 943434 Posted October 28, 2010 at 11:14 PM Author Posted October 28, 2010 at 11:14 PM Thanks for you reply Ross, but I've tried that. By doing that it gives me some error I've forgotten, then I tried to add another function which I think it needs for that to work. And it did successfully compile, except the function still didn't work. Then I tried one other thing, which I think was crucial, but unfortunately, I am not able to do that because it needs me to literally create another radar screen. Now I've ask 2 plugin developers who did great job on their division's plugin, and they seemed to say they used only 1 cl[Mod - Happy Thoughts], so they did everything in one cl[Mod - Happy Thoughts]. Anyone else did it in more than 1 cl[Mod - Happy Thoughts]? I would like to know very much. Thanks. Brendan Chen VATPRC Tech Support You make the difference! Link to comment Share on other sites More sharing options...
Todor Atanasov 878664 Posted October 29, 2010 at 08:22 AM Posted October 29, 2010 at 08:22 AM Brendan, by creating a new CRadarScreen you create and new Radar Screen in ES, there is no work around that. You should ask G, as he is the best one to answer that question. EuroScope BETA Tester/Board of Designers Link to comment Share on other sites More sharing options...
Brendan Chen 943434 Posted October 29, 2010 at 01:01 PM Author Posted October 29, 2010 at 01:01 PM Guess I'll just make do with what we got... Brendan Chen VATPRC Tech Support You make the difference! Link to comment Share on other sites More sharing options...
Gergely Csernak Posted November 17, 2010 at 10:20 AM Posted November 17, 2010 at 10:20 AM The CRadarScreen cl[Mod - Happy Thoughts] has several hidden variables that I use to access to the right peace of information inside ES. When you call any functions from this cl[Mod - Happy Thoughts] I have access to these variables. Without them I would not be able to perform the right operation. Therefore no way to call the functions without the correct data around. You can call them only from your derived cl[Mod - Happy Thoughts]. Gergely. EuroScope developer Link to comment Share on other sites More sharing options...
Recommended Posts