mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
multiline textbox mode
This commit is contained in:
parent
925ef426de
commit
256808630b
11 changed files with 260 additions and 51 deletions
|
|
@ -60,8 +60,11 @@ void Container::act(float delta) {
|
|||
|
||||
void Container::scrolled(int value) {
|
||||
int diff = (actualLength-getSize().y);
|
||||
if (scroll < 0 && diff <= 0) {
|
||||
scroll = 0;
|
||||
}
|
||||
if (diff > 0 && scrollable) {
|
||||
scroll += value * 40;
|
||||
scroll += value * scrollStep;
|
||||
if (scroll > 0)
|
||||
scroll = 0;
|
||||
if (-scroll > diff) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue