How to make the key ESC close my presentation?

正在查看此主题的用户

  I try to merge Prebattle&Deployment into my mod;however, I found a disturbing thing: if I press the Esc key when the order list is shown, the options window will turn up, but in Native, the order list should be closed. I want to it to behave like Native, which is more convenient So I try to change the code, and delete the code "(omit_key_once,key_escape)". Then I found that if I press the Esc key when the order list is shown, the original order list will be closed but the caba's order list is still on, and I press the Esc key again, the options window will turn up, which is really disturbing. I found that in Brytenwalda, when I press the Esc key, the original order list and new order list will close at the same time. How does it implement this? Anyone knows? :cry:
 
Yeah, there's something bizarre about the way Escape is handled during a mission.
Motomataru added this mission template trigger to Brytenwalda (which will be in the very-soon-to-be-released next version of PBOD) that seems to work around that problem (it goes by the other order key press triggers):

(0, 0, 0, [(key_is_down, key_escape)], [(is_presentation_active, "prsnt_caba_order_display"),(presentation_set_duration, 0)]),


 
I guess its the perfect time to wait on implementing PBOD then, thanks for the heads up.
 
Caba`drin 说:
Yeah, there's something bizarre about the way Escape is handled during a mission.
Motomataru added this mission template trigger to Brytenwalda (which will be in the very-soon-to-be-released next version of PBOD) that seems to work around that problem (it goes by the other order key press triggers):

(0, 0, 0, [(key_is_down, key_escape)], [(is_presentation_active, "prsnt_caba_order_display"),(presentation_set_duration, 0)]),

Thanks for your help and Motomataru's magic code  :grin:
 
后退
顶部 底部