Announcement

Collapse
No announcement yet.

[C4:AC][Programming] Python, Widgets and Buttons

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [C4:AC][Programming] Python, Widgets and Buttons

    Hi there.

    I have managed to add a new button using python after a bit of copying around. Mind you, I am altering texts straight from the .py files.

    Anyway, from looking at existing button fuctions so far, (or just the ones I can understand at the moment) I can create buttons that close the screen, do nothing or jump to the civilpedia. They all seem to be using some Widgets which I have no idea where they are referenced from.

    I was wondering what is the best approach to add/replace text on button click.

    The XML files looks darn promising for some fun customised game texts.
    Last edited by Vev; November 22, 2005, 07:55.
    Promoter of Public Morale
    Alpha Centauri Democracy Game

  • #2
    It's one thing to add buttons to a screen. It's an other thing to catch an event when you click them.

    As far as I know, not a single civ4 mod has been able to actually use a custom button.
    no sig

    Comment


    • #3
      Oh well, was worth a thought. That means probably I have to add a new panel and displaying the next text regardless of button click.
      Promoter of Public Morale
      Alpha Centauri Democracy Game

      Comment

      Working...
      X