Gerikes
User of Run-on Sentences.
So I've decided to actually use some python in Civcraft (it was just so much easier when it was all c++ ) but I'm running into this problem.
I've created a new CvScreenUtil class that inherits from the base class (just like the CvScrenUtils.py file says), and for now just put some debug statements into it just to see if I got it working. Well, some functions work, some don't. For example, the update function will get called like it should, same with the forceScreenUpdate. However, I'm not getting anything from leftMousePressed, rightMousePressed, mouseOverPlot, or handleInput. (The few others I didn't test).
Strangely, while trying to figure this out, I went into the WorldBuilder and all of the functions were working while I was in WorldBuilder mode. Once I exited, they stopped working. From that, I assumed that the functions would only be called if a screen other than the main screen was up, but when I opened another screen (many of the advisor screens) I still couldn't get them to work.
So, what am I missing here? If these functions aren't called every time the event they represent happen, what do I need to make sure of to make sure of to see that they are called when I need them to be?
I've created a new CvScreenUtil class that inherits from the base class (just like the CvScrenUtils.py file says), and for now just put some debug statements into it just to see if I got it working. Well, some functions work, some don't. For example, the update function will get called like it should, same with the forceScreenUpdate. However, I'm not getting anything from leftMousePressed, rightMousePressed, mouseOverPlot, or handleInput. (The few others I didn't test).
Strangely, while trying to figure this out, I went into the WorldBuilder and all of the functions were working while I was in WorldBuilder mode. Once I exited, they stopped working. From that, I assumed that the functions would only be called if a screen other than the main screen was up, but when I opened another screen (many of the advisor screens) I still couldn't get them to work.
So, what am I missing here? If these functions aren't called every time the event they represent happen, what do I need to make sure of to make sure of to see that they are called when I need them to be?