Code: Select all
init python:
def SomeFunc_ReturnCurrentSelectedButton(Screen)
getCurrentlySelectedButton(Screen)
screen 50():
....
textbutton80
textbutton81 (CURRENTLY SELECTED)
textbutton82
.....
Code: Select all
init python:
def SomeFunc_ReturnCurrentSelectedButton(Screen)
getCurrentlySelectedButton(Screen)
screen 50():
....
textbutton80
textbutton81 (CURRENTLY SELECTED)
textbutton82
.....
Code: Select all
screen TST_SCR():
vbox:
id "bvox"
textbutton "BTN1":
action SetVariable("iss", 1)
textbutton "BTN2":
action SetVariable("iss", 2)
default iss = 0
label start:
show screen TST_SCR
'...'
'..'
python:
is_button_selected = ["selected" in button.role for button in renpy.get_widget(id="bvox", screen="TST_SCR", layer="screens").children]
'[iss], [is_button_selected]'
return
Users browsing this forum: No registered users