I've been trying to use UI functions to make a point and click interface, but I keep getting this error.
"File "game/OtherStuff.rpy", line 341, in script
File "game/OtherStuff.rpy", line 341, in python
Exception: ui.interact called with non-empty widget/layer stack. Did you forget a ui.close() somewhere?"
My code is as follows.
$ ui.window()
$ ui.hbox()
$ renpy.imagemap('bgwhite.png', 'case.jpg', [(240,320,230,260,1), (590,610,702,709,2), (90,40,170,120,3), (970,990,930,990,4), (360,410,430,510,5)])
$ ui.close()
$ ui.close()
$ result = ui.interact()
I had thought i would only need two ui.close clauses, but putting more in doesn't help, even putting in enough that it should force an error doesn't change it. Are they in the wrong place?
Any help would be greatly appreciated
Dave
Problem with UI
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- burnt_offering
- Regular
- Posts: 107
- Joined: Sun Feb 23, 2014 4:21 pm
- Completed: The Stroke of Midnight
- Organization: Ace Of Spades
- IRC Nick: burnt_offering or TheTapDancer
- Skype: aceofspadesvn
- itch: aceofspadesvn
- Location: London
- Contact:
Problem with UI
[url]http:\\aceofspades@vnovel.com[/url]
Or just follow me at @AceOfSpades_VN
Or just follow me at @AceOfSpades_VN
Re: Problem with UI
It would be much easier to use screen language instead of obsolete ui-functions.
You can find lot of useful info there:
http://lemmasoft.renai.us/forums/viewto ... 51&t=22410
http://lemmasoft.renai.us/forums/viewforum.php?f=51
http://www.renpy.org/doc/html/screens.html
http://www.renpy.org/doc/html/index.html
You can find lot of useful info there:
http://lemmasoft.renai.us/forums/viewto ... 51&t=22410
http://lemmasoft.renai.us/forums/viewforum.php?f=51
http://www.renpy.org/doc/html/screens.html
http://www.renpy.org/doc/html/index.html
- burnt_offering
- Regular
- Posts: 107
- Joined: Sun Feb 23, 2014 4:21 pm
- Completed: The Stroke of Midnight
- Organization: Ace Of Spades
- IRC Nick: burnt_offering or TheTapDancer
- Skype: aceofspadesvn
- itch: aceofspadesvn
- Location: London
- Contact:
Re: Problem with UI
Thanks, got it working now.
[url]http:\\aceofspades@vnovel.com[/url]
Or just follow me at @AceOfSpades_VN
Or just follow me at @AceOfSpades_VN
Who is online
Users browsing this forum: Google [Bot]