Added faction-specific units for colorpicker previews in TS

This commit is contained in:
penev92
2021-07-28 13:12:37 +03:00
committed by abcdefg30
parent 2b361ad41e
commit 3ce32fe354
3 changed files with 34 additions and 19 deletions

View File

@@ -4,29 +4,29 @@ Background@COLOR_CHOOSER:
PalettePresetRows: 2 PalettePresetRows: 2
PaletteCustomRows: 1 PaletteCustomRows: 1
Background: dialog2 Background: dialog2
Width: 326 Width: 330
Height: 154 Height: 154
Children: Children:
Button@RANDOM_BUTTON: Button@RANDOM_BUTTON:
Key: tab Key: tab
X: 245 X: 245
Y: 95 Y: 95
Width: 76 Width: 80
Height: 25 Height: 25
Text: Random Text: Random
Font: Bold Font: Bold
Button@STORE_BUTTON: Button@STORE_BUTTON:
X: 245 X: 245
Y: 124 Y: 124
Width: 76 Width: 80
Height: 25 Height: 25
Text: Store Text: Store
Font: Bold Font: Bold
ActorPreview@PREVIEW: ActorPreview@PREVIEW:
X: 245 X: PARENT_RIGHT - 94
Y: 16 Y: 10
Width: 76 Width: 90
Height: 74 Height: 90
Animate: true Animate: true
Button@MIXER_TAB_BUTTON: Button@MIXER_TAB_BUTTON:
X: 5 X: 5
@@ -46,7 +46,7 @@ Background@COLOR_CHOOSER:
Background: dialog3 Background: dialog3
X: 5 X: 5
Y: 5 Y: 5
Width: PARENT_RIGHT - 90 Width: PARENT_RIGHT - 94
Height: PARENT_BOTTOM - 34 Height: PARENT_BOTTOM - 34
Children: Children:
ColorMixer@MIXER: ColorMixer@MIXER:
@@ -58,7 +58,7 @@ Background@COLOR_CHOOSER:
Background: dialog3 Background: dialog3
X: 5 X: 5
Y: 5 Y: 5
Width: PARENT_RIGHT - 90 Width: PARENT_RIGHT - 94
Height: PARENT_BOTTOM - 34 Height: PARENT_BOTTOM - 34
Visible: false Visible: false
Children: Children:

View File

@@ -28,20 +28,32 @@ waypoint:
MapEditorData: MapEditorData:
Categories: System Categories: System
mmch.colorpicker: harv.colorpicker:
Inherits: MMCH Inherits: HARV
Mobile:
InitialFacing: 640
WithFacingSpriteBody:
Sequence: walk
-Buildable: -Buildable:
-MapEditorData: -MapEditorData:
RenderVoxels: RenderVoxels:
Image: mmch Image: harv
Palette: colorpicker Palette: colorpicker
RenderSprites: Scale: 18
Image: mmch
hvr.colorpicker:
Inherits: HVR
-Buildable:
-MapEditorData:
RenderVoxels:
Image: hvr
Palette: colorpicker Palette: colorpicker
Scale: 18
stnk.colorpicker:
Inherits: STNK
-Buildable:
-MapEditorData:
RenderVoxels:
Image: stnk
Palette: colorpicker
Scale: 18
CAMERA: CAMERA:
Interactable: Interactable:

View File

@@ -381,7 +381,10 @@ World:
ScriptTriggers: ScriptTriggers:
TimeLimitManager: TimeLimitManager:
ColorPickerManager: ColorPickerManager:
PreviewActor: mmch.colorpicker PreviewActor: harv.colorpicker
FactionPreviewActors:
gdi: hvr.colorpicker
nod: stnk.colorpicker
PresetHues: 0, 0.125, 0.185, 0.4, 0.54, 0.66, 0.79, 0.875, 0, 0.14, 0.23, 0.43, 0.54, 0.625, 0.77, 0.85 PresetHues: 0, 0.125, 0.185, 0.4, 0.54, 0.66, 0.79, 0.875, 0, 0.14, 0.23, 0.43, 0.54, 0.625, 0.77, 0.85
PresetSaturations: 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.4, 0.5, 0.4, 0.5, 0.4, 0.5, 0.4, 0.5 PresetSaturations: 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.9, 0.4, 0.5, 0.4, 0.5, 0.4, 0.5, 0.4, 0.5
OrderEffects: OrderEffects: