XCOM 2
74 个评价
Misclick Confirm
   
奖励
收藏
已收藏
取消收藏
标签:  ui
文件大小
发表于
更新日期
88.295 KB
2018 年 1 月 9 日 下午 7:27
2018 年 5 月 26 日 下午 1:46
4 项改动说明 ( 查看 )

订阅以下载
Misclick Confirm

描述
This mod adds a confirmation pop up whenever you order a soldier to move somewhere without cover, to prevent accidental misclicking ending your Ironman campaign.

The pop up is only shown under these circumstances:

- The move order ends out in the open and not in cover.
- The move order ends outside the evac zone.
- There are ranged enemies visible to the currently selected unit.
- The selected unit can use cover (for example a human soldier and not a Spark)

This version of the mod only works in the vanilla game. There's a WOTC version here: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1267323416

Compatibility

- The mod no longer overrides XComTacticalInput, so should be compatible with mods which change camera behavior
- However, it now overrides XComTacticalController, so is not compatible with any mod that overrides that class (I'm only aware of one, robojumper's Unit Selection Order mod)

This is my first mod, so if you find bugs (sorry!) or if you have suggestions for how to improve it, please let me know in the comments!

Thanks to BlueRaja (the Confirm Free Reload mod was a useful example) and to robojumper for help on the forums.

Translations

- French translation added thanks to lexo1000
22 条留言
Robob 2022 年 4 月 16 日 上午 1:12 
I'd also like a confirmation for moving when it would reveal my soldier (breaking windows,for example)
Stratocoder 2020 年 7 月 7 日 上午 2:48 
Thank for the mod! Are you still maintaining it? I would like to suggest to add a friendly fire misclick confirmation. Just shot my own mind controlled soldier by mistake. :(
michiakig  [作者] 2018 年 5 月 26 日 下午 1:57 
hi @lexo1000, sorry it took so long, but I've uploaded a new version which fixes the issue with localization. it also includes your French language file, thanks for that
lexo1000 2018 年 5 月 14 日 上午 6:16 
Thanks a lot mate. Here is the french translation : https://1drv.ms/u/s!Ap4NRDnDNTz3hM9MvnJ0z5qoMqUV5A
michiakig  [作者] 2018 年 5 月 13 日 下午 6:15 
hi @lexo1000 thanks for the comment. looks like I made a mistake and although there is a localization file for English the values in the popup are hardcoded when it's actually displayed.

sorry about that. I'll try to find time to fix it this week, but no promises. if you post the file I can include it too
lexo1000 2018 年 5 月 13 日 上午 4:50 
Hi ! I created MisclickConfirm.fra to translate the window & put it in Localization folder but the text is still in english in-game. Do you know why ? thanks :)
michiakig  [作者] 2018 年 1 月 20 日 下午 5:55 
I've just uploaded a new version which adds a couple more exceptions, so the pop up is only shown if you're moving a unit that can use cover (not a Spark) and only if there are ranged enemies visible. It should also now be compatible with Long War or any camera mods
michiakig  [作者] 2018 年 1 月 12 日 下午 7:46 
@Gravemind I just tested it with a controller and it works but let me know if you have trouble with it.

Thanks @Garfield and @d_valroth for the suggestion, will try to implement that but from what I've seen of the input code it might be hairy

I also tested this with WOTC and it does not work, I had to edit a couple of lines, so I published that version as a separate mod: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1267323416
Gravemind 2018 年 1 月 12 日 下午 3:07 
This work with controllers? I know modded windows sometimes straight up don't work with controller inputs.
Cathulhu 2018 年 1 月 11 日 下午 6:29 
Also I'm fairly sure "misclick" is correct; even though it's not an actual word, the structure is like that of "mistrust" or "misnomer."