-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dehardcode] Type select for buildings #1495
base: develop
Are you sure you want to change the base?
Conversation
Nightly build for this pull request:
This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build. |
Co-Authored-By: 绯红热茶 <169989423+crimrecya@users.noreply.github.com>
Type Select already works on buildings, just differently to prevent misclicks: you press T and then you select the building. 1x1 buildings with UndeploysInto are considered vehicles so they use their version of Type Select, where the order of pressing T doesn't matter. So what this is is allowing that for buildings, not enabling Type Select for buildings as a whole. |
I am more inclined to believe that WW originally intended to ban type selection on buildings, but did not completely ban it. The basis is that WW provides a type selection button in the bottom bar, but it is not valid for buildings. If button clicks and shortcut keys produce different effects, I would consider it a bug. |
目前的代码可能会在没有Ares的情况下工作异常。之后我会仔细检查这个问题。 |
Ares already has a flag called https://ares-developers.github.io/Ares-docs/new/buildings/massselect.html |
This is a bit less labor-intensive than writing |
This is still useful, because I don't want to box select buildings. |
Oh, I'm sorry. Seems this also make all buildings box selectable. |
Is #92 relevant to this? I am not sure |
This PR modifies the method at |
我设置那个全局变量就是为了处理这个问题。程序在执行到type select的时候会设置全局变量,只有在全局变量已被设置的情况下才会影响 |
你确定吗,我测试没有这个问题 |
Type select for buildings
UndeploysInto
. Now it's possible to use it on all buildings ifBuildingTypeSelectable
set to true.In
rulesmd.ini