blob: 87425ec5843bf761461b437a8a9b090c89d950d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#pragma once
#include "StarPane.hpp"
namespace Star {
STAR_CLASS(LabelWidget);
STAR_CLASS(ButtonWidget);
STAR_CLASS(ListWidget);
class ModsMenu : public Pane {
public:
ModsMenu();
void update(float dt) override;
private:
static String bestModName(JsonObject const& metadata, String const& sourcePath);
void openLink();
void openWorkshop();
StringList m_assetsSources;
ListWidgetPtr m_modList;
LabelWidgetPtr m_modName;
LabelWidgetPtr m_modAuthor;
LabelWidgetPtr m_modVersion;
LabelWidgetPtr m_modPath;
LabelWidgetPtr m_modDescription;
ButtonWidgetPtr m_linkButton;
ButtonWidgetPtr m_copyLinkButton;
};
}
|