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

Method MakeBorderSprite

src/scene_file.cpp:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46std::unique_ptr<Sprite> Scene_File::MakeBorderSprite(int y) {
47 int border_height = 8;
48 auto bitmap = Bitmap::Create(MENU_WIDTH, border_height, Cache::System()->GetBackgroundColor());
49 auto sprite = std::unique_ptr<Sprite>(new Sprite());
50 sprite->SetVisible(true);
51 sprite->SetZ(Priority_Window + 1);
52 sprite->SetBitmap(bitmap);
53 sprite->SetX(Player::menu_offset_x);
54 sprite->SetY(y);
55 return sprite;
56}
57
58std::unique_ptr<Sprite> Scene_File::MakeArrowSprite(bool down) {
59 int sprite_width = 8;

Callers

nothing calls this directly

Calls 6

SetZMethod · 0.80
GetBackgroundColorMethod · 0.45
SetVisibleMethod · 0.45
SetBitmapMethod · 0.45
SetXMethod · 0.45
SetYMethod · 0.45

Tested by

no test coverage detected