Skip to content

Commit

Permalink
Add new 5char digital indicators
Browse files Browse the repository at this point in the history
Basic KSP resources
  • Loading branch information
MOARdV committed Jan 8, 2019
1 parent e277ecb commit fa0551d
Show file tree
Hide file tree
Showing 5 changed files with 534 additions and 19 deletions.
@@ -1,4 +1,4 @@
PROP
PROP
{
name = MAS_DigitalIndicator_5char_ElectricCharge

Expand All @@ -14,32 +14,30 @@ PROP
{
name = MASComponent

//--- Power off behavior
TRANSLATION
{
name = DigitalIndicatorScreenObj
transform = DigitalIndicatorScreenObj
startTranslation = 0,0.0,0
endTranslation = 0,-0.004,0
startTranslation = 0, 0, 0
endTranslation = 0, -0.004, 0
variable = 1 - fc.Conditioned(1)
}

TRANSLATION
{
name = DigitalIndicatorScreenOFFObj
transform = DigitalIndicatorScreenOFFObj
startTranslation = 0,0.0,0
endTranslation = 0,-0.004,0
startTranslation = 0, 0, 0
endTranslation = 0, -0.004, 0
variable = fc.Conditioned(1)
}

//--- Caption
TEXT_LABEL
{
name = DisplayNameTextObj
transform = DisplayNameTextObj
fontSize = 6
oneshot = true
lineSpacing = 0.9
lineSpacing = 0.9
font = Liberation Sans
style = Bold
alignment = Center
Expand All @@ -52,7 +50,6 @@ PROP
text = ELEC. CHARGE
}

//--- Data display
TEXT_LABEL
{
name = DigitIndicatorTextObj
Expand All @@ -66,39 +63,35 @@ PROP
emissive = active
variable = fc.Conditioned(1)
activeColor = COLOR_ASET_NUMINPUT_DISPLAY_POSITIVECOLOR
passiveColor = 0,0,0,255
//passiveColor = COLOR_ASET_NUMINPUT_DISPLAY_DIFFUSE_PASSIVECOLOR
text = <=0,5:0=> $&$ fc.Min(fc.ResourceStageCurrent("ElectricCharge"), 99999)
passiveColor = 0, 0, 0, 255
text = <=0,5:0=> $#$ fc.Min(fc.ResourceCurrent("ElectricCharge"), 99999)
}

//--- Ghost digit glow
TEXT_LABEL
{
name = DigitIndicatorText2Obj
transform = DigitIndicatorText2Obj
fontSize = 20
oneshot = true
lineSpacing = 0.9
lineSpacing = 0.9
font = Digital-7 Mono
style = Italic
alignment = Right
anchor = UpperRight
emissive = active
variable = fc.Conditioned(1)
activeColor = COLOR_ASET_NUMINPUT_DISPLAY_GHOSTCOLOR
//passiveColor = COLOR_ASET_NUMINPUT_DISPLAY_DIFFUSE_PASSIVECOLOR
passiveColor = 0,0,0,255
passiveColor = 0, 0, 0, 255
text = 88888
}

//--- Color shifts
COLOR_SHIFT
{
name = DigitalIndicatorScreenOFFObj
transform = DigitalIndicatorScreenOFFObj
passiveColor = COLOR_ASET_NUMINPUT_DISPLAY_DIFFUSE_PASSIVECOLOR
colorName = _Color
}

COLOR_SHIFT
{
name = DigitalIndicatorScreenOFFObj
Expand All @@ -114,12 +107,14 @@ PROP
passiveColor = COLOR_ASET_NUMINPUT_DISPLAY_DIFFUSE_PASSIVECOLOR
colorName = _Color
}

COLOR_SHIFT
{
name = DigitalIndicatorScreenObj
transform = DigitalIndicatorScreenObj
passiveColor = COLOR_ASET_NUMINPUT_DISPLAY_EMISSIVE_PASSIVECOLOR
colorName = _EmissiveColor
}

}
}
@@ -0,0 +1,120 @@
PROP
{
name = MAS_DigitalIndicator_5char_LiquidFuel

MODEL
{
model = ASET/ASET_Props/Instruments/DigitalIndicator_EmissiveScreen/DigitalIndicator_EmisiiveScreen_5char
texture = DigitalIndicator_Diffuse,ASET/ASET_Props/Instruments/DigitalIndicator_EmissiveScreen/DigitalIndicator_Diffuse
texture = SmallLablePlateDiffuse,ASET/ASET_Props/Instruments/DigitalIndicator_EmissiveScreen/SmallLablePlateDiffuse
texture = SmallLablePlateEmissive,ASET/ASET_Props/Instruments/DigitalIndicator_EmissiveScreen/SmallLablePlateEmissive
}

MODULE
{
name = MASComponent

TRANSLATION
{
name = DigitalIndicatorScreenObj
transform = DigitalIndicatorScreenObj
startTranslation = 0, 0, 0
endTranslation = 0, -0.004, 0
variable = 1 - fc.Conditioned(1)
}

TRANSLATION
{
name = DigitalIndicatorScreenOFFObj
transform = DigitalIndicatorScreenOFFObj
startTranslation = 0, 0, 0
endTranslation = 0, -0.004, 0
variable = fc.Conditioned(1)
}

TEXT_LABEL
{
name = DisplayNameTextObj
transform = DisplayNameTextObj
fontSize = 6
lineSpacing = 0.9
font = Liberation Sans
style = Bold
alignment = Center
anchor = LowerCenter
emissive = active
variable = fc.Conditioned(fc.GetPersistentAsNumber("Backlight"))
blend = true
activeColor = COLOR_ASET_SWITCHER_NAME_POSITIVECOLOR
passiveColor = COLOR_ASET_SWITCHER_NAME_ZEROCOLOR
text = LQD. FUEL
}

TEXT_LABEL
{
name = DigitIndicatorTextObj
transform = DigitIndicatorTextObj
fontSize = 20
lineSpacing = 0.9
font = Digital-7 Mono
style = Italic
alignment = Right
anchor = UpperRight
emissive = active
variable = fc.Conditioned(1)
activeColor = COLOR_ASET_NUMINPUT_DISPLAY_POSITIVECOLOR
passiveColor = 0, 0, 0, 255
text = <=0,5:0=> $#$ fc.Min(fc.ResourceCurrent("LiquidFuel"), 99999)
}

TEXT_LABEL
{
name = DigitIndicatorText2Obj
transform = DigitIndicatorText2Obj
fontSize = 20
lineSpacing = 0.9
font = Digital-7 Mono
style = Italic
alignment = Right
anchor = UpperRight
emissive = active
variable = fc.Conditioned(1)
activeColor = COLOR_ASET_NUMINPUT_DISPLAY_GHOSTCOLOR
passiveColor = 0, 0, 0, 255
text = 88888
}

COLOR_SHIFT
{
name = DigitalIndicatorScreenOFFObj
transform = DigitalIndicatorScreenOFFObj
passiveColor = COLOR_ASET_NUMINPUT_DISPLAY_DIFFUSE_PASSIVECOLOR
colorName = _Color
}

COLOR_SHIFT
{
name = DigitalIndicatorScreenOFFObj
transform = DigitalIndicatorScreenOFFObj
passiveColor = 0,0,0,0
colorName = _EmissiveColor
}

COLOR_SHIFT
{
name = DigitalIndicatorScreenObj
transform = DigitalIndicatorScreenObj
passiveColor = COLOR_ASET_NUMINPUT_DISPLAY_DIFFUSE_PASSIVECOLOR
colorName = _Color
}

COLOR_SHIFT
{
name = DigitalIndicatorScreenObj
transform = DigitalIndicatorScreenObj
passiveColor = COLOR_ASET_NUMINPUT_DISPLAY_EMISSIVE_PASSIVECOLOR
colorName = _EmissiveColor
}

}
}
@@ -0,0 +1,120 @@
PROP
{
name = MAS_DigitalIndicator_5char_Monopropellant

MODEL
{
model = ASET/ASET_Props/Instruments/DigitalIndicator_EmissiveScreen/DigitalIndicator_EmisiiveScreen_5char
texture = DigitalIndicator_Diffuse,ASET/ASET_Props/Instruments/DigitalIndicator_EmissiveScreen/DigitalIndicator_Diffuse
texture = SmallLablePlateDiffuse,ASET/ASET_Props/Instruments/DigitalIndicator_EmissiveScreen/SmallLablePlateDiffuse
texture = SmallLablePlateEmissive,ASET/ASET_Props/Instruments/DigitalIndicator_EmissiveScreen/SmallLablePlateEmissive
}

MODULE
{
name = MASComponent

TRANSLATION
{
name = DigitalIndicatorScreenObj
transform = DigitalIndicatorScreenObj
startTranslation = 0, 0, 0
endTranslation = 0, -0.004, 0
variable = 1 - fc.Conditioned(1)
}

TRANSLATION
{
name = DigitalIndicatorScreenOFFObj
transform = DigitalIndicatorScreenOFFObj
startTranslation = 0, 0, 0
endTranslation = 0, -0.004, 0
variable = fc.Conditioned(1)
}

TEXT_LABEL
{
name = DisplayNameTextObj
transform = DisplayNameTextObj
fontSize = 6
lineSpacing = 0.9
font = Liberation Sans
style = Bold
alignment = Center
anchor = LowerCenter
emissive = active
variable = fc.Conditioned(fc.GetPersistentAsNumber("Backlight"))
blend = true
activeColor = COLOR_ASET_SWITCHER_NAME_POSITIVECOLOR
passiveColor = COLOR_ASET_SWITCHER_NAME_ZEROCOLOR
text = MONOPROP.
}

TEXT_LABEL
{
name = DigitIndicatorTextObj
transform = DigitIndicatorTextObj
fontSize = 20
lineSpacing = 0.9
font = Digital-7 Mono
style = Italic
alignment = Right
anchor = UpperRight
emissive = active
variable = fc.Conditioned(1)
activeColor = COLOR_ASET_NUMINPUT_DISPLAY_POSITIVECOLOR
passiveColor = 0, 0, 0, 255
text = <=0,5:0=> $#$ fc.Min(fc.ResourceCurrent("MonoPropellant"), 99999)
}

TEXT_LABEL
{
name = DigitIndicatorText2Obj
transform = DigitIndicatorText2Obj
fontSize = 20
lineSpacing = 0.9
font = Digital-7 Mono
style = Italic
alignment = Right
anchor = UpperRight
emissive = active
variable = fc.Conditioned(1)
activeColor = COLOR_ASET_NUMINPUT_DISPLAY_GHOSTCOLOR
passiveColor = 0, 0, 0, 255
text = 88888
}

COLOR_SHIFT
{
name = DigitalIndicatorScreenOFFObj
transform = DigitalIndicatorScreenOFFObj
passiveColor = COLOR_ASET_NUMINPUT_DISPLAY_DIFFUSE_PASSIVECOLOR
colorName = _Color
}

COLOR_SHIFT
{
name = DigitalIndicatorScreenOFFObj
transform = DigitalIndicatorScreenOFFObj
passiveColor = 0,0,0,0
colorName = _EmissiveColor
}

COLOR_SHIFT
{
name = DigitalIndicatorScreenObj
transform = DigitalIndicatorScreenObj
passiveColor = COLOR_ASET_NUMINPUT_DISPLAY_DIFFUSE_PASSIVECOLOR
colorName = _Color
}

COLOR_SHIFT
{
name = DigitalIndicatorScreenObj
transform = DigitalIndicatorScreenObj
passiveColor = COLOR_ASET_NUMINPUT_DISPLAY_EMISSIVE_PASSIVECOLOR
colorName = _EmissiveColor
}

}
}

0 comments on commit fa0551d

Please sign in to comment.