[Change] Renamed planets etc with star trek naming scheme.
@ -20,8 +20,8 @@
|
||||
</commodities>
|
||||
</general>
|
||||
<GFX>
|
||||
<space>konosphere.png</space>
|
||||
<exterior>konosphere.png</exterior>
|
||||
<space>M01.png</space>
|
||||
<exterior>oceanic.png</exterior>
|
||||
</GFX>
|
||||
</planet>
|
||||
<planet name="SaraCraft">
|
||||
@ -44,8 +44,8 @@
|
||||
</commodities>
|
||||
</general>
|
||||
<GFX>
|
||||
<space>saracraft.png</space>
|
||||
<exterior>saracraft.png</exterior>
|
||||
<space>H00.png</space>
|
||||
<exterior>desertic.png</exterior>
|
||||
</GFX>
|
||||
</planet>
|
||||
<planet name="Omega Station">
|
||||
@ -67,7 +67,7 @@
|
||||
</commodities>
|
||||
</general>
|
||||
<GFX>
|
||||
<space>station00.png</space>
|
||||
<space>000.png</space>
|
||||
<exterior>station00.png</exterior>
|
||||
</GFX>
|
||||
</planet>
|
||||
@ -82,7 +82,7 @@
|
||||
<services>0</services>
|
||||
</general>
|
||||
<GFX>
|
||||
<space>station01.png</space>
|
||||
<space>001.png</space>
|
||||
<exterior>station01.png</exterior>
|
||||
</GFX>
|
||||
</planet>
|
||||
@ -106,7 +106,7 @@
|
||||
</commodities>
|
||||
</general>
|
||||
<GFX>
|
||||
<space>station02.png</space>
|
||||
<space>002.png</space>
|
||||
<exterior>station02.png</exterior>
|
||||
</GFX>
|
||||
</planet>
|
||||
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 349 B |
BIN
gfx/outfit/store/afterburner.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
gfx/outfit/store/afterburner2.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
gfx/outfit/store/cannon.png
Normal file
After Width: | Height: | Size: 6.9 KiB |
BIN
gfx/outfit/store/capacitator.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
gfx/outfit/store/laser.png
Normal file
After Width: | Height: | Size: 6.9 KiB |
BIN
gfx/outfit/store/laser_turret.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
gfx/outfit/store/missile.png
Normal file
After Width: | Height: | Size: 8.8 KiB |
BIN
gfx/outfit/store/neutron.png
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
gfx/outfit/store/reroute.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
gfx/outfit/store/shield.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
gfx/outfit/store/solar.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
gfx/outfit/store/stabilizer.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
gfx/outfit/store/thruster.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
gfx/outfit/store/turret.png
Normal file
After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 275 KiB After Width: | Height: | Size: 275 KiB |
Before Width: | Height: | Size: 208 KiB After Width: | Height: | Size: 208 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
BIN
gfx/planet/space/H00.png
Normal file
After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 20 KiB |
BIN
gfx/planet/space/M00.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
gfx/planet/space/M01.png
Normal file
After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 15 KiB |
11
src/outfit.c
@ -198,8 +198,8 @@ static void outfit_parseSWeapon(Outfit* tmp, const xmlNodePtr parent) {
|
||||
else if(xml_isNode(node, "accuracy")) tmp->u.blt.accuracy = xml_getFloat(node);
|
||||
else if(xml_isNode(node, "energy")) tmp->u.blt.energy = xml_getFloat(node);
|
||||
else if(xml_isNode(node, "gfx")) {
|
||||
snprintf(str, strlen(xml_get(node))+sizeof(OUTFIT_GFX)+4,
|
||||
OUTFIT_GFX"%s.png", xml_get(node));
|
||||
snprintf(str, strlen(xml_get(node))+sizeof(OUTFIT_GFX)+10,
|
||||
OUTFIT_GFX"space/%s.png", xml_get(node));
|
||||
tmp->u.blt.gfx_space = gl_newSprite(str, 6, 6);
|
||||
}
|
||||
else if(xml_isNode(node, "spfx"))
|
||||
@ -264,8 +264,8 @@ static void outfit_parseSAmmo(Outfit* tmp, const xmlNodePtr parent) {
|
||||
else if(xml_isNode(node, "lockon"))
|
||||
tmp->u.amm.lockon = (unsigned int)1000.*xml_getFloat(node);
|
||||
else if(xml_isNode(node, "gfx")) {
|
||||
snprintf(str, strlen(xml_get(node))+sizeof(OUTFIT_GFX)+4,
|
||||
OUTFIT_GFX"%s.png", xml_get(node));
|
||||
snprintf(str, strlen(xml_get(node))+sizeof(OUTFIT_GFX)+10,
|
||||
OUTFIT_GFX"space/%s.png", xml_get(node));
|
||||
tmp->u.amm.gfx_space = gl_newSprite(str, 6, 6);
|
||||
}
|
||||
else if(xml_isNode(node, "spfx"))
|
||||
@ -343,7 +343,8 @@ static Outfit* outfit_parse(const xmlNodePtr parent) {
|
||||
else if(xml_isNode(cur, "tech")) tmp->tech = xml_getInt(cur);
|
||||
else if(xml_isNode(cur, "mass")) tmp->mass = xml_getInt(cur);
|
||||
else if(xml_isNode(cur, "price")) tmp->price = xml_getInt(cur);
|
||||
else if(xml_isNode(cur, "description")) tmp->description = strdup(xml_get(cur));
|
||||
else if(xml_isNode(cur, "description"))
|
||||
tmp->description = strdup(xml_get(cur));
|
||||
} while((cur = cur->next));
|
||||
}
|
||||
else if(xml_isNode(node, "specific")) {
|
||||
|
@ -39,7 +39,7 @@ typedef struct Outfit_ {
|
||||
unsigned int price;
|
||||
char* description;
|
||||
|
||||
glTexture gfx_store; // Store graphic.
|
||||
glTexture* gfx_store; // Store graphic.
|
||||
|
||||
int properties; // Properties stored bitwise.
|
||||
|
||||
|