MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / DisplayHintC

Method DisplayHintC

engine/Poseidon/UI/DisplayUIMenus.cpp:730–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

728 protected:
729 CStatic* _background;
730 CStatic* _hint;
731 CActiveText* _button;
732
733 public:
734 DisplayHintC(ControlsContainer* parent, RString hint);
735 void OnSimulate(EntityAI* vehicle) override;
736 Control* OnCreateCtrl(int type, int idc, const ParamEntry& cls) override;
737 RString GetHint() { return _hint->GetText(); }
738};
739
740DisplayHintC::DisplayHintC(ControlsContainer* parent, RString hint) : Display(parent)
741{
742 _enableSimulation = false;
743 Load(Res >> "RscDisplayHintC");
744
745 _hint->SetText(hint);

Callers

nothing calls this directly

Calls 7

GetTextHeightMethod · 0.80
SetTextMethod · 0.45
YMethod · 0.45
HMethod · 0.45
SetPosMethod · 0.45
XMethod · 0.45
WMethod · 0.45

Tested by

no test coverage detected