[RenderNotices] 1.04e with limit FPS - Source Mu - Mu Server Files
 

Noticias:

SMF - Just Installed!

Menú principal

[RenderNotices] 1.04e with limit FPS

Publicado por Dakosmu, Abr 18, 2026, 05:21 PM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

Dakosmu

[RenderNotices] 1.04e with limit FPS


typedef struct
{
   char      Text[256];
   int       LifeTime;
   BYTE      Color;
} NOTICE;


extern HFONT FontTextTime;
void RenderNotices()
{
   DWORD NoticeInverse = 0x81C0418;

   if (IsVisible(pWindowThis(), 65) == 1) return;
   static DWORD RenderNotices_time = GetTickCount() - 34;
   for (int i = 0; i < 6; i++)
   {
      //NOTICE *n = (NOTICE*)(0x813DDD0);
      if (*(BYTE*)(0x813DDD0 + 264 * i + 260) == 0)//if (n->Color == 0)
      {
         pSetBkColor(pTextThis(), 0, 0, 0, 128);
         static BYTE nhapnhay = false;
         if (GetTickCount() - RenderNotices_time >= 333)
         {
            nhapnhay = !nhapnhay;
            RenderNotices_time = GetTickCount();
         }

         if (nhapnhay) pSetTextColor(pTextThis(), 255, 200, 80, 128);
         else pSetTextColor(pTextThis(), 255, 200, 80, 255);
      }
      else
      {
         if (pFontBold)//FontTextTime)
         {
            pSetTextColor(pTextThis(), 100, 255, 200, 255);
            pSetBkColor(pTextThis(), 0, 0, 0, 128);
         }
      }

      if (pFontBold)//FontTextTime)
      {
         pSetFont(pTextThis(), pFontBold);
         char txt_150[150]; sprintf(txt_150, (char*)(0x813DDD0 + 264 * i));
         pDrawText(pTextThis(), 320, 300 + i * 13, txt_150, 0/*chiều dài*/, 0, (LPINT)8, 0);
      }
   }

   *(int*)NoticeInverse += 1;
}



creditos BDCAM
Bon Dia

🡱 🡳
Real Time Web Analytics