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

Method GetTexture

engine/Poseidon/UI/Controls/UIControlsExt.cpp:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43#define ISSPACE(c) ((c) >= 0 && (c) <= 32)
44
45Texture* HTMLField::GetTexture()
46{
47 if (condition.GetLength() > 0)
48 {
49 GameState* gstate = GWorld->GetGameState();
50 bool result = gstate->EvaluateBool(condition);
51 return result ? texture1 : texture2;
52 }
53 else
54 {
55 return texture1;
56 }
57}
58
59CHTMLContainer::CHTMLContainer()

Callers 2

DrawFieldMethod · 0.45
OnDrawMethod · 0.45

Calls 3

EvaluateBoolMethod · 0.80
GetLengthMethod · 0.45
GetGameStateMethod · 0.45

Tested by

no test coverage detected