Class: EditSkillManager
- Namespace:
Global - Assembly:
Dew.Core.dll - Inheritance / Derived: LogicBehaviour →
ManagerBase→ EditSkillManager
csharp
public class EditSkillManager : ManagerBase<EditSkillManager>, ILogicUpdateFields
| Name | Declaration | Description |
|---|---|---|
backButtonPriority | public int backButtonPriority | |
canRepeatConfirmHold | `[NonSerialized] | |
| public bool canRepeatConfirmHold` | ||
confirmHoldAudio | public DewAudioSource confirmHoldAudio | |
confirmHoldGem | `[NonSerialized] | |
| public GemLocation confirmHoldGem` | ||
confirmHoldNormalizedAmount | `[NonSerialized] | |
| public float confirmHoldNormalizedAmount` | ||
confirmHoldSkill | `[NonSerialized] | |
| public HeroSkillLocation confirmHoldSkill` | ||
didClickWhileConfirmHolding | `[NonSerialized] | |
| public bool didClickWhileConfirmHolding` | ||
dropToGroundBlocker | public RectTransform dropToGroundBlocker | |
isConfirmHoldingGem | `[NonSerialized] | |
| public bool isConfirmHoldingGem` | ||
isConfirmHoldingSkill | `[NonSerialized] | |
| public bool isConfirmHoldingSkill` | ||
onDraggingObjectChanged | public Action<Object> onDraggingObjectChanged | |
OnGemSlotClientState | public Action<GemLocation, Gem> OnGemSlotClientState | |
OnGemVisibleClientState | public Action<Gem, bool> OnGemVisibleClientState | |
onModeChanged | public Action<EditSkillManager.ModeType> onModeChanged | |
onSelectedSlotChanged | public Action onSelectedSlotChanged | |
OnSkillSlotClientState | public Action<HeroSkillLocation, SkillTrigger> OnSkillSlotClientState | |
OnSkillVisibleClientState | public Action<SkillTrigger, bool> OnSkillVisibleClientState | |
skillButtons | public GameObject skillButtons |
Properties
| Name | Declaration | Description |
|---|---|---|
currentModeSetFrameCount | public int currentModeSetFrameCount { get; } | |
currentProvider | public Actor currentProvider { get; } | |
draggingObject | public Object draggingObject { get; } | |
isConfirmHolding | public bool isConfirmHolding { get; } | |
isDragging | public bool isDragging { get; } | |
isSelectingGround | public bool isSelectingGround { get; } | |
lastCurrentProviderSetUnscaledTime | public float lastCurrentProviderSetUnscaledTime { get; } | |
lastModeSetUnscaledTime | public float lastModeSetUnscaledTime { get; } | |
mode | public EditSkillManager.ModeType mode { get; } | |
selectedGemSlot | public GemLocation? selectedGemSlot { get; set; } | |
selectedSkillSlot | public HeroSkillLocation? selectedSkillSlot { get; set; } | |
shouldEndAfterAction | public bool shouldEndAfterAction { get; } |
Methods
ClearGamepadSelection()
csharp
public void ClearGamepadSelection()DoBack()
csharp
public bool DoBack()Returns: bool
DoClickOnGemSlot(GemLocation)
csharp
public void DoClickOnGemSlot(GemLocation location)Parameters:
| Name | Type | Description |
|---|---|---|
location | GemLocation |
DoClickOnSkillButton(HeroSkillLocation)
csharp
public void DoClickOnSkillButton(HeroSkillLocation skillType)Parameters:
| Name | Type | Description |
|---|---|---|
skillType | HeroSkillLocation |
DoConfirm()
csharp
public bool DoConfirm()Returns: bool
DoDpadDown()
csharp
public bool DoDpadDown()Returns: bool
DoDpadLeft()
csharp
public bool DoDpadLeft()Returns: bool
DoDpadRight()
csharp
public bool DoDpadRight()Returns: bool
DoDpadUp()
csharp
public bool DoDpadUp()Returns: bool
EndDrag(bool)
csharp
public void EndDrag(bool isCancel)Parameters:
| Name | Type | Description |
|---|---|---|
isCancel | bool |
EndEdit()
csharp
public void EndEdit()FrameUpdate()
csharp
public override void FrameUpdate()IsSlotHighlighted(GemLocation)
csharp
public bool IsSlotHighlighted(GemLocation gemLoc)Parameters:
| Name | Type | Description |
|---|---|---|
gemLoc | GemLocation |
Returns: bool
IsSlotHighlighted(HeroSkillLocation)
csharp
public bool IsSlotHighlighted(HeroSkillLocation skillLoc)Parameters:
| Name | Type | Description |
|---|---|---|
skillLoc | HeroSkillLocation |
Returns: bool
IsSlotSelectable(GemLocation)
csharp
public bool IsSlotSelectable(GemLocation gemLoc)Parameters:
| Name | Type | Description |
|---|---|---|
gemLoc | GemLocation |
Returns: bool
IsSlotSelectable(HeroSkillLocation)
csharp
public bool IsSlotSelectable(HeroSkillLocation skillLoc)Parameters:
| Name | Type | Description |
|---|---|---|
skillLoc | HeroSkillLocation |
Returns: bool
LogicUpdate(float)
csharp
public override void LogicUpdate(float dt)Parameters:
| Name | Type | Description |
|---|---|---|
dt | float |
NotifyEndOfAction()
This will end edit if it is marked to end after action.
csharp
public void NotifyEndOfAction()SelectAnyRelevantSlot()
csharp
public void SelectAnyRelevantSlot()SelectGround()
csharp
public void SelectGround()SetClientState_MergeGemVictim(Gem)
csharp
public void SetClientState_MergeGemVictim(Gem gem)Parameters:
| Name | Type | Description |
|---|---|---|
gem | Gem |
SetClientState_SetGemSlot(GemLocation, Gem)
csharp
public void SetClientState_SetGemSlot(GemLocation loc, Gem gem)Parameters:
| Name | Type | Description |
|---|---|---|
loc | GemLocation | |
gem | Gem |
SetClientState_SetSkillSlot(HeroSkillLocation, SkillTrigger)
csharp
public void SetClientState_SetSkillSlot(HeroSkillLocation type, SkillTrigger skill)Parameters:
| Name | Type | Description |
|---|---|---|
type | HeroSkillLocation | |
skill | SkillTrigger |
ShouldUseHoldToConfirm(GemLocation)
csharp
public bool ShouldUseHoldToConfirm(GemLocation gem)Parameters:
| Name | Type | Description |
|---|---|---|
gem | GemLocation |
Returns: bool
ShouldUseHoldToConfirm(HeroSkillLocation)
csharp
public bool ShouldUseHoldToConfirm(HeroSkillLocation skill)Parameters:
| Name | Type | Description |
|---|---|---|
skill | HeroSkillLocation |
Returns: bool
StartConfirmHold(GemLocation)
csharp
public void StartConfirmHold(GemLocation gem)Parameters:
| Name | Type | Description |
|---|---|---|
gem | GemLocation |
StartConfirmHold(HeroSkillLocation)
csharp
public void StartConfirmHold(HeroSkillLocation skill)Parameters:
| Name | Type | Description |
|---|---|---|
skill | HeroSkillLocation |
StartDrag(Object)
csharp
public void StartDrag(Object obj)Parameters:
| Name | Type | Description |
|---|---|---|
obj | UnityEngine.Object |
StartEditSkillShrine(EditSkillShrine)
csharp
public void StartEditSkillShrine(EditSkillShrine provider)Parameters:
| Name | Type | Description |
|---|---|---|
provider | EditSkillShrine |
StartEquipGem(Gem)
csharp
public void StartEquipGem(Gem gem)Parameters:
| Name | Type | Description |
|---|---|---|
gem | Gem |
StartEquipSkill(SkillTrigger)
csharp
public void StartEquipSkill(SkillTrigger skill)Parameters:
| Name | Type | Description |
|---|---|---|
skill | SkillTrigger |
StartRegularEdit(bool)
csharp
public void StartRegularEdit(bool endAfterAction)Parameters:
| Name | Type | Description |
|---|---|---|
endAfterAction | bool |
StartSell(PropEnt_Merchant_Base)
csharp
public void StartSell(PropEnt_Merchant_Base merchant)Parameters:
| Name | Type | Description |
|---|---|---|
merchant | PropEnt_Merchant_Base |
StopConfirmHold(bool)
csharp
public void StopConfirmHold(bool showHelpIfNeeded = false)Parameters:
| Name | Type | Description |
|---|---|---|
showHelpIfNeeded | bool |
UnselectGround()
csharp
public void UnselectGround()