# Small Update

- Start some work on scrolling
This commit is contained in:
2025-10-18 17:00:35 +02:00
parent 3823f08bab
commit 0ecf559fbb
4 changed files with 53 additions and 2 deletions

View File

@@ -131,6 +131,7 @@ class PD_UI7_API Layout {
// Scrolling (Only theoretical)
// Rendering must be done by the Objective that uses the Lyt
fvec2 ScrollOffset;
fvec2 ScrollStart;
bool Scrolling[2];
// Objects

View File

@@ -45,6 +45,10 @@ class PD_UI7_API Menu {
* @param label The text to draw
*/
void Label(const std::string &label);
template <typename... Args>
void Label(std::format_string<Args...> s, Args &&...args) {
Label(std::format(s, std::forward<Args>(args)...));
}
/**
* Render a Button
* @param label The buttons text
@@ -110,6 +114,7 @@ class PD_UI7_API Menu {
bool *pIsShown = nullptr;
bool pIsOpen = true;
std::unordered_map<u32, bool> pTreeNodes;
fvec2 TempScrollXY;
float TitleBarHeight = 0.f;
};