Hi! I am using Nighten's messaging system and I have a little problem with figuring out some customization.
First of all I am using imagebuttons instead of the usual quick menu. The top part is the quickmenu, but my question is about the LOWER part:
I have no clue what I am doing and I have tried all kinds of things but I can't seem to figure it out. I did not like the big yellow continue part so I wanted to change it AND I would prefer if I can show the MC's text on there before it sends as a message.
EDIT: (removed a section) I didn't know how to add that lower element on the screen and work from there. I added it to my quickmenu background because I didn't know what else to do. Later on after I already posted this I thought of the solution to add the picture to the background picture of the phone. So that has been done. It shows up not through code but through image. The code below remains unchanged.
My game is 1440 x 2560.
But then the actual issue I have, and I haven't been able to try this at all yet because I have NO CLUE where to start... is that I want the text of the MC to appear on the "messaging part" ^ so on that picture above... like how it would look in a normal chat system when you type! But instead of typing it yourself I want to show the text already there, but not yet send and then when you click it sends as a message, like how it already does with the original code.
This is only for the MC, of course.
Is there a way to implement this and how can I do such a thing?
I included the original code of that section and then what I changed until now below so you can see what I have done/tried... and maybe any mistakes I have made.
The original code:
Code: Select all
screen PhoneDialogue(dialogue, items=None):
style_prefix "phoneFrame"
vbox:
spacing 0
# Messenger screen
frame:
# ysize 0.85
if len(items)>=2:
ysize 1632-(len(items)-2)*(120+10)-20
else:
ymaximum 1632
viewport:
draggable True
mousewheel True
# cols 1
yinitial 1.0
# scrollbars "vertical"
vbox:
xalign 0.5
null height 20
use nvl_phonetext(dialogue,items)
null height 100
# Button to progress
if len(items)==0: #If we don't have a menu
button:
padding (0,0)
add Solid("#ffda4a")
add Transform("continue_btn.png", align=(0.5,0.5))
action RollForward()
else:
# Phone Menu Choice
frame:
background Solid("#ffda4a")
foreground None
vbox:
yalign 0.5
for i in items: #For each choices...
button:
action i.action
xalign 0.5
frame:
background Solid("#f1f6fe")
foreground None
xysize (1000,120)
text i.caption:
align (0.5,0.5)
text_align 0.5
size 60
# style "nvl_button"
Code: Select all
screen PhoneDialogue(dialogue, items=None):
style_prefix "phoneFrame"
#vbox:
vbox:
spacing 25
# Messenger screen
frame:
ysize 0.75
if len(items)>=2:
ysize 1632-(len(items)-2)*(120+10)-20
else:
ymaximum 2300
#yminimum 1000
viewport:
draggable True
mousewheel True
# cols 1
yinitial 1.0
ypos 150
# scrollbars "vertical"
vbox:
xalign 0.5
null height 20
use nvl_phonetext(dialogue,items)
null height 100
# Button to progress
if len(items)==0: #If we don't have a menu
button:
padding (0,0)
#add Solid("#d79bb4")
#ysize 100
#ymaximum 150
#ypos 1700
#background "continue_btn.png"
#add Transform("continue_btn.png", align=(0,0.5))
action RollForward()
else:
# Phone Menu Choice
frame:
background Solid("#d79bb4")
foreground None
vbox:
yalign 0.5
for i in items: #For each choices...
button:
action i.action
xalign 0.5
frame:
background Solid("#f1f6fe")
foreground None
xysize (1000,120)
text i.caption:
align (0.5,0.5)
text_align 0.5
size 60
# style "nvl_button"