MCPcopy Create free account
hub / github.com/EasyRPG/Player / DrawItem

Method DrawItem

src/window_command.cpp:49–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void Window_Command::DrawItem(int index, Font::SystemColor color) {
50 contents->ClearRect(Rect(0, menu_item_height * index, contents->GetWidth() - 0, menu_item_height));
51 contents->TextDraw(0, menu_item_height * index + menu_item_height / 8, color, commands[index]);
52}
53
54void Window_Command::DisableItem(int i) {
55 SetItemEnabled(i, false);

Callers

nothing calls this directly

Calls 4

ClearRectMethod · 0.80
TextDrawMethod · 0.80
RectClass · 0.70
GetWidthMethod · 0.45

Tested by

no test coverage detected