Results 1 to 7 of 7

Thread: Proggies

  1. #1
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Proggies

    Is there any way to show your progress reports on the Smart screen?

    ~DeSnob

  2. #2
    Join Date
    Sep 2006
    Location
    Canada
    Posts
    1,124
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    I wouldn't recommend it, it hogs up your RAM pretty quickly last time I tried it.

  3. #3
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Paint on the SMART canvas.
    Look at JuKKa's ess mining script
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  4. #4
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    I think there's some function called
    TextToBitmap()
    or something like that, then just draw it to smart canvas

  5. #5
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    draw it to the smart DebugCanvas for more details, just look at tut island for all drawing related functions.

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  6. #6
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    k thanks

  7. #7
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Function GetPaintBitmap(Color, sX, sY: Integer; Text: TStringArray; Dist: Integer): Integer;
    Var
       TPA: TPointArray;
       H, Q, B: Integer;
    Begin
      Result := BitmapFromString(sX, sY, '');
      For B := 0 To High(Text) Do
      Begin
        TPA := LoadTextTPA(Text[b], SmallChars, H);
        For Q := 0 To High(TPA) Do
          FastSetPixel(Result, TPA[q].x, TPA[q].y + B * Dist, Color);
      End;
    End;

    Procedure ClearSMARTCanvas;
    Var
       BMP: Integer;
       SMARTCanvas, Canvas: TCanvas;
    Begin
      BMP := BitmapFromString(765, 503, '')
      SMARTCanvas := GetBitmapCanvas(BMP);
      Canvas := GetBitmapCanvas(BMP);
      SMARTCanvas.handle := SmartGetDebugDC;
      CopyCanvas(Canvas, SMARTCanvas, 0, 0, 765, 503, -1000, -1000, 1000, 1000);
      FreeBitmap(BMP);
    End;

    Procedure ProgressReportCanvas(X, Y: Integer);
    Var
       SCanvas, Canvas: TCanvas;
       BMP, Sec: Integer;
       Text: TStringArray;
    Begin
      Sec := GetTimeRunning Div 1000 + 1;
      ClearSMARTCanvas;
      BMP := BitmapFromString(765, 503, '');
      SCanvas := GetBitmapCanvas(BMP);
      SCanvas.handle := SmartGetDebugDC;
      Text := [
           'Ran for : ' + TimeRunning,
           'Current Player : ' + (Players[CurrentPlayer].Name),
           'Mined : ' + IntToStr(Players[CurrentPlayer].Integers[1])+ ' ores',
           'Gained : ' + IntToStr(Players[CurrentPlayer].Integers[1]*Players[CurrentPlayer].Integers[3]) + ' Exp',
           Rock[CurrentPlayer][Players[CurrentPlayer].Integers[0]].Name+' Mined/h : ' + IntToStr(Round(3600*Players[CurrentPlayer].Integers[1]/Sec))];
      Canvas := GetBitmapCanvas(GetPaintBitmap(clWhite, 765, 503, Text, 25));
      CopyCanvas(Canvas, SCanvas, 0, 0, 765, 503, X, Y, X + 765, Y + 503);
      FreeBitmap(BMP);
    End;

    from my powerminer. Keep in mind I stole these from N3ss3s to which JuKKa did the same thing if I remember
    “Ignorance, the root and the stem of every evil.”

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •