2015-10-16, 20:11
(2015-10-16, 05:58)tomer953 Wrote: Now Im thinking how to take it to the next level, I tought to make some custom dialog to the unlock code instead of the Skin.SetNumeric window,
There is a way to pass the ::ACTION:: to my custom dialog? so once the user is typing the right code - it will perform the action immediately.
- will work fine in the override?Code:Skin.SetString(action,::ACTION::)
If you wanted to try making the changes to the script so that this would work, you'd (likely - I'm not in a position to test this) need to change the following in datafunctions.py - somewhere around line 280 - there is:-
Code:
if actions.text == "::ACTION::":
newaction.text = action.text
It would need changing to:-
Code:
if "::ACTION::" in actions.text:
newaction.text = actions.text.replace("::ACTION::",action.text)
Note that this is blind, as it were - as I say I'm not in a position to test whether this would work (though it should). You'd obviously also need to ensure you match the indenting of the surrounding code. And, if it does work, please consider PR'ing
