Skip to content

Commit

Permalink
Fixed DnD object index, created extension
Browse files Browse the repository at this point in the history
  • Loading branch information
kraifpatrik committed Feb 3, 2019
1 parent b0f5f18 commit 1997f22
Show file tree
Hide file tree
Showing 14 changed files with 689 additions and 644 deletions.
Binary file added PushEd.gmez
Binary file not shown.
17 changes: 1 addition & 16 deletions PushEd.gmx/Configs/Default.config.gmx
Original file line number Diff line number Diff line change
Expand Up @@ -677,20 +677,5 @@
<option_xbone_texture_page>1024</option_xbone_texture_page>
<option_xbone_title_id></option_xbone_title_id>
</Options>
<ConfigConstants>
<constants number="12">
<constant name="PEd_POS_X">"x"</constant>
<constant name="PEd_POS_Y">"y"</constant>
<constant name="PEd_POS_Z">"z"</constant>
<constant name="PEd_ROT_X">"rotX"</constant>
<constant name="PEd_ROT_Y">"rotY"</constant>
<constant name="PEd_ROT_Z">"image_angle"</constant>
<constant name="PEd_SCALE_X">"image_xscale"</constant>
<constant name="PEd_SCALE_Y">"image_yscale"</constant>
<constant name="PEd_SCALE_Z">"scaleZ"</constant>
<constant name="PEd_COLOUR">"image_blend"</constant>
<constant name="PEd_ALPHA">"image_alpha"</constant>
<constant name="PEd_CREATE_DUMMY_2D">true</constant>
</constants>
</ConfigConstants>
<ConfigConstants/>
</Config>
28 changes: 17 additions & 11 deletions PushEd.gmx/PushEd.project.gmx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<Configs name="configs">
<Config>Configs\Default</Config>
</Configs>
<NewExtensions/>
<NewExtensions>
<extension index="0">extensions\PushEd</extension>
</NewExtensions>
<sounds name="sound"/>
<sprites name="sprites">
<sprites name="PushEd">
Expand All @@ -21,14 +23,18 @@
<sprite>sprites\PEd_guiSprWarning</sprite>
<sprite>sprites\PEd_guiSprWindowCross</sprite>
</sprites>
<sprite>sprites\PEd_sprTest</sprite>
<sprite>sprites\PEd_sprDummy2D</sprite>
</sprites>
<sprites name="Example">
<sprite>sprites\sprSmiley</sprite>
</sprites>
</sprites>
<backgrounds name="background">
<backgrounds name="PushEd">
<background>background\PEd_bgrDef</background>
<background>background\PEd_bgrTiles</background>
</backgrounds>
<backgrounds name="Example">
<background>background\bgrTiles</background>
</backgrounds>
</backgrounds>
<paths name="paths"/>
Expand Down Expand Up @@ -712,14 +718,6 @@
</fonts>
</fonts>
<objects name="objects">
<objects name="PEdExample">
<object>objects\oBlank</object>
<object>objects\oBlock</object>
<object>objects\oCone</object>
<object>objects\oCylinder</object>
<object>objects\oEllipsoid</object>
<object>objects\oSprite</object>
</objects>
<objects name="PushEd">
<object>objects\PEd_oEditor</object>
<object>objects\PEd_oObject</object>
Expand All @@ -728,6 +726,14 @@
<object>objects\PEd_oPivot</object>
<object>objects\PEd_oPlay</object>
</objects>
<objects name="Example">
<object>objects\oBlank</object>
<object>objects\oBlock</object>
<object>objects\oCone</object>
<object>objects\oCylinder</object>
<object>objects\oEllipsoid</object>
<object>objects\oSprite</object>
</objects>
</objects>
<rooms name="rooms">
<rooms name="PushEd">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
<For3D>0</For3D>
<width>256</width>
<height>256</height>
<data>images\PEd_bgrTiles.png</data>
<data>images\bgrTiles.png</data>
</background>
Binary file added PushEd.gmx/background/images/bgrTiles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
664 changes: 664 additions & 0 deletions PushEd.gmx/extensions/PushEd.extension.gmx

Large diffs are not rendered by default.

Empty file.
Empty file.
611 changes: 0 additions & 611 deletions PushEd.gmx/extensions/yymanifest.xml

This file was deleted.

2 changes: 1 addition & 1 deletion PushEd.gmx/objects/oSprite.object.gmx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>PEd_sprTest</spriteName>
<spriteName>sprSmiley</spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>0</depth>
Expand Down
5 changes: 3 additions & 2 deletions PushEd.gmx/scripts/PEd_guiContentContentBrowser.gml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ if (contentBrowserShowObjects)
if (PEd_guiDrawListItem(_name, _contentX, _contentY, contentBrowserIndexObject == i, editMode != 0))
{
// Create object
var _objectIndex = asset_get_index(_name);
if (contentBrowserIndexObject == i)
{
var _id = PEd_instanceCreate(_room, PEd_oPivot.x, PEd_oPivot.y, i);
var _id = PEd_instanceCreate(_room, PEd_oPivot.x, PEd_oPivot.y, _objectIndex);
PEd_instanceSetPosX(_id, PEd_oPivot.x);
PEd_instanceSetPosY(_id, PEd_oPivot.y);
PEd_instanceSetPosZ(_id, PEd_oPivot.z);
Expand All @@ -47,7 +48,7 @@ if (contentBrowserShowObjects)
else
{
contentBrowserIndexObject = i;
guiDnDObject = asset_get_index(_name);
guiDnDObject = _objectIndex;
}
}
_contentY += guiLineHeight;
Expand Down
2 changes: 1 addition & 1 deletion PushEd.gmx/scripts/PEd_guiContentInfo.gml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
* @return {vec2} The content size.
*/
var _container = argument0;
var _text = "PushEd 1.5.3"; // TODO: Update on new release!
var _text = "PushEd " + PEd_VERSION;
draw_text(8, 8, _text);
return PEd_vec2(string_width(_text) + 16, string_height(_text) + 16);
Binary file added PushEd.gmx/sprites/images/sprSmiley_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
<width>64</width>
<height>64</height>
<frames>
<frame index="0">images\PEd_sprTest_0.png</frame>
<frame index="0">images\sprSmiley_0.png</frame>
</frames>
</sprite>

0 comments on commit 1997f22

Please sign in to comment.