@Override public void onFrameRemove(final FrameHandler frameHandler, final boolean isAboutToBeRemoved) { if (!isAboutToBeRemoved) { WakfuGameEntity.getInstance().removeFrame(UICharacterCreationFrame.getInstance()); this.m_characterId = -1L; this.m_characterName = null; this.m_creationType = CreationType.DEFAULT; this.m_model = null; } }
@Override public void onFrameAdd(final FrameHandler frameHandler, final boolean isAboutToBeAdded) { if (!isAboutToBeAdded) { UICharacterCreationFrame.getInstance().setCharacterId(this.m_characterId); UICharacterCreationFrame.getInstance().setCharacterName(this.m_characterName); UICharacterCreationFrame.getInstance().setCreationType(this.m_creationType); UICharacterCreationFrame.getInstance().setRecustomType(this.m_recustomType); UICharacterCreationFrame.getInstance().setSource(this.m_source); UICharacterCreationFrame.getInstance().setModel(this.m_model); WakfuGameEntity.getInstance().pushFrame(UICharacterCreationFrame.getInstance()); } }