Use ActorPreviewWidget for the color pickers.

This commit is contained in:
Paul Chote
2015-02-09 23:48:42 +00:00
parent aa9db669e7
commit 8d51fb0e66
18 changed files with 63 additions and 100 deletions

View File

@@ -29,14 +29,11 @@ Background@COLOR_CHOOSER:
Y: 2
Width: 144
Height: 72
SpriteSequence@PREVIEW:
X: 153
Y: 1-40
ActorPreview@PREVIEW:
X: 163
Width: 80
Height: 73
Palette: colorpicker
Unit: gacnst
Sequence: make
Height: 74
Animate: true
Button@RANDOM_BUTTON:
Key: tab
X: 158

View File

@@ -20,6 +20,7 @@ Metrics:
TextContrast: false
TextContrastColor: 0,0,0
ColorPickerRemapIndices: 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31
ColorPickerActorType: ^mmch.colorpicker
SpawnFont: TinyBold
SpawnColor: 255,255,255
SpawnContrastColor: 0,0,0

View File

@@ -10,6 +10,20 @@ waypoint:
RenderEditorOnly:
BodyOrientation:
^mmch.colorpicker:
Inherits: MMCH
Mobile:
InitialFacing: 160
Turreted:
InitialFacing: 160
RenderInfantry:
Image: mmch
StandAnimations: run
Palette: colorpicker
RenderVoxels:
Image: mmch
Palette: colorpicker
CAMERA:
Immobile:
OccupiesSpace: false

View File

@@ -37,6 +37,7 @@ World:
Name: colorpicker
Filename: unittem.pal
AllowModifiers: false
ShadowIndex: 1
PaletteFromRGBA@shadow:
Name: shadow
R: 0