None of the C&C games have this sort of cursor function (what a shame EALA), but Starcraft II and even HL2 Wars do. The original concept of C&C3 by ex-Westwood did use a selection box with a background shader. I even asked for a coding source in the HL2 Wars forums and I got the code I was looking for.
The complete coding clue for the selection box with background shader, from the HL2 Wars mod (thanks to Sandern for this):
void HL2WarsViewport::DrawSelectBox() { C_HL2WarsPlayer* pPlayer = C_HL2WarsPlayer::GetLocalHL2WarsPlayer(); if( !pPlayer->IsLeftPressed() ) return; // Must be higher than the threshold if( (pPlayer->GetMouseDataLeftPressed().m_vEndPos - pPlayer->GetMouseData().m_vEndPos).Length2D() <= SELECTBOX_THRESHOLD ) return; // Draw the selection box short xmin, ymin, xmax, ymax; xmin = MIN(pPlayer->GetMouseDataLeftPressed().m_iX, pPlayer->GetMouseData().m_iX); xmax = MAX(pPlayer->GetMouseDataLeftPressed().m_iX, pPlayer->GetMouseData().m_iX); ymin = MIN(pPlayer->GetMouseDataLeftPressed().m_iY, pPlayer->GetMouseData().m_iY); ymax = MAX(pPlayer->GetMouseDataLeftPressed().m_iY, pPlayer->GetMouseData().m_iY); vgui::surface()->DrawSetColor( Color( 0, 0, 0, 115 ) ); vgui::surface()->DrawOutlinedRect( xmin, ymin, xmax, ymax ); vgui::surface()->DrawSetColor( Color( 75, 75, 75, 90 ) ); vgui::surface()->DrawFilledRect( xmin, ymin, xmax, ymax ); }
Now.... how can I apply this to C&C3 and RA3 anyway? Some modder told me (in the official C&C forums) I can edit and modify the selection box coding through a AptUI. I need the name of the UI that has the Apt files used for the mouse selection box. Perhaps maybe some of you modders could be interested in this.
I do know that this type of C++ coding does not necessarily work under the C&C3 Mod SDK since it's mostly in xml coding.