// Token: 0x060149EB RID: 84459 RVA: 0x0053A79C File Offset: 0x0053899C public void SetDialog(ConfigDataUserGuideDialogInfo dialogInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetDialogConfigDataUserGuideDialogInfo_hotfix != null) { this.m_SetDialogConfigDataUserGuideDialogInfo_hotfix.call(new object[] { this, dialogInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (dialogInfo == null) { return; } this.m_dialogInfo = dialogInfo; 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 get_WordsKey(IntPtr l) { int result; try { ConfigDataUserGuideDialogInfo configDataUserGuideDialogInfo = (ConfigDataUserGuideDialogInfo)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, configDataUserGuideDialogInfo.WordsKey); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { ConfigDataUserGuideDialogInfo o = new ConfigDataUserGuideDialogInfo(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_m_nextDialogInfo(IntPtr l) { int result; try { ConfigDataUserGuideDialogInfo configDataUserGuideDialogInfo = (ConfigDataUserGuideDialogInfo)LuaObject.checkSelf(l); ConfigDataUserGuideDialogInfo nextDialogInfo; LuaObject.checkType <ConfigDataUserGuideDialogInfo>(l, 2, out nextDialogInfo); configDataUserGuideDialogInfo.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 { ConfigDataUserGuideDialogInfo configDataUserGuideDialogInfo = (ConfigDataUserGuideDialogInfo)LuaObject.checkSelf(l); string words; LuaObject.checkType(l, 2, out words); configDataUserGuideDialogInfo.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 { ConfigDataUserGuideDialogInfo configDataUserGuideDialogInfo = (ConfigDataUserGuideDialogInfo)LuaObject.checkSelf(l); string idleFacialAnimation; LuaObject.checkType(l, 2, out idleFacialAnimation); configDataUserGuideDialogInfo.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 { ConfigDataUserGuideDialogInfo configDataUserGuideDialogInfo = (ConfigDataUserGuideDialogInfo)LuaObject.checkSelf(l); int enterType; LuaObject.checkType(l, 2, out enterType); configDataUserGuideDialogInfo.EnterType = enterType; 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 { ConfigDataUserGuideDialogInfo configDataUserGuideDialogInfo = (ConfigDataUserGuideDialogInfo)LuaObject.checkSelf(l); string nameStrKey; LuaObject.checkType(l, 2, out nameStrKey); configDataUserGuideDialogInfo.NameStrKey = nameStrKey; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }