Exemplo n.º 1
0
        private SaveState StateAssign(CharControl control)
        {
            SaveState state = new SaveState
            {
                CtrlType = (OCICtrlType)control.controlType, //note to self: enums should match in both CharControl and SaveState
                X        = control.CurrentX,
                Y        = control.CurrentY
            };

            return(state);
        }
Exemplo n.º 2
0
 private void GUICheck(CharControl control)
 {
     if (control.CheckEntry)
     {
         _ui.gameObject.SetActive(true);
         control.SetAccess(true);
         GUIValuesUpdate(control.CurrentX, control.CurrentY);
     }
     else
     {
         control.SetAccess(false);
         _ui.gameObject.SetActive(false);
     }
 }
Exemplo n.º 3
0
 private void OnNothingChanged(CharControl select)
 {
     GUICheck(select);
 }
Exemplo n.º 4
0
 //linked to HarmonySelect
 private void OnChange(CharControl select)
 {
     GUICheck(select);
 }