Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-10-14, 10:03 AM   #11
ircdirk
A Molten Giant
 
ircdirk's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2014
Posts: 823
Originally Posted by atl77 View Post
What I meant is the coords input/carbonite output that lead to whatever was shown on that screenshot.

Currently my grid is 100x100 discrete "pixel" and the boxes are calculated in that pixels. I can increase the resolution rather easily, but that will also increase the amount of things the script needs to do to calculate the boxes.
Increase it, we have to make it output cords with 2 points precision.

Input:
Code:
array (
  0 => 
  array (
    'x' => '60.80',
    'y' => '23.20',
  ),
  1 => 
  array (
    'x' => '60.80',
    'y' => '23.60',
  ),
  2 => 
  array (
    'x' => '61.20',
    'y' => '22.40',
  ),
  3 => 
  array (
    'x' => '61.60',
    'y' => '24.00',
  ),
  4 => 
  array (
    'x' => '61.80',
    'y' => '21.20',
  ),
  5 => 
  array (
    'x' => '62.00',
    'y' => '22.40',
  ),
  6 => 
  array (
    'x' => '62.20',
    'y' => '22.60',
  ),
  7 => 
  array (
    'x' => '63.40',
    'y' => '22.40',
  ),
  8 => 
  array (
    'x' => '63.40',
    'y' => '22.60',
  ),
  9 => 
  array (
    'x' => '63.60',
    'y' => '22.60',
  ),
  10 => 
  array (
    'x' => '63.80',
    'y' => '22.40',
  ),
  11 => 
  array (
    'x' => '60.60',
    'y' => '21.40',
  ),
  12 => 
  array (
    'x' => '61.00',
    'y' => '22.20',
  ),
  13 => 
  array (
    'x' => '61.00',
    'y' => '22.60',
  ),
  14 => 
  array (
    'x' => '61.60',
    'y' => '21.20',
  ),
  15 => 
  array (
    'x' => '62.40',
    'y' => '21.60',
  ),
  16 => 
  array (
    'x' => '62.60',
    'y' => '20.80',
  ),
  17 => 
  array (
    'x' => '63.20',
    'y' => '22.20',
  ),
  18 => 
  array (
    'x' => '63.20',
    'y' => '22.60',
  ),
  19 => 
  array (
    'x' => '63.60',
    'y' => '22.20',
  ),
  20 => 
  array (
    'x' => '64.20',
    'y' => '21.40',
  ),
  21 => 
  array (
    'x' => '61.40',
    'y' => '22.00',
  ),
  22 => 
  array (
    'x' => '61.60',
    'y' => '22.00',
  ),
  23 => 
  array (
    'x' => '62.40',
    'y' => '21.40',
  ),
  24 => 
  array (
    'x' => '62.60',
    'y' => '20.80',
  ),
  25 => 
  array (
    'x' => '63.40',
    'y' => '22.20',
  ),
  26 => 
  array (
    'x' => '63.60',
    'y' => '21.00',
  ),
  27 => 
  array (
    'x' => '63.60',
    'y' => '22.20',
  ),
  28 => 
  array (
    'x' => '62.00',
    'y' => '23.40',
  ),
  29 => 
  array (
    'x' => '62.00',
    'y' => '23.80',
  ),
)
Output:
Code:
array (
  0 => 
  array (
    'x' => 61,
    'y' => 18,
    'width' => 3,
    'height' => 1,
  ),
  1 => 
  array (
    'x' => 59,
    'y' => 19,
    'width' => 7,
    'height' => 1,
  ),
  2 => 
  array (
    'x' => 58,
    'y' => 20,
    'width' => 9,
    'height' => 1,
  ),
  3 => 
  array (
    'x' => 58,
    'y' => 21,
    'width' => 9,
    'height' => 1,
  ),
  4 => 
  array (
    'x' => 57,
    'y' => 22,
    'width' => 10,
    'height' => 1,
  ),
  5 => 
  array (
    'x' => 58,
    'y' => 23,
    'width' => 8,
    'height' => 1,
  ),
  6 => 
  array (
    'x' => 58,
    'y' => 24,
    'width' => 8,
    'height' => 1,
  ),
  7 => 
  array (
    'x' => 59,
    'y' => 25,
    'width' => 6,
    'height' => 1,
  ),
  8 => 
  array (
    'x' => 60,
    'y' => 26,
    'width' => 3,
    'height' => 1,
  ),
)
 
 

WoWInterface » Featured Projects » Carbonite » Carbonite Archive » WOD/Pre-patch

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off