New slider Range parameter. Palette modifications. Potential crash fix. Clamp function.

Range parameter added to slider. Supports returning a range of values
rather than just 0-1. Allows you to not have to post process the offset.
Modified palette selector to not have full range, which was causing
blown out units.
Introduced exension method Clamp<T>(min, max)
Fixed crash deserializing out of bound color value using above
extension.
This commit is contained in:
Caleb Anderson
2010-10-04 02:30:04 -05:00
committed by Paul Chote
parent 06b20c8ba5
commit 7bdf6a953f
9 changed files with 184 additions and 126 deletions

View File

@@ -370,10 +370,12 @@ Background@SERVER_LOBBY:
Slider@LUM:
Id:LUM_SLIDER
X:120
Id:LUM_SLIDER
Y:90
Width:260
Height:20
Ticks:5
Range:0.2,1
Label@RANGE_LABEL:
X:0
Y:120
@@ -388,6 +390,7 @@ Background@SERVER_LOBBY:
Width:260
Height:20
Ticks:5
Range:0,0.25
Background@MAP_CHOOSER:
Id:MAP_CHOOSER
X:(WINDOW_RIGHT - WIDTH)/2

View File

@@ -371,10 +371,12 @@ Background@SERVER_LOBBY:
Slider@LUM:
Id:LUM_SLIDER
X:120
Id:LUM_SLIDER
Y:90
Width:260
Height:20
Ticks:5
Range:0.2,1
Label@RANGE_LABEL:
X:0
Y:120
@@ -389,6 +391,7 @@ Background@SERVER_LOBBY:
Width:260
Height:20
Ticks:5
Range:0,0.25
Background@MAP_CHOOSER:
Id:MAP_CHOOSER
X:(WINDOW_RIGHT - WIDTH)/2