Upload from upload_mods.ps1
This commit is contained in:
25
KFAttached/KFUtilAttached/WeaponLabelControllerDevotion.cs
Normal file
25
KFAttached/KFUtilAttached/WeaponLabelControllerDevotion.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using UnityEngine;
|
||||
|
||||
[AddComponentMenu("KFAttachments/Weapon Display Controllers/Weapon Label Controller Devotion")]
|
||||
public class WeaponLabelControllerDevotion : WeaponLabelControllerBase
|
||||
{
|
||||
[SerializeField]
|
||||
private ApexWeaponHudControllerBase[] controllers;
|
||||
public override bool setLabelColor(int index, Color color)
|
||||
{
|
||||
if (controllers == null || index >= controllers.Length || !controllers[index] || !controllers[index].gameObject.activeSelf)
|
||||
return false;
|
||||
|
||||
controllers[index].SetColor(color);
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool setLabelText(int index, string data)
|
||||
{
|
||||
if (controllers == null || index >= controllers.Length || !controllers[index] || !controllers[index].gameObject.activeSelf)
|
||||
return false;
|
||||
|
||||
controllers[index].SetText(data);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user