The engine now uses the SDL2.0 scroll events properly.

Scroll speed is now a user preference.
This commit is contained in:
Saticmotion
2014-05-12 22:04:18 +02:00
parent bad6a99caf
commit 1bf3f3e03e
14 changed files with 69 additions and 57 deletions

View File

@@ -18,7 +18,6 @@ Background@MAPCHOOSER_PANEL:
Y: 47
Width: PARENT_RIGHT - 40
Height: 474
ScrollVelocity: 40
Children:
ScrollItem@MAP_TEMPLATE:
Width: 180

View File

@@ -49,7 +49,6 @@ Background@SERVERBROWSER_PANEL:
Y: 80
Width: 700
Height: 360
ScrollVelocity: 20
Children:
ScrollItem@SERVER_TEMPLATE:
Width: PARENT_RIGHT-27

View File

@@ -3,7 +3,7 @@ Background@SETTINGS_PANEL:
X: (WINDOW_RIGHT - WIDTH)/2
Y: (WINDOW_BOTTOM- HEIGHT)/2
Width: 600
Height: 400
Height: 450
Children:
Label@SETTINGS_LABEL_TITLE:
Y: 20
@@ -330,18 +330,33 @@ Background@SETTINGS_PANEL:
Ticks: 5
MinimumValue: 10
MaximumValue: 50
Label@UI_SCROLL_SPEED_LABEL:
X: PARENT_RIGHT - WIDTH - 270
Y: 97
Width: 95
Height: 25
Text: UI Scroll Speed:
Align: Right
Slider@UI_SCROLLSPEED_SLIDER:
X: PARENT_RIGHT - WIDTH - 15
Y: 103
Width: 250
Height: 20
Ticks: 5
MinimumValue: 1
MaximumValue: 100
Label@HOTKEYS_TITLE:
Y: 115
Y: 135
Width: PARENT_RIGHT
Font: Bold
Text: Hotkeys
Align: Center
ScrollPanel@HOTKEY_LIST:
X: 15
Y: 135
Y: 155
Width: 560
ItemSpacing: 4
Height: 160
Height: 180
Children:
ScrollItem@HEADER:
BaseName: scrollheader