Advertisement
atm959

A

Dec 2nd, 2018
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.95 KB | None | 0 0
  1. void messageBox(char* text){
  2.     GX_LoadTexObj(&msgBoxTex, GX_TEXMAP0);
  3.     drawImage(0 + 64, 0 + 112, 33, 33, 0.0f, 0.0f, (float)1/5, (float)1/2);
  4.     drawImage(480 + 64, 0 + 112, 33, 33, (float)1/5, 0.0f, (float)2/5, (float)1/2);
  5.     drawImage(0 + 64, 224 + 112, 33, 33, 0.0f, (float)1/2, (float)1/5, 1.0f);
  6.     drawImage(480 + 64, 224 + 112, 33, 33, (float)1/5, (float)1/2, (float)2/5, 1.0f);
  7.  
  8.     for(int i = 0; i < 14; i++){
  9.         drawImage((32 + (i * 32)) + 64, 0 + 112, 33, 33, (float)3/5, 0.0f, (float)4/5, (float)1/2);
  10.         drawImage((32 + (i * 32)) + 64, 224 + 112, 33, 33, (float)2/5, (float)1/2, (float)3/5, 1.0f);
  11.     }
  12.     for(int i = 0; i < 6; i++){
  13.         drawImage(0 + 64, (32 + (i * 32)) + 112, 33, 33, (float)2/5, 0.0f, (float)3/5, (float)1/2);
  14.         drawImage(480 + 64, (32 + (i * 32)) + 112, 33, 33, (float)3/5, (float)1/2, (float)4/5, 1.0f);
  15.     }
  16.  
  17.     drawImage(32 + 64, 32 + 112, 449, 193, (float)4/5, 0.0f, 1.0f, (float)1/2);
  18.    
  19.     renderStringTemporary(text, 64 + 32, 112 + 32);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement