Skip to content

Commit ca32ba1

Browse files
committed
Rearranged colors and added some new, greylisting B9PS incompatible parts and repainting them via Partvariants
1 parent 9a7580b commit ca32ba1

9 files changed

Lines changed: 480 additions & 79 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
0.3.0
2+
-----
3+
* Rearranged colors list, added new colors.
4+
+ Parts incompatible with B9PartSwitch are added to grey list. So far three stock parts and several parts from BDArmory and MiningExpansion are greylisted.
5+
+ Greylisted parts will still get repaint ability with stock Part Variants interface, added setting to disable this behavior (enabled by default).
6+
17
0.2.1
28
-----
39
+ Added ability to repaint parts in flight and setting to disable this behavior (enabled by default).

GameData/SimpleRepaint/Colors.cfg

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -4,123 +4,123 @@ SIMPLE_REPAINT_COLORS
44
// Please set name to NOT_USED for all unused colors
55
COLOR_1
66
{
7-
name = black_porkjet
8-
title = #LOC_SR_Color_Black
9-
color = #2D2E2D
7+
name = beige
8+
title = #LOC_SR_Color_Beige
9+
color = #A89D87
1010
}
1111
COLOR_2
1212
{
13-
name = dark_gray
14-
title = #LOC_SR_Color_DarkGray
15-
color = #4C4F47
13+
name = red
14+
title = #LOC_SR_Color_Red
15+
color = #A52A29
1616
}
1717
COLOR_3
18-
{
19-
name = light_gray
20-
title = #LOC_SR_Color_LightGray
21-
color = #787878
22-
}
23-
COLOR_4
2418
{
2519
name = orange_rockomax
2620
title = #LOC_SR_Color_Orange
2721
color = #D88342
2822
}
23+
COLOR_4
24+
{
25+
name = orange_soyuz
26+
title = #LOC_SR_Color_OrangeSoyuz
27+
color = #BD7947
28+
}
2929
COLOR_5
3030
{
31-
name = green_tantares
32-
title = #LOC_SR_Color_Green
33-
color = #737A5A
31+
name = pink
32+
title = #LOC_SR_Color_Pink
33+
color = #F699CD
3434
}
3535
COLOR_6
3636
{
37-
name = yellow
38-
title = #LOC_SR_Color_Yellow
39-
color = #E3B85F
37+
name = green_tantares
38+
title = #LOC_SR_Color_Green
39+
color = #737A5A
4040
}
4141
COLOR_7
4242
{
43-
name = red
44-
title = #LOC_SR_Color_Red
45-
color = #A52A29
43+
name = khaki
44+
title = #LOC_SR_Color_Khaki
45+
color = #78866B
4646
}
4747
COLOR_8
4848
{
49-
name = blue
50-
title = #LOC_SR_Color_Blue
51-
color = #394563
49+
name = olive_green
50+
title = #LOC_SR_Color_OliveGreen
51+
color = #555C2E
5252
}
5353
COLOR_9
5454
{
55-
name = delta_blue
56-
title = #LOC_SR_Color_DeltaBlue
57-
color = #476C76
55+
name = mint_green
56+
title = #LOC_SR_Color_MintGreen
57+
color = #5A8B7B
5858
}
5959
COLOR_10
6060
{
61-
name = USAF_blue
62-
title = #LOC_SR_Color_USAFBlue
63-
color = #1B252E
61+
name = kerbal_badass
62+
title = #LOC_SR_Color_Badass
63+
color = #BADA55
6464
}
6565
COLOR_11
6666
{
67-
name = khaki
68-
title = #LOC_SR_Color_Khaki
69-
color = #78866B
67+
name = blue
68+
title = #LOC_SR_Color_Blue
69+
color = #394563
7070
}
7171
COLOR_12
7272
{
73-
name = olive_green
74-
title = #LOC_SR_Color_OliveGreen
75-
color = #555C2E
73+
name = delta_blue
74+
title = #LOC_SR_Color_DeltaBlue
75+
color = #476C76
7676
}
7777
COLOR_13
7878
{
79-
name = FFT_yellow
80-
title = #LOC_SR_Color_FFTYellow
81-
color = #AD8A42
79+
name = USAF_blue
80+
title = #LOC_SR_Color_USAFBlue
81+
color = #1B252E
8282
}
8383
COLOR_14
8484
{
85-
name = beige
86-
title = #LOC_SR_Color_Beige
87-
color = #A89D87
85+
name = purple
86+
title = #LOC_SR_Color_Purple
87+
color = #A261B9
8888
}
8989
COLOR_15
9090
{
91-
name = orange_soyuz
92-
title = #LOC_SR_Color_OrangeSoyuz
93-
color = #BD7947
91+
name = yellow
92+
title = #LOC_SR_Color_Yellow
93+
color = #E3B85F
9494
}
9595
COLOR_16
9696
{
97-
name = brown
98-
title = #LOC_SR_Color_Brown
99-
color = #76624D
97+
name = FFT_yellow
98+
title = #LOC_SR_Color_FFTYellow
99+
color = #AD8A42
100100
}
101101
COLOR_17
102102
{
103-
name = NOT_USED
104-
title =
105-
color =
103+
name = brown
104+
title = #LOC_SR_Color_Brown
105+
color = #76624D
106106
}
107107
COLOR_18
108108
{
109-
name = NOT_USED
110-
title =
111-
color =
109+
name = light_gray
110+
title = #LOC_SR_Color_LightGray
111+
color = #787878
112112
}
113113
COLOR_19
114114
{
115-
name = NOT_USED
116-
title =
117-
color =
115+
name = dark_gray
116+
title = #LOC_SR_Color_DarkGray
117+
color = #4C4F47
118118
}
119119
COLOR_20
120120
{
121-
name = NOT_USED
122-
title =
123-
color =
121+
name = black_porkjet
122+
title = #LOC_SR_Color_Black
123+
color = #2D2E2D
124124
}
125125
COLOR_21
126126
{

GameData/SimpleRepaint/IgnoreParts.cfg

Lines changed: 57 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,54 @@
22
//@PART[IgnoredParts]:BEFORE[zzz_SimpleRepaint] { %SR_Ignore = true }
33
44
5+
//
6+
// Parts for some reasons incompatible with B9PartSwitch
7+
//
58
9+
// Radial drills (but not ReStocked ones)
10+
@PART[MiniDrill]:HAS[!MODEL:HAS[#model[ReStock*]]]:BEFORE[zzz_SimpleRepaint]
11+
{
12+
%SR_Ignore = true
13+
%SR_UsePartVariant = #$@SIMPLE_REPAINT_SETTINGS/UseStockVariantSwitcherForB9PSIncompatibleParts$
14+
}
15+
@PART[RadialDrill]:HAS[!MODEL:HAS[#model[ReStock*]]]:BEFORE[zzz_SimpleRepaint]
16+
{
17+
%SR_Ignore = true
18+
%SR_UsePartVariant = #$@SIMPLE_REPAINT_SETTINGS/UseStockVariantSwitcherForB9PSIncompatibleParts$
19+
}
20+
21+
// Large scanner robotic arm
22+
@PART[RobotArmScanner_S3]:BEFORE[zzz_SimpleRepaint]
23+
{
24+
%SR_Ignore = true
25+
%SR_UsePartVariant = #$@SIMPLE_REPAINT_SETTINGS/UseStockVariantSwitcherForB9PSIncompatibleParts$
26+
}
27+
28+
// BD Armory
29+
@PART[bahaGatlingGun,bahaTurret,bahaBrowningAnm2,bahaGau-8,bahaGoalKeeper,GoalKeeperBDAcMk1,BDAcGKmk2,bahaHEKV1,bahaHiddenVulcan,bahaM102Howitzer,bahaM1Abrams,bahaM230ChainGun,bahaOMillennium,bahaSmokeCmPod,bahaTowMissile]:BEFORE[zzz_SimpleRepaint]
30+
{
31+
%SR_Ignore = true
32+
%SR_UsePartVariant = #$@SIMPLE_REPAINT_SETTINGS/UseStockVariantSwitcherForB9PSIncompatibleParts$
33+
}
34+
35+
// Stockalike Mining Expansion
36+
@PART[SMX_InlineDrill,SMX_0mStackDrill,SMX_1mInlineDrill,SMX_1mHInlineDrill,SMX_1mInlinePump,SMX_1mStackDrill,SMX_1mStackPump,SMX_2mStackDrill,SMX_2mStackPump,SMX_3mStackDrill]:BEFORE[zzz_SimpleRepaint]
37+
{
38+
%SR_Ignore = true
39+
%SR_UsePartVariant = #$@SIMPLE_REPAINT_SETTINGS/UseStockVariantSwitcherForB9PSIncompatibleParts$
40+
}
41+
42+
// Other mods
43+
@PART[KD-ChemicalReactor,KD-Furnace]:BEFORE[zzz_SimpleRepaint]
44+
{
45+
%SR_Ignore = true
46+
%SR_UsePartVariant = #$@SIMPLE_REPAINT_SETTINGS/UseStockVariantSwitcherForB9PSIncompatibleParts$
47+
}
48+
49+
50+
//
651
// DO NOT EDIT ANY FUTHER: unsupported parts
52+
//
753
854
// Various fairings
955
@PART[*]:HAS[@MODULE[ModuleProceduralFairing]]:BEFORE[zzz_SimpleRepaint]
@@ -24,10 +70,10 @@
2470
}
2571
2672
// Various procedural parts
27-
@PART[*]:HAS[@MODULE[ModuleRestockLinkedMesh]]:BEFORE[zzz_SimpleRepaint]
28-
{
29-
%SR_Ignore = true
30-
}
73+
//@PART[*]:HAS[@MODULE[ModuleRestockLinkedMesh]]:BEFORE[zzz_SimpleRepaint]
74+
//{
75+
// %SR_Ignore = true
76+
//}
3177
@PART[*]:HAS[@MODULE[ProceduralPart]]:BEFORE[zzz_SimpleRepaint]
3278
{
3379
%SR_Ignore = true
@@ -55,12 +101,6 @@
55101
%SR_Ignore = true
56102
}
57103
58-
// Firespitter texture switcher
59-
//@PART[*]:HAS[@MODULE[FStextureSwitch*]]:BEFORE[zzz_SimpleRepaint]
60-
//{
61-
// %SR_Ignore = true
62-
//}
63-
64104
// Textures unlimited and SSTU
65105
@PART[*]:HAS[@MODULE[KSPTextureSwitch]]:BEFORE[zzz_SimpleRepaint]
66106
{
@@ -93,7 +133,7 @@
93133
%SR_Ignore = true
94134
}
95135
96-
// Deployable work lamps
136+
// Deployable work lamps and ground anchor
97137
@PART[*]:HAS[@MODULE[ModuleGroundPart]]:BEFORE[zzz_SimpleRepaint]
98138
{
99139
%SR_Ignore = true
@@ -104,3 +144,9 @@
104144
{
105145
%SR_Ignore = true
106146
}
147+
148+
// Foiled fuel tanks - no sense in repainting them
149+
@PART[externalTankToroid,externalTankRound,externalTankCapsule]:BEFORE[zzz_SimpleRepaint]
150+
{
151+
%SR_Ignore = true
152+
}

GameData/SimpleRepaint/Localization/en-us.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,9 @@ Localization
2121
#LOC_SR_Color_Beige = Beige
2222
#LOC_SR_Color_OrangeSoyuz = Orange (Soyuz)
2323
#LOC_SR_Color_Brown = Brown
24+
#LOC_SR_Color_Pink = Pink
25+
#LOC_SR_Color_Badass = Kerbal Badass Green
26+
#LOC_SR_Color_MintGreen = Mint Green
27+
#LOC_SR_Color_Purple = Purple
28+
}
2429
}

GameData/SimpleRepaint/Localization/ru.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,9 @@ Localization
2121
#LOC_SR_Color_Beige = Бежевый
2222
#LOC_SR_Color_OrangeSoyuz = Оранжевый (Союз)
2323
#LOC_SR_Color_Brown = Коричневый
24+
#LOC_SR_Color_Pink = Розовый
25+
#LOC_SR_Color_Badass = Кербальский зелёный
26+
#LOC_SR_Color_MintGreen = Мятный зелёный
27+
#LOC_SR_Color_Purple = Пурпурный
2428
}
2529
}

0 commit comments

Comments
 (0)