No one answered my question, so I'm going to try rephrasing it:
I'm making an imagemap. I want to put text in a box on the imagemap in whatever position I want. For example, I might want the textbox to be in the upper right corner.
I would need to be able to display several of these text boxes at once. The text box needs to be able to wrap the text (to create a new line whenever the sentence gets too long).
Is there any way to do this?
Positioning Text Boxes on an Imagemap
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.
-
rainbowparadoxes
- Newbie
- Posts: 8
- Joined: Mon Oct 27, 2014 3:47 pm
- Contact:
- TheChris
- Regular
- Posts: 47
- Joined: Sat Oct 11, 2014 9:26 pm
- Projects: Stickshooter
- Deviantart: innocencecanceller
- Location: United States
- Contact:
Re: Positioning Text Boxes on an Imagemap
rainbowparadoxes wrote:No one answered my question, so I'm going to try rephrasing it:
I'm making an imagemap. I want to put text in a box on the imagemap in whatever position I want. For example, I might want the textbox to be in the upper right corner.
I would need to be able to display several of these text boxes at once. The text box needs to be able to wrap the text (to create a new line whenever the sentence gets too long).
Is there any way to do this?
So far I haven't got it perfect, but this should help you figure it out yourself if no one else comes along with the answer.
The screen...
Code: Select all
screen example2:
imagemap:
ground "menu_gm_idle.png"
hover "menu_gm_hover.png"
hotspot (252,173,282,46) action Return()
hotspot (252,222,282,47) action ShowMenu('save')
hotspot (252,273,282,49) action ShowMenu('load')
frame xalign 0.1 yalign 0.1:
text "What is here?"Code: Select all
label start:
e "xxx"
e "yyy"
call screen example2
e "zz"Clicking on the button with the "action Return()" closes the menu and displays the next part of the script, in this case "e "zz"".
If you need more textboxes just add them to the vbox like this...
Code: Select all
frame xalign 0.1 yalign 0.1:
text "What is here?"text "and even another one"[/code]
Who is online
Users browsing this forum: No registered users