<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="18">
  <Forms>
    <UDF1 Class="TCEForm" Encoding="Ascii85">o5R4s5E9@Kz#ii4;Xu*W%M$A1X2^{]npVQ;#mMH7nwg$a!u*{OIV8V.DS/USGo;Vh+?2PWIkBK5Ge3[FtenR:Co=s#1g?AH!iOsk%Ph]J%1Py9-}d_UnVXoN$@oSzHZfH_En/oS,hYf?hbao@HUI</UDF1>
  </Forms>
  <CheatEntries>
    <CheatEntry>
      <ID>0</ID>
      <Description>"CodeInjectionFoundFlag"</Description>
      <LastState Value="0" Activated="0" RealAddress="00400500"/>
      <Color>80000008</Color>
      <VariableType>4 Bytes</VariableType>
      <Address>00400500</Address>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols/>
  <LuaScript>function DrawElipse(image, color)
--this function configures an image for transparency and fills it with a circle (transparency sucks)
  image.Picture.Bitmap.Width=0 --reset the bitmap
  image.Transparent=true

  image.Picture.Bitmap.Width=image.Width
  image.Picture.Bitmap.Height=image.Height

  image.Picture.Bitmap.Transparent=false
  image.Picture.Bitmap.Canvas.Brush.Color=0xcecece
  image.Picture.Bitmap.Canvas.Pen.Color=0xcecece
  image.Picture.Bitmap.Canvas.Clear()

  image.Picture.Bitmap.Transparent=true
  image.Picture.Bitmap.TransparentColor=0xcecece
  image.Picture.Bitmap.Canvas.Brush.Color=0xcecece
  image.Picture.Bitmap.Canvas.Clear()

  image.Picture.Bitmap.Canvas.Pen.Color=color
  image.Picture.Bitmap.Canvas.Brush.Color=color
  image.Picture.Bitmap.Canvas.Ellipse(0,0,image.Width,image.Height)
end


t=createTimer(nil)
t.OnTimer=function()
  if getAddressList().getMemoryRecordByDescription("CodeInjectionFoundFlag").Value=='1' then
    DrawElipse(UDF1.CEImage1, 0x00ff00) --green
  else
    DrawElipse(UDF1.CEImage1, 0x0000ff) --red
  end
end

t.Interval=500
t.Enabled=true

UDF1.Show()
</LuaScript>
</CheatTable>
