Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void drawLoginScreen(boolean flag) {
- resetImageProducers();
- aRSImageProducer_1109.initDrawingArea();
- /* Setup the variables */
- char c = '\u0168';
- char c1 = '\310';
- int j = c1 / 2 - 40;
- int i1 = c / 2 - 80;
- int l1 = c1 / 2 + 50;
- /* Draws the titlebox ( */
- if(!flag)
- titleBox.drawSprite1(0, 0, 80);
- else
- titleBox.drawSprite(0, 0);
- /* Draws the login message(s) */
- if (loginMessage1.length() > 0) {
- aTextDrawingArea_1270.method382(0xffff00, c / 2, loginMessage1, j - 15, true);
- aTextDrawingArea_1270.method382(0xffff00, c / 2, loginMessage2, j, true);
- } else {
- aTextDrawingArea_1270.method382(0xffff00, c / 2, loginMessage2, j - 7, true);
- }
- /* Draws username/password text */
- aTextDrawingArea_1270.method389(true, c / 2 - 97, 0xffffff,
- "Username: " + myUsername + ((loginScreenCursorPos == 0)
- & (loopCycle % 40 < 20) ? "@yel@|" : ""), j + 30);
- aTextDrawingArea_1270.method389(true, c / 2 - 97, 0xffffff,
- "Password: " + TextClass.passwordAsterisks(myPassword)
- + ((loginScreenCursorPos == 1) & (loopCycle % 40 < 20)
- ? "@yel@|" : ""), j + 45);
- /* Draws the titlebuttons and text */
- if(!flag) {
- i1 = c / 2 - 80;
- titleButton.drawSprite(i1 - 73, l1 - 20);
- i1 = c / 2 + 80;
- titleButton.drawSprite(i1 - 73, l1 - 20);
- }
- i1 = c / 2 - 80;
- chatTextDrawingArea.method382(0xffffff, i1, "Login", l1 + 5, true);
- i1 = c / 2 + 80;
- chatTextDrawingArea.method382(0xffffff, i1, "Clear", l1 + 5, true);
- if(flag) {
- i1 = c / 2 - 80;
- aBackground_967.method361(i1 - 73, l1 - 20, 128);
- i1 = c / 2 + 80;
- aBackground_967.method361(i1 - 73, l1 - 20, 128);
- }
- /* What the titlebox gets drawn on */
- aRSImageProducer_1109.drawGraphics(171, super.graphics, 202);
- /* If needed, draws the background again */
- if (welcomeScreenRaised) {
- welcomeScreenRaised = false;
- aRSImageProducer_1110.drawGraphics(0, super.graphics, 0);
- aRSImageProducer_1111.drawGraphics(0, super.graphics, 637);
- aRSImageProducer_1107.drawGraphics(0, super.graphics, 128);
- aRSImageProducer_1108.drawGraphics(371, super.graphics, 202);
- aRSImageProducer_1112.drawGraphics(265, super.graphics, 0);
- aRSImageProducer_1113.drawGraphics(265, super.graphics, 562);
- aRSImageProducer_1114.drawGraphics(171, super.graphics, 128);
- aRSImageProducer_1115.drawGraphics(171, super.graphics, 562);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement