Exemple #1
0
        internal static bool RefreshValue_Prefix(uGUI_Binding __instance)
        {
            if (__instance.gameObject.GetComponent <ModBindingTag>() is null)
            {
                return(true);
            }

            __instance.currentText.text = (__instance.active || __instance.value == null) ? "" : __instance.value;
            __instance.UpdateState();
            return(false);
        }
Exemple #2
0
            static bool Prefix(uGUI_Binding __instance)
            {
                if (!__instance.gameObject.GetComponent <KeyWModBindOption.Tag>())
                {
                    return(true);
                }

                __instance.currentText.text = (__instance.active || __instance.value == null)? "": __instance.value;
                __instance.UpdateState();
                return(false);
            }