Prototype text dropdown

This commit is contained in:
Paul Chote
2011-05-17 18:46:28 +12:00
parent e8d652ad63
commit b417118429
6 changed files with 118 additions and 98 deletions

View File

@@ -0,0 +1,91 @@
Background@COLOR_CHOOSER:
Id:COLOR_CHOOSER
Delegate:CncColorPickerLogic
Background:panel-black
Width:315
Height:130
Children:
Button@SAVE_BUTTON:
Id:SAVE_BUTTON
X:210
Y:90
Width:90
Height:25
Text:Save
Button@RANDOM_BUTTON:
Id:RANDOM_BUTTON
X:15
Y:90
Width:90
Height:25
Text:Random
ShpImage@FACT:
Id:FACT
X:220
Y:15
Image:fact
Palette:colorpicker
Label@HUE_LABEL:
X:5
Y:5
Width:40
Height:20
Align:Right
Text:Hue:
Font:Bold
Slider@HUE:
Id:HUE_SLIDER
X:43
Y:10
Width:160
Height:20
Ticks:5
Label@SAT_LABEL:
X:5
Y:30
Width:40
Height:20
Align:Right
Text:Sat:
Font:Bold
Slider@SAT:
Id:SAT_SLIDER
X:43
Y:35
Width:160
Height:20
Ticks:5
Label@LUM_LABEL:
X:5
Y:55
Width:40
Height:20
Align:Right
Text:Lum:
Font:Bold
Slider@LUM:
Id:LUM_SLIDER
X:43
Y:60
Width:160
Height:20
Ticks:5
Range:0.2,1
ScrollPanel@LABEL_DROPDOWN_TEMPLATE:
Id:LABEL_DROPDOWN_TEMPLATE
Width:100
Children:
ScrollItem@TEMPLATE:
Id:TEMPLATE
Width:PARENT_RIGHT-27
Height:25
X:2
Y:0
Visible:false
Children:
Label@LABEL:
X:10
Id:LABEL
Width:PARENT_RIGHT-20
Height:25

View File

@@ -380,77 +380,4 @@ Container@SERVER_LOBBY:
Y:499
Width:140
Height:35
Text:Start Game
Background@COLOR_CHOOSER:
Id:COLOR_CHOOSER
Delegate:CncColorPickerLogic
Background:panel-black
Width:315
Height:130
Children:
Button@SAVE_BUTTON:
Id:SAVE_BUTTON
X:210
Y:90
Width:90
Height:25
Text:Save
Button@RANDOM_BUTTON:
Id:RANDOM_BUTTON
X:15
Y:90
Width:90
Height:25
Text:Random
ShpImage@FACT:
Id:FACT
X:220
Y:15
Image:fact
Palette:colorpicker
Label@HUE_LABEL:
X:5
Y:5
Width:40
Height:20
Align:Right
Text:Hue:
Font:Bold
Slider@HUE:
Id:HUE_SLIDER
X:43
Y:10
Width:160
Height:20
Ticks:5
Label@SAT_LABEL:
X:5
Y:30
Width:40
Height:20
Align:Right
Text:Sat:
Font:Bold
Slider@SAT:
Id:SAT_SLIDER
X:43
Y:35
Width:160
Height:20
Ticks:5
Label@LUM_LABEL:
X:5
Y:55
Width:40
Height:20
Align:Right
Text:Lum:
Font:Bold
Slider@LUM:
Id:LUM_SLIDER
X:43
Y:60
Width:160
Height:20
Ticks:5
Range:0.2,1
Text:Start Game

View File

@@ -78,6 +78,7 @@ ChromeLayout:
mods/cnc/chrome/modchooser.yaml
mods/cnc/chrome/preferences.yaml
mods/cnc/chrome/cheats.yaml
mods/cnc/chrome/dropdowns.yaml
Weapons:
mods/cnc/weapons.yaml