Example #1
0
 private void DisplayKeyItemSkin(Boolean visibility)
 {
     if (visibility)
     {
         Int32 keyItemId = _keyItemIdList[_currentItemIndex];
         _keyItemDetailName.text            = FF9TextTool.ImportantItemName(keyItemId);
         _keyItemDetailDescription.spacingY = _defaultSkinLabelSpacingY;
         String text            = FF9TextTool.ImportantItemSkin(keyItemId);
         Single additionalWidth = 0.0f;
         _keyItemDetailDescription.text = _keyItemDetailDescription.PhrasePreOpcodeSymbol(text, ref additionalWidth);
         Loading = true;
         // ISSUE: method pointer
         _keyItemSkinTransition.TweenIn(new Byte[1], () =>
         {
             Loading = false;
             _isShowingKeyItemDesp = true;
         });
         ButtonGroupState.DisableAllGroup(false);
         ButtonGroupState.HoldActiveStateOnGroup(KeyItemGroupButton);
     }
     else
     {
         Loading = true;
         _isShowingKeyItemDesp = false;
         // ISSUE: method pointer
         _keyItemSkinTransition.TweenOut(new Byte[1], () =>
         {
             Loading = false;
             ButtonGroupState.ActiveGroup = KeyItemGroupButton;
             Singleton <PointerManager> .Instance.SetPointerBlinkAt(ButtonGroupState.ActiveButton, false);
         });
         ff9item.FF9Item_UseImportant(_keyItemIdList[_currentItemIndex]);
         DisplayKeyItem();
     }
 }