I'd like to have the choice menu somehow appear inside the screen with the chatroom instead of being completely separate, sort of like this.
Is there a way I can accomplish this? The chatroom window is draggable, so I can't just put the menu position at a pre-determined position so it looks like it's in the chatroom. I was thinking of making space in the bottom where the menu would appear, and them somehow make the choices appear when I call the menu.
The code for the chatroom screen is pretty simple:
Code: Select all
screen messenger():
modal False
fixed:
pos(190, 100)
xysize(1400, 768)
drag:
drag_name "S Rooms Messenger"
xalign 0.5 yalign 0.5
drag_handle(0, 0, 1.0, 1.0)
frame:
style "s_rooms_home_window"
xysize(500, 500)
padding(25, 25)
textbutton "close":
action [Hide('messenger'), Show("chatrooms")]
xalign 1.2 yalign -0.2
# this is the actual chat message stuff - send message and display it
viewport:
mousewheel True draggable True
yinitial 1.0
yadjustment messenger_yadjustment
has vbox
timer 1.0 repeat chat_timer action If(chatroom_choice_active, false=[Function(msg_check), print("Repeating")])
for msg in current_convo.convo_msg_history[-num_bubbles:]:
hbox:
add msg.who.profile_pic
vbox:
text msg.who.name
frame:
style "chatroom_bubble"
text msg.what
# Add a fixed or something with a blank background where the menu can appear when choices occur?