Author Topic: Testing the SMF forum  (Read 6816 times)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Testing the SMF forum
« on: April 10, 2012, 01:29:00 PM »
Just testing as an alternative...

  1.         static public Vector3 ApplyHalfPixelOffset (Vector3 pos, Vector3 scale)
  2.         {
  3.                 RuntimePlatform platform = Application.platform;
  4.  
  5.                 if (platform == RuntimePlatform.WindowsPlayer ||
  6.                         platform == RuntimePlatform.WindowsWebPlayer ||
  7.                         platform == RuntimePlatform.WindowsEditor)
  8.                 {
  9.                         if (Mathf.RoundToInt(scale.x) == (Mathf.RoundToInt(scale.x * 0.5f) * 2)) pos.x = pos.x - 0.5f;
  10.                         if (Mathf.RoundToInt(scale.y) == (Mathf.RoundToInt(scale.y * 0.5f) * 2)) pos.y = pos.y + 0.5f;
  11.                 }
  12.                 return pos;
  13.         }
« Last Edit: April 11, 2012, 02:40:13 AM by ArenMook »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Testing the SMF forum
« Reply #1 on: April 10, 2012, 01:30:48 PM »
Just testing as an alternative... Please continue using the old forum for now.

  1.         static public Vector3 ApplyHalfPixelOffset (Vector3 pos, Vector3 scale)
  2.         {
  3.                 RuntimePlatform platform = Application.platform;
  4.  
  5.                 if (platform == RuntimePlatform.WindowsPlayer ||
  6.                         platform == RuntimePlatform.WindowsWebPlayer ||
  7.                         platform == RuntimePlatform.WindowsEditor)
  8.                 {
  9.                         if (Mathf.RoundToInt(scale.x) == (Mathf.RoundToInt(scale.x * 0.5f) * 2)) pos.x = pos.x - 0.5f;
  10.                         if (Mathf.RoundToInt(scale.y) == (Mathf.RoundToInt(scale.y * 0.5f) * 2)) pos.y = pos.y + 0.5f;
  11.                 }
  12.                 return pos;
  13.         }
Testing 123

joreldraw

  • Guest
Re: Testing the SMF forum
« Reply #2 on: April 11, 2012, 01:16:19 AM »
For me is better this forum with better search sytem. clean template and more easy options how quote, code ,and attachments.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Testing the SMF forum
« Reply #3 on: April 11, 2012, 06:20:10 AM »
Code highlighting would be super nice though, like in the old one.