I’m hoping you can help me bridge my knowledge gap… here’s the scenario:
-
I create a scene in Composer GUI. In the scene I add a text field, for example named txtRevenueTotal
-
the .ccscene file is generated (scene1.ccscene) as is the scene template (scene1.lua) (these are implicitly paired as they share the same name, right?)
-
my intent is to pull in remote data via json, insert into a SQLite3 database and …this is where I need your help… update the visible text field on the screen with the new revenue total, but how?
My instinct is to do the hard work in the “did” part of scene:show and update the text field from there, but how to do I reference scene1.ccscene->txtRevenueTotal.text?
Thanks in advance for any guidance you can give me on this.
Ben