esp8266-oled-ssd1306 icon indicating copy to clipboard operation
esp8266-oled-ssd1306 copied to clipboard

Overlay for particular frames only

Open BbIKTOP opened this issue 4 years ago • 2 comments

Sorry, didn't find any other places to ask. It's more like feature reques, probably, but maybe it is already implemented. Is it possible to set the overlay for some particular frames only? Like, frame 1 has no overlay, frame 2, 3 and 4 have, and frames 5 and 6 have no overlay as well as first one. During transition from 1 to 2, overlay appears scrolling together with 2, then stays as usual overlay on transition 2-3 and 3-4, then scrolls out of the screen with frame 4 during 4-5 transition and does not appear while scrolling from 5 to 6. Is it possible to implement this somehow? Thank you!

BbIKTOP avatar Oct 09 '21 22:10 BbIKTOP

I tried to implement this myself, but cannot find a way to determine the curent transition state. I see, there's frameState field in the OLEDDisplayUiState, but it does not indicate, does the frame scrolling into view or out of view. Is there a way to add the scrolling direction? Like

enum FrameState {
  IN_TRANSITION_IN,
  IN_TRANSITION_OUT,
  FIXED
};

Or something alike?

BbIKTOP avatar Oct 10 '21 10:10 BbIKTOP

Any feedback?

BbIKTOP avatar Dec 19 '21 15:12 BbIKTOP