Platy's Peculiar Pleasant Posh Python

Plat, how would I fix this so the buttons from CvTechChooser to enable the vassals are listed in a column instead of side by side?
Code:
			# Vassal States
#########################################################
# 			Client States START
#########################################################
			for j in range( gc.getNumVassalInfos() ):
				if ( gc.getVassalInfo(j).getTech() == i ):
					szVassalStateButton = "VassalState" + str(i) + str(j)
					screen.addDDSGFCAt( szVassalStateButton , szTechRecord, gc.getVassalInfo(j).getButton(), iX + fX, iY + Y_ROW, TEXTURE_SIZE, TEXTURE_SIZE, WidgetTypes.WIDGET_HELP_VASSAL_STATE, -1, i, False )
					fX += X_INCREMENT
#########################################################
# 			Client States END
#########################################################
 
The reason why new stuff are added side by side is because of fX.
Not sure how you want to display it in a column though, since the tech box is obviously horizontal?
Better to describe with a screenshot or something.
 
I'm sorry, not a column. THe code is for my client states mod. There are several types of client states. If one tech enables multiple vassals, there will be just one button for it. However, the rollover text will list them all. I'm trying to get multiple buttons for multiple vassals on the same tech. I'll take a screenshot to show you, thanks.
 
Brotherhood

Features:
Shared UU with teammates and vassals
Newly built units will convert automatically to UUs of teammates or vassals, unless it is your UU.

Notes:
1) Just a conversion of old wonder power.
2) Codes are coded in onUnitBuilt, but you can easily shift to onUnitCreated if you want it to affect units created under all circumstances, such as goodie huts, drafting, events.
3) You still do not build the UU of the others. You are still building the default unit, but they get converted after built. Thus, if the UU is cheaper or available at earlier tech, it does not benefit you. Or, if there is no default unit, there is nothing to convert.
4) Current codes only allow master's units to convert to vassal's UU but not vice versa.
 
Codes are coded in onUnitBuilt, but you can easily shift to onUnitCreated if you want it to affect units created under all circumstances, such as goodie huts, drafting, events.

Does onUnitCreated trigger when units are upgraded?
 
It does, but there is nothing you can do to affect the upgraded unit.
 
If sumeria has uu for swords, it will be that.
If not, random from either.
 
If I wanted to integrate this Brotherhood effect in the form of a national wonder, should I adapt this or the old great wonder's code? And which great wonder was it?
 
Flavian Amphitheater
Both are doing similar effects under entirely different conditions.
 
OK, I found a couple of wonders with similar effects, but this Brotherhood modcomp supports building teammate UUs and the others apparently do not.

Do you happen to know off the top of your head how (if possible) to adjust the Brotherhood code so that it's building-dependent, like your other Python wonders? My idea is for a "Triumphal Arch" national wonder to grant this capability to any civ that builds it :king:
 
Just add one line to check if player owns a building class
 
Any chance you can fix your platypedia with the leaders? The leader is clearly to square, and looks slightly distorted
 

Attachments

  • fla.jpg
    fla.jpg
    108 KB · Views: 147
Actually, comparing it with BTS pedia, I don't really see what is the issue :D
What happens is they truncate off the top and bottom, so shouldn't be distorted.
 

Attachments

  • aa0001.JPG
    aa0001.JPG
    121.2 KB · Views: 178
  • bb0000.JPG
    bb0000.JPG
    132.7 KB · Views: 177
distorted is not really the word, it does appear to be slightly stretched horizontally, which has more impact on the dds image than a proper leaderhead and only because I see them side by side.

I think platys works better for the 3d LH, but the sevopedia one works better for dds as it looks like a portrait with a frame (all be it a very flat and boring grey frame) :D
 
Hey Platy

I have a couple of suggestions/issues with UI pack :D

I love the fullscreen advisors, but would it be possible to "spread out" the faces, so they are optimized for screen resolution (everything else is afaik) ;)
Spoiler :
attachment.php



Also, the XP bar in lower left corner reveals the outcome of the battle before battle is started (?). If I attack someone, the xp will go up, so I already know that I won.

cheers
 
Back
Top Bottom