1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Use kind-of-factory approach for widget builders

This commit is contained in:
nordsoft
2022-12-22 02:05:29 +04:00
parent 8f7025328f
commit e245dbaf9d
4 changed files with 34 additions and 62 deletions

View File

@@ -72,10 +72,8 @@ public:
void clickLeft(tribool down, bool previousState) override;
void setTemplate(const CRmgTemplate *);
protected:
std::shared_ptr<CIntObject> buildCustomWidget(const JsonNode & config) override;
private:
std::shared_ptr<CIntObject> buildListItem(const JsonNode & config);
void sliderMove(int slidPos);
void updateListItems();