Improved dropdown element
This commit is contained in:
parent
5e195cf029
commit
515b591ee8
3 changed files with 113 additions and 83 deletions
|
|
@ -556,10 +556,6 @@ void GUIManager::layout_if_necessary() {
|
|||
}
|
||||
|
||||
void GUIManager::layout() {
|
||||
#ifdef CLAY_DEBUG_MENU_ENABLED
|
||||
Clay_SetPointerState({io.input->mouse.pos.x(), io.input->mouse.pos.y()}, io.input->mouse.leftDown);
|
||||
#endif
|
||||
Clay_UpdateScrollContainers(false, {0, 0}, 0.1f); // Important regardless if scroll position is updated with Clay or not
|
||||
constexpr int LAYOUT_RUN_COUNT = 6;
|
||||
for(int i = 0; i < LAYOUT_RUN_COUNT; i++)
|
||||
single_layout_run();
|
||||
|
|
@ -571,6 +567,10 @@ void GUIManager::layout_begin() {
|
|||
for(auto& [id, a] : animations)
|
||||
a.isUsedThisFrame = false;
|
||||
|
||||
#ifdef CLAY_DEBUG_MENU_ENABLED
|
||||
Clay_SetPointerState({io.input->mouse.pos.x(), io.input->mouse.pos.y()}, io.input->mouse.leftDown);
|
||||
#endif
|
||||
Clay_UpdateScrollContainers(false, {0, 0}, 0.1f); // Important regardless if scroll position is updated with Clay or not
|
||||
Clay_SetLayoutDimensions(Clay_Dimensions(io.windowSize.x(), io.windowSize.y()));
|
||||
Clay_SetCurrentContext(clayInstance);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue