Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with multilevel use/transclude. #3034

Closed
renpytom opened this issue Sep 12, 2021 · 0 comments
Closed

Issue with multilevel use/transclude. #3034

renpytom opened this issue Sep 12, 2021 · 0 comments

Comments

@renpytom
Copy link
Member

https://lemmasoft.renai.us/forums/viewtopic.php?p=546519#p546519

## how to replicate: open "Help" screen, click left "Increase" button, see variable not changing

screen box2():
  vbox:
    align (0.25,0.5)
#    $pass
    transclude

screen box1():
  use box2:
    transclude

screen box2x():
  vbox:
    align (0.75,0.5)
    $pass
    transclude

screen box1x():
  use box2x:
    transclude

screen help():
  tag menu
  default some_var=1
  default some_varx=9001
  use box1:
    vbox:
      text "BUGGED: [some_var]"
      textbutton "Increase" action SetScreenVariable("some_var",some_var+1)
  use box1x:
    vbox:
      text "WORKING: [some_varx]"
      textbutton "Increase" action SetScreenVariable("some_varx",some_varx+1)
  textbutton "Return":
    action Return()
    keysym "game_menu"

label start:
  "test"
  return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant