For Client Coders |
Wed, 10 November 2004 15:42 |
|
|
Well I made some changes inside MyModRules and added some tags under <Components>, since Hull type compnents didn't have slot positions, so you was not been able to determine where some slot should be draw, and to avoid this I added <SlotLeft> and <SlotTop> tags, and Value for this tags represent top-left corner of slot, coordinates are the same as in math (xy coordinating system) and distance is measured in slot width and slot height, also I added <CargoTop> <CargoLeft> <CargoHeight> <CargoWidth> because Cargo can be bigger than 1x1 slot.
Also I plain to add <Info> in components this tag should contain description of item (users will see info in Technology Browser)
Report message to a moderator
|
|
|
Re: For Client Coders |
Thu, 25 November 2004 15:21 |
|
TomT64 | | Petty Officer 3rd Class | Messages: 45
Registered: August 2003 | |
|
How will you deal with slots that appear halfway between two on the left or right? i.e.
---
---| |
| |---|
---| |
---
[Updated on: Thu, 25 November 2004 15:23]
- TomT64
GStars! - A FreeStars Client (currently dead)
http://gstars.sf.net/
Report message to a moderator
|
|
|
Re: For Client Coders |
Thu, 25 November 2004 15:28 |
|
|
If you were going to do something like that ... then it makes more sense to set a hexagonal grid.
Report message to a moderator
|
|
|
Re: For Client Coders |
Sat, 27 November 2004 15:39 |
|
|
Tom, some slots have postiton with x.5 which is half of one slot, coordinates are decimal.
Report message to a moderator
|
|
|
|
|
Re: For Client Coders |
Mon, 31 October 2005 18:32 |
|
Zardoz | | Civilian | Messages: 2
Registered: October 2005 | |
|
I have a idea for colocalte the slots ( and cargo slots, but only if we used sizes that are composite of the normal component slots...
Use a matrix wich numbers. Like :
--------------------------
| 1 | 2 | 3 | 4 | 5 |
--------------------------
| 6 | 7 | 8 | 9 | 10|
--------------------------
etc...
Each number represent a position of the slot. The matrix have postions for thes lots that are in the half hegith of the other,
because the 'boxs' of the matrix are half size of a component slot, so the number will be translated to the top-left corner of the slot in the desing window (but is controlaed by the client, making very powerfull and free).
Cargo slots, hare defined by two oposite corners (The Top-Left corner and the Botton-right) and the round cargo slot ( from the star bases , etc...) are defined by the a number that is the center of the round ( the matrix position) and other that is the radius.
[Updated on: Mon, 31 October 2005 18:34] Report message to a moderator
|
|
|