private void renderPersona(Graphics g, int x, int y, int width, int height) { AppEngine canvas = AppEngine.getCanvas(); TextManager textManager = canvas.getTextManager(); AnimationManager2D animationManager2D = canvas.getAnimationManager2D(); SimData simData = canvas.getSimData(); int sim = 0; int persona = simData.getPersona(); int personaDescString = (int)simData.getPersonaDescString(persona); int personaNthGoalCount = simData.getPersonaNthGoalCount(); int num1 = x + (width >> 1); int num2 = num1; int num3 = y; int num4 = width >> 1; int num5 = num1 - (width >> 2); int num6 = y + 25; int x1 = num5; int y1 = num6 + 35; int x2 = x1; int y2 = y1 + 16; int x3 = x1; int y3 = y2 + 15; int x4 = num2 + 10; int x5 = num2 + (num4 >> 1); int num7 = num3 + 8; int lineHeight = textManager.getLineHeight(3); int x6 = num1; int y4 = num3 + 100 + 11; int x7 = x + 60; int num8 = x7 - 16; int num9 = y4 + 20; int num10 = 16; int num11 = x6; float scaleX = (float)width * 0.9f / animationManager2D.getAnimWidth(126); int num12 = -(num10 >> 1); animationManager2D.submitAnim(181, (float)num5, (float)num6); animationManager2D.submitAnimGrid(233, 234, 235, 236, 237, 238, 239, 240, 241, (float)num2, (float)num3, (float)num4, 100f, 1f); int num13 = num9; for (int index = 0; index < personaNthGoalCount; ++index) { bool flag = simData.isPersonaGoalsCompleted(index); animationManager2D.submitAnim(135, (float)num8, (float)num13); if (flag) { animationManager2D.submitAnim(134, (float)num8, (float)num13); } animationManager2D.submitAnim(126, (float)num11, (float)(num13 + num12), 1f, scaleX, 1f); num13 += num10; } animationManager2D.flushAnims(g); g.Begin(); string simName = canvas.getSimName(); textManager.drawString(g, simName, 6, x1, y1, 18); textManager.drawString(g, 969, 3, x2, y2, 18); textManager.drawString(g, personaDescString, 3, x3, y3, 18); int numPlayerTraits = simData.getNumPlayerTraits(); int y5 = num7; textManager.drawString(g, 967, 3, x5, y5, 17); int y6 = y5 + lineHeight; for (int index = 0; index < numPlayerTraits; ++index) { int simTrait = simData.getSimTrait(sim, index); int traitDescString = (int)simData.getTraitDescString(simTrait); textManager.drawString(g, traitDescString, 3, x4, y6, 9); y6 += lineHeight; } textManager.drawString(g, 970, 3, x6, y4, 18); int y7 = num9; for (int index = 0; index < personaNthGoalCount; ++index) { int personaNthGoalItem = simData.getPersonaNthGoalItem(index); int dreamDescString = simData.getDreamDescString(personaNthGoalItem); textManager.drawString(g, dreamDescString, 3, x7, y7, 10); y7 += num10; } g.End(); }