mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-06-01 07:34:36 +00:00
41 lines
878 B
C++
41 lines
878 B
C++
#pragma once
|
|
|
|
#include "UIControl_Base.h"
|
|
|
|
class UIControl_List : public UIControl_Base
|
|
{
|
|
protected:
|
|
IggyName m_removeAllItemsFunc, m_funcHighlightItem, m_funcRemoveItem, m_funcCanTouchFocus, m_funcSetTouchFocus, m_funcCanTouchTrigger, m_funcEnableItem, m_funcSetItemLabel, m_funcGetItemLabel;
|
|
|
|
int m_itemCount;
|
|
int m_iCurrentSelection;
|
|
|
|
public:
|
|
UIControl_List();
|
|
~UIControl_List();
|
|
|
|
bool setupControl(UIScene* scene, IggyValuePath* parent, const std::string& controlName);
|
|
|
|
void init(int id);
|
|
virtual void ReInit();
|
|
|
|
void clearList();
|
|
|
|
void removeItem(int index);
|
|
|
|
int getItemCount()
|
|
{
|
|
return m_itemCount;
|
|
}
|
|
|
|
void setCurrentSelection(int iSelection);
|
|
int getCurrentSelection();
|
|
|
|
void updateChildFocus(int iChild);
|
|
|
|
void SetTouchFocus(S32 iX, S32 iY, bool bRepeat);
|
|
bool CanTouchTrigger(S32 iX, S32 iY);
|
|
|
|
void addElement(eUIControlType type, int index);
|
|
};
|