Skip to content

Instantly share code, notes, and snippets.

@xcvd
Created April 9, 2012 00:31
Show Gist options
  • Save xcvd/2340515 to your computer and use it in GitHub Desktop.
Save xcvd/2340515 to your computer and use it in GitHub Desktop.
lazy val example
def bankItemWidgets = Widgets.get(762).getChild(95).getChildren()
def getBankWidgetChild(id: Int): WidgetChild = {
bankItemWidgets.foreach(itemWidget =>
if (itemWidget.getChildId == itemIdVial) { return itemWidget })
null
}
val itemIdVial = 229
lazy val itemBankWidgetVial: WidgetChild = getBankWidgetChild(itemIdVial)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment