Skip to content

Commit

Permalink
Replace objective pickup graphics (#173)
Browse files Browse the repository at this point in the history
Fix non-resizable editor window
Adjust objective rendering in editor UI
Add missing license for mine_pickup.png
  • Loading branch information
cxong committed Jan 6, 2015
1 parent cfd019c commit ff60a9a
Show file tree
Hide file tree
Showing 26 changed files with 51 additions and 2 deletions.
Binary file added graphics/bag.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions graphics/bag.txt
@@ -0,0 +1,5 @@
Derived from Various inventory 24 pixel icon set
by OceansDream (http://oceansdream.deviantart.com/art/Pixel-Icons-available-for-use-121152370)
http://opengameart.org/content/various-inventory-24-pixel-icon-set
http://creativecommons.org/licenses/by/3.0/
http://creativecommons.org/licenses/by-sa/3.0/
Binary file added graphics/blueprint.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions graphics/blueprint.txt
@@ -0,0 +1,4 @@
Derived from 141 Military Icons Set
by AngryMeteor.com
http://opengameart.org/content/141-military-icons-set
http://creativecommons.org/licenses/by/3.0/
Binary file added graphics/bottle.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions graphics/bottle.txt
@@ -0,0 +1,4 @@
Derived from RPG item set
by Jetrel
http://opengameart.org/content/rpg-item-set
http://creativecommons.org/publicdomain/zero/1.0/
Binary file added graphics/cd.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions graphics/cd.txt
@@ -0,0 +1,4 @@
Derived from Tango Desktop Icons
by Tango Desktop Project (http://tango.freedesktop.org/)
http://opengameart.org/content/tango-desktop-icons
http://creativecommons.org/publicdomain/zero/1.0/
Binary file added graphics/circuit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions graphics/circuit.txt
@@ -0,0 +1,4 @@
Adapted from 141 Military Icons Set by AngryMeteor.com
http://opengameart.org/content/141-military-icons-set

http://creativecommons.org/licenses/by/3.0/
Binary file added graphics/disk1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions graphics/disk1.txt
@@ -0,0 +1,4 @@
Derived from Tango Desktop Icons
by Tango Desktop Project (http://tango.freedesktop.org/)
http://opengameart.org/content/tango-desktop-icons
http://creativecommons.org/publicdomain/zero/1.0/
Binary file added graphics/disk2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions graphics/disk2.txt
@@ -0,0 +1,4 @@
Derived from Tango Desktop Icons
by Tango Desktop Project (http://tango.freedesktop.org/)
http://opengameart.org/content/tango-desktop-icons
http://creativecommons.org/publicdomain/zero/1.0/
Binary file added graphics/disk3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions graphics/disk3.txt
@@ -0,0 +1,4 @@
Derived from Tango Desktop Icons
by Tango Desktop Project (http://tango.freedesktop.org/)
http://opengameart.org/content/tango-desktop-icons
http://creativecommons.org/publicdomain/zero/1.0/
Binary file added graphics/folder.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions graphics/folder.txt
@@ -0,0 +1,4 @@
Derived from Tango Desktop Icons
by Tango Desktop Project (http://tango.freedesktop.org/)
http://opengameart.org/content/tango-desktop-icons
http://creativecommons.org/publicdomain/zero/1.0/
Binary file added graphics/holo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions graphics/holo.txt
@@ -0,0 +1,4 @@
Derived from Tango Desktop Icons
by Tango Desktop Project (http://tango.freedesktop.org/)
http://opengameart.org/content/tango-desktop-icons
http://creativecommons.org/publicdomain/zero/1.0/
4 changes: 4 additions & 0 deletions graphics/mine_pickup.txt
@@ -0,0 +1,4 @@
Adapted from 141 Military Icons Set by AngryMeteor.com
http://opengameart.org/content/141-military-icons-set

http://creativecommons.org/licenses/by/3.0/
Binary file added graphics/paper.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/radio.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions graphics/radio.txt
@@ -0,0 +1,4 @@
Adapted from 141 Military Icons Set by AngryMeteor.com
http://opengameart.org/content/141-military-icons-set

http://creativecommons.org/licenses/by/3.0/
2 changes: 1 addition & 1 deletion src/cdogsed.c
Expand Up @@ -1217,7 +1217,6 @@ int main(int argc, char *argv[])
EditorBrushInit(&brush);

gConfig = ConfigLoad(GetConfigFilePath(CONFIG_FILE));
gGraphicsDevice.cachedConfig.IsEditor = true;
if (!PicManagerTryInit(
&gPicManager, "graphics/cdogs.px", "graphics/cdogs2.px"))
{
Expand All @@ -1231,6 +1230,7 @@ int main(int argc, char *argv[])
ConfigGet(&gConfig, "Graphics.ScaleFactor")->u.Int.Value = 2;
ConfigGet(&gConfig, "Graphics.ResolutionWidth")->u.Int.Value = 400;
ConfigGet(&gConfig, "Graphics.ResolutionHeight")->u.Int.Value = 300;
gGraphicsDevice.cachedConfig.IsEditor = true;
GraphicsInitialize(&gGraphicsDevice, gPicManager.palette, 0);
if (!gGraphicsDevice.IsInitialized)
{
Expand Down
2 changes: 1 addition & 1 deletion src/cdogsed/editor_ui.c
Expand Up @@ -800,7 +800,7 @@ static void MissionDrawObjective(
}
else if (newPic != NULL)
{
Blit(g, newPic, Vec2iAdd(drawPos, newPic->offset));
Blit(g, newPic, Vec2iMinus(drawPos, Vec2iScaleDiv(newPic->size, 2)));
}
}
static MissionObjective *GetMissionObjective(const Mission *m, const int idx)
Expand Down

0 comments on commit ff60a9a

Please sign in to comment.