mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-12 13:47:15 +00:00
32 lines
845 B
C++
32 lines
845 B
C++
#pragma once
|
|
|
|
#include "UIControl_Base.h"
|
|
|
|
class UIControl_SpaceIndicatorBar : public UIControl_Base {
|
|
private:
|
|
IggyName m_setSaveSizeFunc, m_setTotalSizeFunc, m_setSaveGameOffsetFunc;
|
|
int64_t m_min;
|
|
int64_t m_max;
|
|
int64_t m_currentSave, m_currentTotal;
|
|
float m_currentOffset;
|
|
|
|
std::vector<std::pair<int64_t, float> > m_sizeAndOffsets;
|
|
|
|
public:
|
|
UIControl_SpaceIndicatorBar();
|
|
|
|
virtual bool setupControl(UIScene* scene, IggyValuePath* parent,
|
|
const std::string& controlName);
|
|
|
|
void init(UIString label, int id, int64_t min, int64_t max);
|
|
virtual void ReInit();
|
|
void reset();
|
|
|
|
void addSave(int64_t size);
|
|
void selectSave(int index);
|
|
|
|
private:
|
|
void setSaveSize(int64_t size);
|
|
void setTotalSize(int64_t totalSize);
|
|
void setSaveGameOffset(float offset);
|
|
}; |