Code center > Suggestions

Very Large Fields in 2.43.1e

<< < (2/4) > >>

EricL:

--- Quote from: bacillus ---Could that cause problems with the xpos and ypos variables, seeing they are restricted to 32000?
--- End quote ---
Nope.  They don't actually give absolute position.  They give you your position in 1/32000ths of the total field width/height.

EDIT:  For fields with dimensions > 32000 that is.  I've thought about changing this so that even for small fields, they range from 0 to 32000 instead of givcing the actual position, but that would break backward compatability in the leagues I suppose...

bacillus:

--- Quote from: EricL ---They give you your position in 1/32000ths of the total field width/height.
--- End quote ---

Does it use floating-point variables, or is it just accurate to the nearest 32000 units?

abyaly:
All vars use integers. I presume it's rounded.

EricL:

--- Quote from: abyaly ---All vars use integers. I presume it's rounded.
--- End quote ---
You presume correctly.

Numsgil:
You might also consider allowing the user to directly edit a single dimension.  Like click on the X dimension and you can type in to it to change the field size.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version