mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Use mouse position for squad movement popup box initial location
This commit is contained in:
@@ -3683,7 +3683,7 @@ void SetUpMovingListsForSector( INT16 sSectorX, INT16 sSectorY, INT16 sSectorZ )
|
|||||||
|
|
||||||
void CreatePopUpBoxForMovementBox( void )
|
void CreatePopUpBoxForMovementBox( void )
|
||||||
{
|
{
|
||||||
SGPPoint MovePosition = { UI_MAP.ViewRegion.x + UI_MAP.ViewRegion.width / 2, UI_MAP.ViewRegion.y + 100 };
|
SGPPoint MovePosition = { gMapViewRegion.MouseXPos, gMapViewRegion.MouseYPos };
|
||||||
SGPPoint Position;
|
SGPPoint Position;
|
||||||
SGPRect Dimensions;
|
SGPRect Dimensions;
|
||||||
|
|
||||||
@@ -4186,7 +4186,7 @@ void MoveMenuMvtCallback(MOUSE_REGION * pRegion, INT32 iReason )
|
|||||||
if (iReason & MSYS_CALLBACK_REASON_GAIN_MOUSE )
|
if (iReason & MSYS_CALLBACK_REASON_GAIN_MOUSE )
|
||||||
{
|
{
|
||||||
// highlight string
|
// highlight string
|
||||||
HighLightBoxLine( ghMoveBox, iValue );
|
HighLightBoxLine( ghMoveBox, iValue );
|
||||||
}
|
}
|
||||||
else if (iReason & MSYS_CALLBACK_REASON_LOST_MOUSE )
|
else if (iReason & MSYS_CALLBACK_REASON_LOST_MOUSE )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user