Fix menu input: name the VSMX script 'main' so button events resolve
Button events in the RCO are named 'script:/main/mm_on_focus_up' etc., but the interpreter was constructed with name 'menu', so interpretScript built a 'script:/menu/' prefix that never matched and button navigation/selection silently did nothing. Also route key presses through a scene event filter so arrow keys reach the handler before JavaFX focus traversal.
This commit is contained in:
@@ -429,7 +429,7 @@ public final class Main {
|
||||
|
||||
byte[] vsmxData = rco.vsmxData();
|
||||
if (vsmxData != null) {
|
||||
Vsmx vsmx = new Vsmx(vsmxData, "menu");
|
||||
Vsmx vsmx = new Vsmx(vsmxData, "main");
|
||||
System.out.printf("vsmx: %d code groups, %d texts, %d props, %d names%n",
|
||||
vsmx.codes().length, vsmx.texts().length, vsmx.properties().length, vsmx.names().length);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user