request to add a button on the Europe screen

Discussion in 'Civ4Col - We The People' started by Mr. ZorG, Oct 1, 2020.

  1. Mr. ZorG

    Mr. ZorG Prince

    Joined:
    Feb 13, 2020
    Messages:
    334
    Gender:
    Male
    Location:
    Russia, Vladimir
    when trying to lift the embargo on goods, the king demands monetary compensation. there is only "agreement" button. pressing "ESC" exits the Europe screen. is it possible to add a "disagree" button that will not close the Europe screen?

    lifting the embargo.jpg
     
    Nightinggale likes this.
  2. Nightinggale

    Nightinggale Deity

    Joined:
    Feb 2, 2009
    Messages:
    4,934
    Most likely all this takes is altering the popup code to add a button. Once clicked, instead of sending the "pay" command on the network, send it only if the correct button is pressed and it should work.
     
  3. Mr. ZorG

    Mr. ZorG Prince

    Joined:
    Feb 13, 2020
    Messages:
    334
    Gender:
    Male
    Location:
    Russia, Vladimir
    I'm not a programmer, so I can only generate ideas and test them)
     
  4. Nightinggale

    Nightinggale Deity

    Joined:
    Feb 2, 2009
    Messages:
    4,934
    I know, but the idea in writing it here is that perhaps somebody, who is a programmer has an idea about where to start looking.
     
  5. raystuttgart

    raystuttgart Civ4Col Modder Supporter

    Joined:
    Jan 24, 2011
    Messages:
    7,517
    Gender:
    Male
    Location:
    Stuttgart, Germany
    The "Lift Boycott" was a feature implement by koma13 in TAC - if I remember correctly.
    His comments and the related code should be relatively easy to find.

    Edit:

    It seems as if it was mostly implemented in Python.
    When searching for this, it should be possible to find the right place to add a second Answer Option (to say "No, thank you.").

    def liftBoycott(self, iYield):
    TXT_KEY_EU_BOYCOTT_MESSAGE

    The stupid thing is, that currently it would need to be changed in 3 files.
    (Europe Screen, Africa Screen and Port Royale Screen)
     
    Last edited: Oct 2, 2020
  6. Nightinggale

    Nightinggale Deity

    Joined:
    Feb 2, 2009
    Messages:
    4,934
    There is a ticket saying those 3 files are nearly identical and that they should be merged into one precisely for avoiding having to fix bugs in 3 files. However everybody have viewed it as less important than other tasks. We have had bugs related to copy paste errors between those 3 screens, which is annoying.

    My prediction: the screens will not be merged now either and somebody will eventually add the button in all 3 files. Yeah it's stupid, but it's also the quick here and now solution.
     
    raystuttgart likes this.

Share This Page