mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-18 03:38:55 +07:00
Double trades fix + Diplomacy screen layout fix (#8896)
This commit is contained in:
@ -653,7 +653,7 @@ object NextTurnAutomation {
|
|||||||
}) {
|
}) {
|
||||||
|
|
||||||
val relationshipLevel = civInfo.getDiplomacyManager(otherCiv).relationshipLevel()
|
val relationshipLevel = civInfo.getDiplomacyManager(otherCiv).relationshipLevel()
|
||||||
if (relationshipLevel <= RelationshipLevel.Enemy)
|
if (relationshipLevel <= RelationshipLevel.Enemy || otherCiv.tradeRequests.any { it.requestingCiv == civInfo.civName })
|
||||||
continue
|
continue
|
||||||
|
|
||||||
val trades = potentialLuxuryTrades(civInfo, otherCiv)
|
val trades = potentialLuxuryTrades(civInfo, otherCiv)
|
||||||
|
@ -949,7 +949,7 @@ class DiplomacyScreen(
|
|||||||
* _Caller is responsible to not exceed this **including its own padding**_
|
* _Caller is responsible to not exceed this **including its own padding**_
|
||||||
*/
|
*/
|
||||||
// Note breaking the rule above will squeeze the leftSideScroll to the left - cumulatively.
|
// Note breaking the rule above will squeeze the leftSideScroll to the left - cumulatively.
|
||||||
internal fun getTradeColumnsWidth() = (stage.width - leftSideScroll.width - 3f) / 2 // 3 for SplitPane handle
|
internal fun getTradeColumnsWidth() = (stage.width * 0.8f - 3f) / 2 // 3 for SplitPane handle
|
||||||
|
|
||||||
override fun resize(width: Int, height: Int) {
|
override fun resize(width: Int, height: Int) {
|
||||||
super.resize(width, height)
|
super.resize(width, height)
|
||||||
|
Reference in New Issue
Block a user