-
-
Notifications
You must be signed in to change notification settings - Fork 105
Ground line for select box #1717
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
base: develop
Are you sure you want to change the base?
Ground line for select box #1717
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. |
|
I dont think shp is a good idea, that will make it harder to draw a line which length is changeable |
|
No way to draw only a part of the SHP? |
I guess you could use |
I guess you could use maybe check height greater than 0 also good? |
I think it wouldn't be that useful. Hover units would also receive one then, and I don't think it would be beneficial in this case if the modder wants it only for airborne units. IIRC |
alright |
Huh, I thought this behavior should be controlled via a tag, maybe something like |
Also is it intended that the shadow is drawn over it? |
I dont have that plan |
finished |
I wonder how that dotted pattern is achieved too... |
There is a line draw functiont hat draws a line with a bool[] pattern. |
f2996a1
to
6e99d98
Compare
done |
Centering for Inf seems fixed. |
docs/User-Interface.md
Outdated
@@ -245,12 +245,16 @@ RealTimeTimers.Adaptive=false ; boolean | |||
|
|||
### Select Box | |||
|
|||
 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
 | |
 |
|
||
if (!visible) | ||
return; | ||
if (pSelectBox->GroundLine) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggest to add GroundLine.AlwaysDraw
too and maybe make the pattern customisable
TranslucencyLevel Translucency; | ||
Valueable<AffectedHouse> VisibleToHouses; | ||
Valueable<bool> VisibleToHouses_Observer; | ||
Valueable<bool> DrawAboveTechno; | ||
Valueable<bool> GroundShape_AlwaysDraw; | ||
Valueable<bool> GroundLine; | ||
Damageable<ColorStruct> GroundLineColor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the fact that it's Damageable
is not indicated in docs, maybe Shape and GroundShape should also be Damageable
then too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, I did
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh I missed that, pardon
what about the shapes being Damageable
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need that just control by frame index
how did Grounded work before by the way? maybe some migration could be added? |
@ZivDero could you consult @NetsuNegi regarding the pattern? |
what ? |
|
I dont know what was that |
The dashed line pattern is a static bool[16] that determines which pixels are drawn. There is no need to reference the one that exists in the game. |
If it can be done -- why not? Also, is it required to be bool[16] specifically? |
Grounded
has been abandoned, you can now useGroundShape
to specific a image which always draw on ground, it will only draw when techno is in air if setGround.AlwaysDraw=false
, this also affect onGroundLine
.Grounded
已经被废弃了,你现在可以通过GroundShape
指定一个始终绘制在地面的图像,若Ground.AlwaysDraw=false
,那么它只会在单位位于空中时绘制,这也影响GroundLine
的绘制。GroundLine=true
, the game will draw a line from techno's position to its vertical projection,GroundLine.Dashed=true
means the projection line is a dashed line.GroundLine=true
,那么游戏将会绘制一条从单位的位置到其垂直投影的线,GroundLine.Dashed=true
意味着投影线为虚线。In
rulesmd.ini
: