Initial commit
This commit is contained in:
commit
d8ee2aa096
7 changed files with 941 additions and 0 deletions
200
add after objDebugList/objDebugAllInstancesList.object.gmx
Normal file
200
add after objDebugList/objDebugAllInstancesList.object.gmx
Normal file
|
|
@ -0,0 +1,200 @@
|
|||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||
<object>
|
||||
<spriteName><undefined></spriteName>
|
||||
<solid>0</solid>
|
||||
<visible>-1</visible>
|
||||
<depth>0</depth>
|
||||
<persistent>-1</persistent>
|
||||
<parentName>objDebugList</parentName>
|
||||
<maskName><undefined></maskName>
|
||||
<events>
|
||||
<event eventtype="0" enumb="0">
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>603</id>
|
||||
<kind>7</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>0</isquestion>
|
||||
<useapplyto>-1</useapplyto>
|
||||
<exetype>2</exetype>
|
||||
<functionname></functionname>
|
||||
<codestring></codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
<arguments>
|
||||
<argument>
|
||||
<kind>1</kind>
|
||||
<string>event_inherited();
|
||||
|
||||
x = 4;
|
||||
y = 4;
|
||||
|
||||
header = "search...";
|
||||
written = false;
|
||||
instances = -1;
|
||||
items = -1;
|
||||
keyboard_string = "";
|
||||
keyboard_string_prev = "";
|
||||
color_timer = 0;
|
||||
|
||||
game_started_before = variable_global_get(global.__synthasmagoria_debug_inspector_global_game_start_name);
|
||||
variable_global_set(global.__synthasmagoria_debug_inspector_global_game_start_name, false);
|
||||
event_user(0);
|
||||
</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
</event>
|
||||
<event eventtype="1" enumb="0">
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>603</id>
|
||||
<kind>7</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>0</isquestion>
|
||||
<useapplyto>-1</useapplyto>
|
||||
<exetype>2</exetype>
|
||||
<functionname></functionname>
|
||||
<codestring></codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
<arguments>
|
||||
<argument>
|
||||
<kind>1</kind>
|
||||
<string>variable_global_set(global.__synthasmagoria_debug_inspector_global_game_start_name, game_started_before);
|
||||
</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
</event>
|
||||
<event eventtype="3" enumb="0">
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>603</id>
|
||||
<kind>7</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>0</isquestion>
|
||||
<useapplyto>-1</useapplyto>
|
||||
<exetype>2</exetype>
|
||||
<functionname></functionname>
|
||||
<codestring></codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
<arguments>
|
||||
<argument>
|
||||
<kind>1</kind>
|
||||
<string>event_inherited();
|
||||
|
||||
color_timer++;
|
||||
|
||||
if (keyboard_string != keyboard_string_prev) {
|
||||
header = keyboard_string;
|
||||
keyboard_string_prev = keyboard_string;
|
||||
event_user(0);
|
||||
}
|
||||
</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
</event>
|
||||
<event eventtype="7" enumb="10">
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>603</id>
|
||||
<kind>7</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>0</isquestion>
|
||||
<useapplyto>-1</useapplyto>
|
||||
<exetype>2</exetype>
|
||||
<functionname></functionname>
|
||||
<codestring></codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
<arguments>
|
||||
<argument>
|
||||
<kind>1</kind>
|
||||
<string>/// update instances
|
||||
var
|
||||
_search = string_lower(keyboard_string),
|
||||
_instances = array_create(instance_count),
|
||||
_items = array_create(instance_count),
|
||||
_count = 0;
|
||||
for (var i = 0; i < instance_count; i++) {
|
||||
if (instance_exists(instance_id[i]) &&
|
||||
(_search == "" || (string_count(_search, string_lower(object_get_name(instance_id[i].object_index)))))) {
|
||||
_instances[_count] = instance_id[i];
|
||||
_items[_count] = object_get_name(instance_id[i].object_index) + " - inst_" + string(instance_id[i]);
|
||||
_count++;
|
||||
}
|
||||
}
|
||||
instances = array_create(_count);
|
||||
items = array_create(_count);
|
||||
array_copy(instances, 0, _instances, 0, _count);
|
||||
array_copy(items, 0, _items, 0, _count);
|
||||
|
||||
item_highlight_index = -1;
|
||||
|
||||
event_inherited();
|
||||
</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
</event>
|
||||
<event eventtype="8" enumb="75">
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>603</id>
|
||||
<kind>7</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>0</isquestion>
|
||||
<useapplyto>-1</useapplyto>
|
||||
<exetype>2</exetype>
|
||||
<functionname></functionname>
|
||||
<codestring></codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
<arguments>
|
||||
<argument>
|
||||
<kind>1</kind>
|
||||
<string>if (item_highlight_index != -1 &&
|
||||
instance_exists(instances[item_highlight_index]) &&
|
||||
instances[item_highlight_index].sprite_index != -1) {
|
||||
var _inst = instances[item_highlight_index];
|
||||
var _view = scrDebugInspectorGetView(0);
|
||||
draw_sprite_ext(
|
||||
_inst.sprite_index,
|
||||
_inst.image_index,
|
||||
_inst.x - _view[0],
|
||||
_inst.y - _view[1],
|
||||
_inst.image_xscale,
|
||||
_inst.image_yscale,
|
||||
_inst.image_angle,
|
||||
make_color_hsv(color_timer % 255, 255, 255),
|
||||
1.0);
|
||||
}
|
||||
|
||||
event_inherited();
|
||||
</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
</event>
|
||||
</events>
|
||||
<PhysicsObject>0</PhysicsObject>
|
||||
<PhysicsObjectSensor>0</PhysicsObjectSensor>
|
||||
<PhysicsObjectShape>0</PhysicsObjectShape>
|
||||
<PhysicsObjectDensity>0.5</PhysicsObjectDensity>
|
||||
<PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
|
||||
<PhysicsObjectGroup>0</PhysicsObjectGroup>
|
||||
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
|
||||
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
|
||||
<PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
|
||||
<PhysicsObjectAwake>-1</PhysicsObjectAwake>
|
||||
<PhysicsObjectKinematic>0</PhysicsObjectKinematic>
|
||||
<PhysicsShapePoints/>
|
||||
</object>
|
||||
Loading…
Add table
Add a link
Reference in a new issue