I have a prefeclty draggable working screen.
Each time I calling it, it appear to the initial position I gave him, thats mean at xpos 1250 and ypos 100.
Even if the player move it previously to an other location.
So I would like it too show up at the same position the player leave it before. I don't know if I'm really understandable sorry.
I try to just suppress the line with xpos and ypos but this is still not working, my screen is simply poping at the top left corner of my physical screen each time, regardless of where the player position it before.
I'm pretty sure this is a really commun mistake newbies does when they are messing with draggable stuff for the first time so I tought I could just ask here on the forum cause one of you will probably saw immediatly how to fix this behaviour. I could problably manage to do it myself after several hours (days?) but I'm too scared to mess up the code of my recently working draggable screen !
Code: Select all
screen minigame_info_screen():
$ tooltip2 = Tooltip("[character_name] is [variable_mood].")
drag:
draggable True
drag_handle (0, 0, 545, 239)
xpos 1250 ypos 100 # PRETTY SURE THIS IS THE LINE WERE I FUCKED UP
frame:
style "variables_nbr"
background "gui/image_MiniGame.png"
top_padding 20
xysize (545, 225)
text "[variable_A]":
style "variables_nbr"
size 40
xpos 90 ypos 80
mousearea:
area (9, 10, 69, 71)
hovered tooltip2.action("{color=#66cc00}TEXT:{/color} Text")
text "" pos (9, 10) tooltip
Code: Select all
screen main_minigame:
modal True
imagemap:
ground "imageA"
hover "imageB"
alpha False
hotspot (256, 843, 268, 71) action Jump("Label_A")
hotspot (252, 929, 284, 78) action Jump("Label_B")
use minigame_info_screen
add "gui/Interface_Indicator_Interaction.png"
use quick_screen_keys_input