MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / ImagePreview

Method ImagePreview

game/ui/debugtools/imagepreview.cpp:16–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14{
15
16ImagePreview::ImagePreview() : Stage()
17{
18 menuform = mksp<Form>();
19 menuform->Location = {0, 0};
20 menuform->Size = {fw().displayGetWidth(), fw().displayGetHeight()};
21
22 imageFilename = menuform->createChild<TextEdit>("", ui().getFont("smalfont"));
23 imageFilename->Location = {5, 5};
24 imageFilename->Size = {fw().displayGetWidth() - 10, 15};
25 imageFilename->setText("RAW:xcom3/ufodata/isobord1.dat:640:128:xcom3/ufodata/pal_01.dat");
26
27 imageView = menuform->createChild<Graphic>();
28 updateImage();
29}
30
31ImagePreview::~ImagePreview() = default;
32

Callers

nothing calls this directly

Calls 4

displayGetWidthMethod · 0.80
displayGetHeightMethod · 0.80
getFontMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected