2020-01-03, 15:20
(2020-01-03, 14:47)nessus Wrote: So, all the infolabels & infoproperties they will be for a detailed item?
Yep, it's exactly the same as before but now you don't need to worry about managing the windows with del_path/reset_path/onload/onback conditions.
You just add the path/query and the script handles the rest.
In simplified terms, the basic flow is:
- You call add_query and the script finds the detailed item path and then adds it to TMDbHelper.Path.Current
- The script closes the info dialog.
- The script opens the custom window if it's the first run through.
- The script waits for Container(9999).IsUpdating to finish and then does SetFocus(9999) and then Action(Info).
- Once the info dialog is open, the script waits for one of the following scenarios:
- If the add_path/query is called again then it goes to 1 and repeats.
- If the dialog window is closed then it deletes the current path and replaces it with the previous path and goes to 2 and repeats.
- If there is no previous path then the script clears all properties and exits.
- If the custom window gets closed (user presses back twice quickly or hits ESC), then script clears all properties and exits
- If the close_dialog method is called, then script clears all properties and exits