Example #1
0
 public int p_SetImage(c_Image t_img)
 {
     bb_std_lang.pushErr();
     bb_std_lang.errInfo="C:/Users/Raudius/Desktop/Unforgotten/Client/GameGfx.monkey<30>";
     this.m_img=t_img;
     bb_std_lang.popErr();
     return 0;
 }
Example #2
0
 public c_Graphic m_Graphic_new(c_Image t_img,int t_x,int t_y)
 {
     bb_std_lang.pushErr();
     bb_std_lang.errInfo="C:/Users/Raudius/Desktop/Unforgotten/Client/GameGfx.monkey<110>";
     this.m_xPos=t_x;
     bb_std_lang.errInfo="C:/Users/Raudius/Desktop/Unforgotten/Client/GameGfx.monkey<111>";
     this.m_yPos=t_y;
     bb_std_lang.errInfo="C:/Users/Raudius/Desktop/Unforgotten/Client/GameGfx.monkey<112>";
     this.m_img=t_img;
     bb_std_lang.popErr();
     return this;
 }
Example #3
0
 public c_Image p_Init2(gxtkSurface t_surf,int t_x,int t_y,int t_iwidth,int t_iheight,int t_nframes,int t_iflags,c_Image t_src,int t_srcx,int t_srcy,int t_srcw,int t_srch)
 {
     bb_std_lang.pushErr();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<159>";
     if((m_surface)!=null){
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<159>";
         bb_std_lang.Error("Image already initialized");
     }
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<160>";
     m_surface=t_surf;
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<161>";
     m_source=t_src;
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<163>";
     m_width=t_iwidth;
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<164>";
     m_height=t_iheight;
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<166>";
     m_frames=new c_Frame[t_nframes];
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<168>";
     int t_ix=t_x;
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<168>";
     int t_iy=t_y;
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<170>";
     for(int t_i=0;t_i<t_nframes;t_i=t_i+1){
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<171>";
         if(t_ix+m_width>t_srcw){
             bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<172>";
             t_ix=0;
             bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<173>";
             t_iy+=m_height;
         }
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<175>";
         if(t_ix+m_width>t_srcw || t_iy+m_height>t_srch){
             bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<176>";
             bb_std_lang.Error("Image frame outside surface");
         }
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<178>";
         m_frames[t_i]=(new c_Frame()).m_Frame_new(t_ix+t_srcx,t_iy+t_srcy);
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<179>";
         t_ix+=m_width;
     }
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<182>";
     p_ApplyFlags(t_iflags);
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<183>";
     bb_std_lang.popErr();
     return this;
 }
Example #4
0
 public void p_SetImage(c_Image t_img)
 {
     bb_std_lang.pushErr();
     bb_std_lang.errInfo="C:/Users/Raudius/Desktop/Unforgotten/Client/GameCard.monkey<26>";
     this.m_img.p_SetImage(t_img);
     bb_std_lang.popErr();
 }
Example #5
0
 public int p_Draw4(c_Image t_fontImage,int t_linex,int t_liney)
 {
     bb_std_lang.pushErr();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/angelfont/char.monkey<31>";
     bb_graphics.g_DrawImageRect(t_fontImage,(float)(t_linex+m_xOffset),(float)(t_liney+m_yOffset),m_x,m_y,m_width,m_height,0);
     bb_std_lang.popErr();
     return 0;
 }
Example #6
0
 public static int g_SetFont(c_Image t_font,int t_firstChar)
 {
     bb_std_lang.pushErr();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<548>";
     if(!((t_font)!=null)){
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<549>";
         if(!((bb_graphics.g_context.m_defaultFont)!=null)){
             bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<550>";
             bb_graphics.g_context.m_defaultFont=bb_graphics.g_LoadImage("mojo_font.png",96,2);
         }
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<552>";
         t_font=bb_graphics.g_context.m_defaultFont;
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<553>";
         t_firstChar=32;
     }
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<555>";
     bb_graphics.g_context.m_font=t_font;
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<556>";
     bb_graphics.g_context.m_firstChar=t_firstChar;
     bb_std_lang.popErr();
     return 0;
 }
Example #7
0
 public static int g_DrawImageRect2(c_Image t_image,float t_x,float t_y,int t_srcX,int t_srcY,int t_srcWidth,int t_srcHeight,float t_rotation,float t_scaleX,float t_scaleY,int t_frame)
 {
     bb_std_lang.pushErr();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<513>";
     bb_graphics.g_DebugRenderDevice();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<514>";
     if(t_frame<0 || t_frame>=bb_std_lang.length(t_image.m_frames)){
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<514>";
         bb_std_lang.Error("Invalid image frame");
     }
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<515>";
     if(t_srcX<0 || t_srcY<0 || t_srcX+t_srcWidth>t_image.m_width || t_srcY+t_srcHeight>t_image.m_height){
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<515>";
         bb_std_lang.Error("Invalid image rectangle");
     }
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<518>";
     c_Frame t_f=t_image.m_frames[t_frame];
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<520>";
     bb_graphics.g_PushMatrix();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<522>";
     bb_graphics.g_Translate(t_x,t_y);
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<523>";
     bb_graphics.g_Rotate(t_rotation);
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<524>";
     bb_graphics.g_Scale(t_scaleX,t_scaleY);
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<525>";
     bb_graphics.g_Translate(-t_image.m_tx,-t_image.m_ty);
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<527>";
     bb_graphics.g_context.p_Validate();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<529>";
     bb_graphics.g_renderDevice.DrawSurface2(t_image.m_surface,0.0f,0.0f,t_srcX+t_f.m_x,t_srcY+t_f.m_y,t_srcWidth,t_srcHeight);
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<531>";
     bb_graphics.g_PopMatrix();
     bb_std_lang.popErr();
     return 0;
 }
Example #8
0
 public static int g_DrawImageRect(c_Image t_image,float t_x,float t_y,int t_srcX,int t_srcY,int t_srcWidth,int t_srcHeight,int t_frame)
 {
     bb_std_lang.pushErr();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<498>";
     bb_graphics.g_DebugRenderDevice();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<499>";
     if(t_frame<0 || t_frame>=bb_std_lang.length(t_image.m_frames)){
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<499>";
         bb_std_lang.Error("Invalid image frame");
     }
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<500>";
     if(t_srcX<0 || t_srcY<0 || t_srcX+t_srcWidth>t_image.m_width || t_srcY+t_srcHeight>t_image.m_height){
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<500>";
         bb_std_lang.Error("Invalid image rectangle");
     }
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<503>";
     c_Frame t_f=t_image.m_frames[t_frame];
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<505>";
     bb_graphics.g_context.p_Validate();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<507>";
     bb_graphics.g_renderDevice.DrawSurface2(t_image.m_surface,-t_image.m_tx+t_x,-t_image.m_ty+t_y,t_srcX+t_f.m_x,t_srcY+t_f.m_y,t_srcWidth,t_srcHeight);
     bb_std_lang.popErr();
     return 0;
 }
Example #9
0
 public static int g_DrawImage2(c_Image t_image,float t_x,float t_y,float t_rotation,float t_scaleX,float t_scaleY,int t_frame)
 {
     bb_std_lang.pushErr();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<470>";
     bb_graphics.g_DebugRenderDevice();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<471>";
     if(t_frame<0 || t_frame>=bb_std_lang.length(t_image.m_frames)){
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<471>";
         bb_std_lang.Error("Invalid image frame");
     }
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<474>";
     c_Frame t_f=t_image.m_frames[t_frame];
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<476>";
     bb_graphics.g_PushMatrix();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<478>";
     bb_graphics.g_Translate(t_x,t_y);
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<479>";
     bb_graphics.g_Rotate(t_rotation);
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<480>";
     bb_graphics.g_Scale(t_scaleX,t_scaleY);
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<482>";
     bb_graphics.g_Translate(-t_image.m_tx,-t_image.m_ty);
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<484>";
     bb_graphics.g_context.p_Validate();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<486>";
     if((t_image.m_flags&65536)!=0){
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<487>";
         bb_graphics.g_renderDevice.DrawSurface(t_image.m_surface,0.0f,0.0f);
     }else{
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<489>";
         bb_graphics.g_renderDevice.DrawSurface2(t_image.m_surface,0.0f,0.0f,t_f.m_x,t_f.m_y,t_image.m_width,t_image.m_height);
     }
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<492>";
     bb_graphics.g_PopMatrix();
     bb_std_lang.popErr();
     return 0;
 }
Example #10
0
 public static int g_DrawImage(c_Image t_image,float t_x,float t_y,int t_frame)
 {
     bb_std_lang.pushErr();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<452>";
     bb_graphics.g_DebugRenderDevice();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<453>";
     if(t_frame<0 || t_frame>=bb_std_lang.length(t_image.m_frames)){
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<453>";
         bb_std_lang.Error("Invalid image frame");
     }
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<456>";
     c_Frame t_f=t_image.m_frames[t_frame];
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<458>";
     bb_graphics.g_context.p_Validate();
     bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<460>";
     if((t_image.m_flags&65536)!=0){
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<461>";
         bb_graphics.g_renderDevice.DrawSurface(t_image.m_surface,t_x-t_image.m_tx,t_y-t_image.m_ty);
     }else{
         bb_std_lang.errInfo="C:/MonkeyXPro82b/modules/mojo/graphics.monkey<463>";
         bb_graphics.g_renderDevice.DrawSurface2(t_image.m_surface,t_x-t_image.m_tx,t_y-t_image.m_ty,t_f.m_x,t_f.m_y,t_image.m_width,t_image.m_height);
     }
     bb_std_lang.popErr();
     return 0;
 }