382 {
383 switch (bind)
384 {
385 case "sp1":
386 {
390 }
391 case "sp2":
392 {
396 }
397 case "sp3":
399 {
400 PlayerInput.CurrentProfile.TriggersDeadzone = f;
402 {
404 }, 1000, color);
405 case "sp4":
407 {
408 PlayerInput.CurrentProfile.InterfaceDeadzoneX = f;
410 {
412 }, 1001, color);
413 case "sp5":
415 {
416 PlayerInput.CurrentProfile.LeftThumbstickDeadzoneX = f;
418 {
420 }, 1002, color);
421 case "sp6":
423 {
424 PlayerInput.CurrentProfile.LeftThumbstickDeadzoneY = f;
426 {
428 }, 1003, color);
429 case "sp7":
431 {
432 PlayerInput.CurrentProfile.RightThumbstickDeadzoneX = f;
434 {
436 }, 1004, color);
437 case "sp8":
439 {
440 PlayerInput.CurrentProfile.RightThumbstickDeadzoneY = f;
442 {
444 }, 1005, color);
445 case "sp9":
446 {
448 uIKeybindingSimpleListItem3.OnLeftClick +=
delegate
449 {
452 };
454 }
455 case "sp10":
456 {
458 uIKeybindingSimpleListItem5.OnLeftClick +=
delegate
459 {
462 };
464 }
465 case "sp11":
466 {
468 uIKeybindingSimpleListItem2.OnLeftClick +=
delegate
469 {
472 };
474 }
475 case "sp12":
476 {
478 uIKeybindingSimpleListItem.OnLeftClick +=
delegate
479 {
482 };
484 }
485 case "sp13":
486 {
488 uIKeybindingSimpleListItem4.OnLeftClick +=
delegate
489 {
492 };
494 }
495 case "sp14":
496 {
498 uIKeybindingToggleListItem.OnLeftClick +=
delegate
499 {
501 {
503 }
504 };
506 }
507 case "sp15":
508 {
510 uIKeybindingToggleListItem3.OnLeftClick +=
delegate
511 {
513 {
515 }
516 };
518 }
519 case "sp16":
520 {
522 uIKeybindingToggleListItem2.OnLeftClick +=
delegate
523 {
525 {
527 }
528 };
530 }
531 case "sp17":
532 {
534 uIKeybindingToggleListItem6.OnLeftClick +=
delegate
535 {
537 {
539 }
540 };
542 }
543 case "sp18":
545 {
549 {
550 PlayerInput.CurrentProfile.HotbarRadialHoldTimeRequired = (int)(f * 301f);
551 if ((float)PlayerInput.CurrentProfile.HotbarRadialHoldTimeRequired == 301f)
552 {
553 PlayerInput.CurrentProfile.HotbarRadialHoldTimeRequired = -1;
554 }
556 {
557 float currentValue = ((PlayerInput.CurrentProfile.HotbarRadialHoldTimeRequired == -1) ? 1f : ((float)
PlayerInput.CurrentProfile.HotbarRadialHoldTimeRequired / 301f));
559 PlayerInput.CurrentProfile.HotbarRadialHoldTimeRequired = (int)(currentValue * 301f);
560 if ((float)PlayerInput.CurrentProfile.HotbarRadialHoldTimeRequired == 301f)
561 {
562 PlayerInput.CurrentProfile.HotbarRadialHoldTimeRequired = -1;
563 }
564 }, 1007, color);
565 case "sp19":
567 {
569 return Lang.menu[252].Value +
" (" + ((float)
inventoryMoveCD / 60f).ToString(
"F2") +
"s)";
571 {
574 {
576 {
578 }
580 {
584 {
585 UILinkPointNavigator.Shortcuts.INV_MOVE_OPTION_CD = 8;
588 }
589 }
590 }, 1008, color);
591 default:
593 }
594 }
static float Lerp(float value1, float value2, float amount)
static float Clamp(float value, float min, float max)
static decimal Round(decimal d)
static int Sign(decimal value)
void SnapButtonClick(UIMouseEvent evt, UIElement listeningElement)
static string GetCopyableProfileName()
void RadialButtonClick(UIMouseEvent evt, UIElement listeningElement)
static float HandleSliderHorizontalInput(float currentValue, float min, float max, float deadZone=0.2f, float sensitivity=0.5f)
static int INV_MOVE_OPTION_CD