-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted the slider fields to use the new select field
- Loading branch information
Showing
11 changed files
with
342 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,21 @@ | ||
#ifndef UI_SLIDER_FIELD_H | ||
#define UI_SLIDER_FIELD_H | ||
#pragma once | ||
|
||
#include "ui/MI_SelectField.h" | ||
|
||
class MI_SliderField : public MI_SelectField | ||
{ | ||
public: | ||
|
||
class MI_SliderField : public MI_SelectFieldDyn<short> { | ||
public: | ||
MI_SliderField(gfxSprite * nspr, gfxSprite * nsprSlider, short x, short y, const char * name, short width, short indent1, short indent2); | ||
virtual ~MI_SliderField(); | ||
|
||
void SetPosition(short x, short y); | ||
|
||
//Draws every frame | ||
virtual void Draw(); | ||
void Draw() override; | ||
//Sends player input to control on every frame | ||
MenuCodeEnum SendInput(CPlayerInput * playerInput); | ||
MenuCodeEnum SendInput(CPlayerInput * playerInput) override; | ||
|
||
protected: | ||
|
||
gfxSprite * sprSlider; | ||
short iIndent2; | ||
|
||
gfxSprite* m_sprSlider; | ||
short m_indent2; | ||
}; | ||
|
||
#endif // UI_SLIDER_FIELD_H |
Oops, something went wrong.