mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
add scrollSize
This commit is contained in:
parent
566e3d31ae
commit
05f22af7b3
@ -22,6 +22,7 @@ class DirectScrollBar(DirectFrame):
|
||||
|
||||
('range', (0, 1), self.setRange),
|
||||
('value', 0, self.__setValue),
|
||||
('scrollSize', 0.01, self.setScrollSize),
|
||||
('pageSize', 0.1, self.setPageSize),
|
||||
('orientation', HORIZONTAL, self.setOrientation),
|
||||
('manageButtons', 1, self.setManageButtons),
|
||||
@ -96,6 +97,9 @@ class DirectScrollBar(DirectFrame):
|
||||
def getRatio(self):
|
||||
return self.guiItem.getRatio()
|
||||
|
||||
def setScrollSize(self):
|
||||
self.guiItem.setScrollSize(self['scrollSize'])
|
||||
|
||||
def setPageSize(self):
|
||||
self.guiItem.setPageSize(self['pageSize'])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user