[Source] Help

06/20/2018 13:55 xKrakyx#1
Hello epvp,
I needed to advise that when I change CTClientUIBase to ITInnerFrame and change it to make it happen in the game, nothing is displayed in the game (see titles)

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]
06/20/2018 18:24 1234hans#2
Well you have the Title TCD?
06/20/2018 21:33 xKrakyx#3
Quote:
Originally Posted by 1234hans View Post
Well you have the Title TCD?
Yeah, i have all titles, but when i change it so i have problem with struc in source.. not working in game..
06/21/2018 11:27 Jirkus_#4
I don't know if I understand the problem, but the reason why e.g the popup is shown all the time, is because it is inherited from the inner frame's show component.

You should add virtual showcomponent, which will override it.

(pseudocode)

Code:
(header; virtual) auto Title::ShowComponent(BOOL Visible) -> void
{
  //This will show all the components, so you have to call the showing / initial render functions here

   ITInnerFrame::ShowComponent(Visible);
   
   Box->ShowComponent(FALSE);
   RenderStuff();
}
To load the titles, you have to call the functions, since you changed the frame, I have no idea where the call for that is, but you have to do something like

Code:
for (const auto& TitleGrp : CTChart::m_mapTitleGroup)
{
  AddGroup(TitleGrp->...);
  for(auto& Title : TitleGrp->m_mapTitle)
    Add(Title->...);
}
it is most likely already in the code somewhere, just not being called.