Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.

CRadarScreen class functions used in more than just one clas


Brendan Chen 943434
 Share

Recommended Posts

Brendan Chen 943434
Posted
Posted

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!

672A68079898-1_zps98cef54d.png

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

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

Brendan Chen 943434
Posted
Posted

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!

672A68079898-1_zps98cef54d.png

Link to comment
Share on other sites

Todor Atanasov 878664
Posted
Posted

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.

Link to comment
Share on other sites

Brendan Chen 943434
Posted
Posted

Guess I'll just make do with what we got...

Brendan Chen

VATPRC Tech Support

You make the difference!

672A68079898-1_zps98cef54d.png

Link to comment
Share on other sites

  • 3 weeks later...
Gergely Csernak
Posted
Posted

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

 Share