Problem with UI

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
User avatar
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

#1 Post by burnt_offering »

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
[url]http:\\aceofspades@vnovel.com[/url]
Or just follow me at @AceOfSpades_VN

User avatar
Alex
Lemma-Class Veteran
Posts: 3098
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Problem with UI

#2 Post by Alex »


User avatar
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

#3 Post by burnt_offering »

Thanks, got it working now.
[url]http:\\aceofspades@vnovel.com[/url]
Or just follow me at @AceOfSpades_VN

Post Reply

Who is online

Users browsing this forum: Google [Bot]