Customized Civis screen

@Zappara:
How can I store application wide variables?
If I know it I will merge both civic screen versions for ROM. Non-scrollable and scrollable. And I will add a dropdown box to select which version should be displayed.
But for that I need a variable to store selected screen type....
This kind of option should be added to BUG option screens, there's other screens already done the same way with BUG mod. So the BUG developers probably already have defined everything you need to their python code. Probably best way to do it would be to add new RoM options page to BUG options where RoM specific options could be changed - though I don't know yet how to do that (RevDCM options page code could be used as example I think...)
 
How adaptable is this to Final Frontier as i would like to incorporate it into the Babylon 5 mod we are working on?
I think all you need is the CvCivicsScreen.py file but just note that this horizontally scrolling screen has some bugs that make the game 'hang' on that screen. I haven't seen Pla5ma for while here on forums so don't know if he made a fully working version.
 
I think all you need is the CvCivicsScreen.py file
I added this file but the civics don't display their benefits, i gather this information is from a separate dll which i now have the facilities, but not the experience, to create. I need to find a step by step guide on how to compile one dll file from 4 or 5 dll files, seen anything like that?
 
Hey zappara, I sat over the code (took me a long time to notice) and I managed to get it working! It was one of those 'one character wonders'.

It always hanged when you moused over Divine Cult. I checked the help text length and found it was the longest of all civics.

It seems Pla5ma assumed no help text will ever be longer than 20 lines.
So his cleaning routine loop was
Code:
while LINE_LEFT:
	...
	if LINE_COUNT == 20:
		LINE_LEFT = False
	...

All I did was change '==' to read '>='.

(if you intend to make even longer helptexts, search for '(18 * LINE_COUNT)' without quotes in the file and lower the number to have the lines closer together)

I think you will still need his permission if you want to post it into mod components but if he doesn't show up, you could post it and credit it to him in the post (in bold).

Cheers
 

Attachments

Excellent and thank you. I much prefer a horizontal scrolling civics screen. The only question is will it work with Affordess' civics?
 
Just tried Peter's new version in 2.71 whilst using Afforess' military civics and the civics screen was the same as usual (downwards scrolling). :(
 
Just tried Peter's new version in 2.71 whilst using Afforess' military civics and the civics screen was the same as usual (downwards scrolling). :(

Interesting, it is working fine for me in 2.71 even with Affordess' stuff. You did put it in the python/screens folder?
 
Interesting, it is working fine for me in 2.71 even with Affordess' stuff. You did put it in the python/screens folder?

D'oh, human error alert! I'd stuck it in the Python folder instead of Screens. Works now (and is MUCH nicer to use). Cheers.
 
Back
Top Bottom