UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Submit Patch #5333 implementation of 'forchildin' and 'break' in ui-script language
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Submit Patch
  • Category
    Not determined
  • Targetted for
    Not determined
  • Status
    Closed
  • Progress
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Time spent
    100 hours
    Click here to see time logged against this issue
Issue details
  • Resolution
    RESOLVED
Attachments (1)
Duplicate issues (0)
This issue does not have any duplicates
Description
The patch adds the ability to loop over child nodes in ui scripts. Inside the loop the visited child node can be referenced by the path construct *node:child. The following is an example of how to use the implementation in the script files:

forchildin ( *node:fooNode ) {
...
*node:child@string = "blabla.."
...
}

The use of 'break' is straightforward. Put it anywhere in a loop (while or forchildin) and the loop exits.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif