Etterna 0.74.4
Loading...
Searching...
No Matches
NoteFieldPreview.h
1#ifndef NOTE_FIELDPREVIEW_H
2#define NOTE_FIELDPREVIEW_H
3
4#include "NoteField.h"
5
6class Steps;
7
9{
10 public:
11 void LoadFromNode(const XNode* pNode) override;
12 void Update(float fDeltaTime) override;
13 void DrawPrimitives() override;
14 // THIS DOESNT TRANSFORM NOTEDATA!!! DO IT YOURSELF!!!!
15 void LoadNoteData(NoteData* pNoteData);
16 // This transforms NoteData to style and will follow PlayerOptions if wanted
17 void LoadNoteData(Steps* pSteps, bool bTransform = false);
18 void LoadDummyNoteData();
19 void UpdateDrawDistance(int aftertargetspixels, int beforetargetspixels);
20 void UpdateYReversePixels(float ReverseOffsetPixels);
21 void ensure_note_displays_have_skin() override;
24 void SetPoseNoteField(bool b) { poseNoteField = b; }
25 void SetConstantMini(float f)
26 {
27 constantMini = f;
28 usingConstantMini = true;
29 }
30 void ResetConstantMini()
31 {
32 constantMini = 0.F;
33 usingConstantMini = false;
34 }
35
36 [[nodiscard]] auto Copy() const -> NoteFieldPreview* override;
37 void PushSelf(lua_State* L) override;
38
39 private:
40 NoteData* p_dummyNoteData;
41 NoteData* p_NoteDataFromSteps;
42 bool loadedNoteDataAtLeastOnce = false;
43 bool poseNoteField = false;
44 bool usingConstantMini = false;
45 float constantMini = 0.F;
46 float ReceptorArrowsYReverse = 0.F;
47 float ReceptorArrowsYStandard = 0.F;
48};
49
50#endif
Holds data about the notes that the player is supposed to hit.
Definition NoteData.h:43
Definition NoteFieldPreview.h:9
void DrawPrimitives() override
Draw the primitives of the Actor.
Definition NoteFieldPreview.cpp:353
void LoadNoteData(NoteData *pNoteData)
Definition NoteFieldPreview.cpp:156
An Actor that renders NoteData.
Definition NoteField.h:15
Holds note information for a Song.
Definition Steps.h:42
Definition XmlFile.h:95