// Token: 0x0600A75F RID: 42847 RVA: 0x002EDAFC File Offset: 0x002EBCFC public void SetDialog(ConfigDataBattleDialogInfo dialogInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetDialogConfigDataBattleDialogInfo_hotfix != null) { this.m_SetDialogConfigDataBattleDialogInfo_hotfix.call(new object[] { this, dialogInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (dialogInfo == null) { return; } this.m_dialogInfo = dialogInfo; this.m_skipButton.gameObject.SetActive(true); DialogCharUIController dialogCharUIController = this.m_dialogCharUIControllers[dialogInfo.Position]; if (dialogInfo.m_charImageInfo != dialogCharUIController.GetCharImageInfo()) { dialogCharUIController.CreateGraphic(dialogInfo.m_charImageInfo); if (dialogInfo.m_charImageInfo != null) { dialogCharUIController.SetScaleOffet((float)dialogInfo.m_charImageInfo.BattleDialogScale * 0.01f, (float)dialogInfo.m_charImageInfo.BattleDialogYOffset); bool flag = (dialogInfo.Position == 0 && dialogInfo.m_charImageInfo.Direction == 0) || (dialogInfo.Position == 1 && dialogInfo.m_charImageInfo.Direction == 1); dialogCharUIController.SetDirection((!flag) ? -1 : 1); } dialogCharUIController.Enter(dialogInfo.EnterType, null); this.m_showDialogBoxTime = 0.5f; } else { this.m_showDialogBoxTime = 0.1f; } if (!string.IsNullOrEmpty(dialogInfo.PreAnimation)) { this.m_showDialogBoxTime += dialogCharUIController.GetAnimationDuration(dialogInfo.PreAnimation); } for (int i = 0; i < this.m_dialogCharUIControllers.Length; i++) { Color c = (i != dialogInfo.Position) ? new Color(0.5f, 0.5f, 0.5f, 1f) : Color.white; this.m_dialogCharUIControllers[i].TweenColor(c, 0.3f); } dialogCharUIController.SetAnimation(dialogInfo.PreAnimation, dialogInfo.PreFacialAnimation, dialogInfo.IdleAnimation, dialogInfo.IdleFacialAnimation); this.m_dialogBoxUIController.Show(false); }
public static int constructor(IntPtr l) { int result; try { ConfigDataBattleDialogInfo o = new ConfigDataBattleDialogInfo(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_WordsStrKey(IntPtr l) { int result; try { ConfigDataBattleDialogInfo configDataBattleDialogInfo = (ConfigDataBattleDialogInfo)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, configDataBattleDialogInfo.WordsStrKey); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_m_nextDialogInfo(IntPtr l) { int result; try { ConfigDataBattleDialogInfo configDataBattleDialogInfo = (ConfigDataBattleDialogInfo)LuaObject.checkSelf(l); ConfigDataBattleDialogInfo nextDialogInfo; LuaObject.checkType <ConfigDataBattleDialogInfo>(l, 2, out nextDialogInfo); configDataBattleDialogInfo.m_nextDialogInfo = nextDialogInfo; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_Words(IntPtr l) { int result; try { ConfigDataBattleDialogInfo configDataBattleDialogInfo = (ConfigDataBattleDialogInfo)LuaObject.checkSelf(l); string words; LuaObject.checkType(l, 2, out words); configDataBattleDialogInfo.Words = words; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_IdleFacialAnimation(IntPtr l) { int result; try { ConfigDataBattleDialogInfo configDataBattleDialogInfo = (ConfigDataBattleDialogInfo)LuaObject.checkSelf(l); string idleFacialAnimation; LuaObject.checkType(l, 2, out idleFacialAnimation); configDataBattleDialogInfo.IdleFacialAnimation = idleFacialAnimation; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_EnterType(IntPtr l) { int result; try { ConfigDataBattleDialogInfo configDataBattleDialogInfo = (ConfigDataBattleDialogInfo)LuaObject.checkSelf(l); int enterType; LuaObject.checkType(l, 2, out enterType); configDataBattleDialogInfo.EnterType = enterType; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_CharImage_ID(IntPtr l) { int result; try { ConfigDataBattleDialogInfo configDataBattleDialogInfo = (ConfigDataBattleDialogInfo)LuaObject.checkSelf(l); int charImage_ID; LuaObject.checkType(l, 2, out charImage_ID); configDataBattleDialogInfo.CharImage_ID = charImage_ID; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_NameStrKey(IntPtr l) { int result; try { ConfigDataBattleDialogInfo configDataBattleDialogInfo = (ConfigDataBattleDialogInfo)LuaObject.checkSelf(l); string nameStrKey; LuaObject.checkType(l, 2, out nameStrKey); configDataBattleDialogInfo.NameStrKey = nameStrKey; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }