Foreign Advisor Bonus Screen

platyping

Sleeping Dragon
Joined
Oct 22, 2010
Messages
4,626
Location
Emerald Dreams
Foreign Advisor Screen

Features:

Surplus Screen

1) Just a fix for the surplus resource display for mods with disgusting amount of resources.
Surplus resources now display in up to 3 rows instead of 1 super long row that extends out of the screen.
2) Filter option to select type of resources to be shown for surplus

Civ4ScreenShot0003_zpsa38f0e60.jpg


Relationship Screen
1) Allows user to filter off unwanted lines.

Spoiler :
ForeignA_zpsb0b93498.jpg

ForeignB_zpsfa25b513.jpg


2) Allows user to filter off unwanted leaderheads.
Spoiler :
HideA_zpsda6f14f7.jpg

HideC_zps58293613.jpg
 
Just a fix for the surplus resource display for mods with disgusting amount of resources.

C2C should have it definitely :D
 
Dunno if this is worth a thread :D
I guess maybe I need to start a consolidated thread of all the mini mod comps...

That would be better, just like The_J did with his "Simple Python Stuff"
 
Yeah, but his thread pretty much became a mod request thread :D
But I guess you know my style by now.
The_J is very helpful and pretty much takes on all requests.
Whereas I only help when:
1) I am bored
2) Idea achievable and practical
3) Not something usable only by specific mods

One day I will do so though, just to clear out my signature
 
Well, when nobody said anything I wouldn't know about it since it is kinda impossible to run into this problem in bts. :D
Enjoy
 
I did try and merge this into C2C but besides some basic stuff like the boxes behind not being the same there was only one major problem. We have a lot of resources so we end up with a scrollable box listing the resources which is good but the counts of free resources don't scroll with the resources. Some numbers are still appearing to the right.

Attached are the images rows 1-3 in image one and rows 2-4 in image two
 

Attachments

  • one.jpg
    one.jpg
    231.2 KB · Views: 354
  • two.jpg
    two.jpg
    223.5 KB · Views: 184
@Cruel
Looking at the screenshot, slight calculation error, the last resource should be shifted to next row since it it out of the box.

@DH
1) The box behind is different because I didn't comment the change in panel height, so I guess you didn't edit it.
2) As for the scrollbar, the issue is that the surplus number is done in table format which I do not know how to edit to let it have multiple rows to follow the others.
Which is why I ended up using multiple tables of single rows instead.

Updates:
Rewrite most formulae so that everything is adjusted by simply adjusting 2 variables:

1) Panel Height
self.RES_SURPLUS_HEIGHT

2) Resource Icon Size
self.RESOURCE_ICON_SIZE

The issue is that so long as the scrollbar pops up, everything is screwed, so the solution is adjust size of icon and/or height of panel such that
1) More icons per row
2) More rows in panel
 
@vebear
Trade screen stuff should be in SDK

@Cruel
I pretty much rewrite the whole chunk there :D
 
Standard BTS has XML tag that categorize each resource (livestock, food etc)
Can you add dropdown select list that will filter each category (show only resources from this category).
<BonusClassType>
 
Updates

Civ4ScreenShot0003_zpsa38f0e60.jpg


Added a filter option to see types of surplus resources.

Notes:
The filter affects the Can/Cannot Trade as well.
I gave myself some corporations which is why you see those fish, crab etc
 

Attachments

  • Civ4ScreenShot0007.JPG
    Civ4ScreenShot0007.JPG
    97.8 KB · Views: 131
  • Civ4ScreenShot0008.JPG
    Civ4ScreenShot0008.JPG
    92.6 KB · Views: 137
  • Civ4ScreenShot0009.JPG
    Civ4ScreenShot0009.JPG
    78.8 KB · Views: 95
A minor bug report that prolly only going to be spotted by a modder with many many resources : the second row "white circle behind recource counts" continues instead of breaking to third row.

Keep up the good work Platy. Loving the civopedia as well :D
 
No issue. I cut the max number short just to test.
Yours should be an old version.
 

Attachments

  • Civ4ScreenShot0002.JPG
    Civ4ScreenShot0002.JPG
    88.6 KB · Views: 177
Can you add resources dropdown filter to city screen also?(in resources section)
Last choosen option should be remembered and apply in every city.

It will be very handy in mods with a lot of resources.

Thanks for all your work.
 
Where got space to put a dropdown button in city screen lol.
Not so many mods with "too many resources" anyway, so not very useful
 
Back
Top Bottom