Announcement

Collapse
No announcement yet.

GUI Modification

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

  • #16
    From Locutus SLIC document:

    the Open functions are all messed up apparently, they still work, but no longer always refer to something logical
    So it seems that the old open functions from CTP1 does not work, at least not as expected.

    The only open functions that should work are:

    OpenScenarioEditor
    OpenBuildQueue

    And this event:

    OpenInitialCityInterface

    This stuff is new in CTP2.

    -Martin
    Civ2 military advisor: "No complaints, Sir!"

    Comment


    • #17
      Originally posted by Pedrunn

      You mean this isnt opening the city status as it should?
      Thats strange.
      Are you sure the path "CityStatusWin.BuildQueueButton" is valid?
      In wich file it is? I want to see it!
      That pretty much sums up my entire SLIC experience so far, I write all this code and then nothing happens. Looking through the documentation that Locutus put together (the .xls file) it looks like there are a lot of functions that no one is sure what they do yet, or if they work.

      The CityStatusWin.BuildQueueButton button is found in the CTP2.exe file. So that you can see the reference, I have opened the .exe as a text file and copied the relevant portions into this text file. If you scroll down a bit you can see where I have lined up the functions I'm interested in.


      Martin thanks for the note, I tired it and CTPII says "No function named OpenInitialCityinterface" Kinda frustrating isn't it?
      Attached Files

      Comment


      • #18
        Originally psted by ahenobarb
        And this event:

        OpenInitialCityInterface
        As I said it is an event and not a function.

        -Martin
        Civ2 military advisor: "No complaints, Sir!"

        Comment


        • #19
          Complementing Martins thought:

          As I said it is an event and not a function.
          ...So it has to be written like this:
          Code:
          Event:OpenInitialCityInterface(variables)
          I have a code that uses OpenCiv() and it worked. I also tested the OpenCity() and it opens the city status and not the ity manager like you want.
          Also tested the som ones with the Tab at the end like OpenCityTab() and OpenProductionTab() and nothing happens. I think they only worked for CTP1.
          I will look the file now
          "Kill a man and you are a murder.
          Kill thousands and you are a conquer.
          Kill all and you are a God!"
          -Jean Rostand

          Comment

          Working...
          X