Sidebar for GDI has hardcode positions
[Side]►
GDI hardcode positions buttons on the sidebar. They are located above and have larger dimensions. Achieve a similar result by editing SHP - I could not. I want to have the same positions buttons for others sides.
What would bring some clarity. In the screenshot: [NOD]Sidebar.
As you can see - the buttons are not in their places.
https:/
Whiteboard
DEFINE_HOOK(6A5090, SidebarGDIPosit
{
int idxSide = ScenarioClass:
SideClass* pSide = SideClass:
if(
return pData->
? 0x6A509F /* GDI */
: 0x6A50EC /* NOD */
;
}
return 0x6A50EC;
}
=======
or:
DEFINE_HOOK(6A5090, SidebarGDIPosit
{
int idxSide = ScenarioClass:
DWORD &EndRadarZone = *reinterpret_
DWORD &ActionTop = *reinterpret_
DWORD &ActionLeft = *reinterpret_
DWORD &TabsTop = *reinterpret_
DWORD &TabsLeft = *reinterpret_
DWORD &CameosTop = *reinterpret_
DWORD &CameosLeft = *reinterpret_
if(!idxSide){ // GDI
EndRadarZone = 158;
ActionTop = 166; // EndRadarZone + 0x8
ActionLeft = 64;
TabsTop = 197; // ActionTop + 0x1F
TabsLeft = 29;
CameosTop = 227; // TabsTop + 0x1E
CameosLeft = 63;
}else{ //NOD
EndRadarZone = 158;
ActionTop = 165; // EndRadarZone + 0x7
ActionLeft = 52;
TabsTop = 197; // ActionTop + 0x20
TabsLeft = 32;
CameosTop = 227; // TabsTop + 0x1E
CameosLeft = 64;
}
return 0x6A50DB;
}
=======