# Stage 2.2
- Move Timer to core - Use Timer for app_time - Fix Deltatime Bug in App - Add HwInfo to lib3ds (stolen from hbloader 2 pd-rewrite port) - Add GetSystemLanguage to lib3ds - Add Net Header for pd-net (still need to find a way to make this working) - Add base Decoder and Player Headers for pd-sound - Add Mp3 Decoder (useless and untested yet) - Add GetDataDirectory to App - Add InitFLag to App for HwInfo - Actually write the Timer class - Rework the UI7 Theme API to use SmartCtor - UI7::Menu::JoinAlign: Use a loop to determinate max width for centering a group - Add some Doctumentation around UI7::Menu
This commit is contained in:
@ -38,9 +38,9 @@ class Container : public SmartCtor<Container> {
|
||||
Container(const vec4& box) : pos(box.xy()), size(box.zw()) {}
|
||||
~Container() {}
|
||||
|
||||
void Init(LI::Renderer::Ref r, UI7::DrawList::Ref l, UI7::Theme* lt) {
|
||||
void Init(LI::Renderer::Ref r, UI7::DrawList::Ref l, UI7::Theme::Ref lt) {
|
||||
list = l;
|
||||
linked_theme = lt;
|
||||
theme = lt;
|
||||
ren = r;
|
||||
}
|
||||
|
||||
@ -50,6 +50,9 @@ class Container : public SmartCtor<Container> {
|
||||
vec2 GetPos() { return pos; }
|
||||
vec2 GetSize() { return size; }
|
||||
|
||||
void SetParent(Container::Ref v) { parent = v; }
|
||||
Container::Ref GetParent() { return parent; }
|
||||
|
||||
bool Skippable() const { return skippable; }
|
||||
bool Removable() const { return rem; }
|
||||
|
||||
@ -72,8 +75,9 @@ class Container : public SmartCtor<Container> {
|
||||
vec2 pos;
|
||||
vec2 size;
|
||||
UI7::DrawList::Ref list;
|
||||
UI7::Theme* linked_theme;
|
||||
UI7::Theme::Ref theme;
|
||||
LI::Renderer::Ref ren;
|
||||
Container::Ref parent;
|
||||
u32 id = 0;
|
||||
};
|
||||
} // namespace UI7
|
||||
|
Reference in New Issue
Block a user