Files
AM2R-Community-Updates/objects/oOptionSeed.object.gmx
2021-08-01 17:49:20 -05:00

141 lines
4.2 KiB
XML

<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>&lt;undefined&gt;</spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>0</depth>
<persistent>0</persistent>
<parentName>&lt;undefined&gt;</parentName>
<maskName>&lt;undefined&gt;</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>optext = "";
textoffset = 160;
editing = 0;
enabled = 1;
sel = 0;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="8" 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>draw_set_font(fontGUI2);
draw_set_color(c_black);
w = string_width(optext);
if (w &lt; 80) w = 80;
draw_set_alpha(1);
draw_set_font(fontGUI2);
draw_set_color(c_black);
draw_set_alpha(0.4);
if (global.curropt == optionid) draw_set_color(c_gray);
draw_rectangle(x - 2, y - 1, x + textoffset - 8, y + 8, false);
//if (editing) draw_set_color(c_green);
if (optext != "") draw_rectangle(x + textoffset - 2, y - 1, x + textoffset + w + 1, y + 8, false);
draw_set_alpha(1);
draw_set_color(c_black);
draw_text(x + 1, y - 3, label);
//draw_text(x + textoffset + 1, y - 3, optext);
var voff = 0;
for (var i = 0; i &lt; string_length(optext); i++) {
var str = string_char_at(optext, i + 1);
draw_text(x + textoffset + (i * 7) - (4 * voff) + 1, y - 3, str);
if (str == "1") voff += 1; // special case to make 1 not be super awkward
}
draw_set_color(c_white);
if (enabled == 0) {
draw_set_alpha(0.5);
} else draw_set_alpha(1);
draw_text(x, y - 4, label);
//draw_text(x + textoffset, y - 4, optext);
var voff = 0;
for (var e = 0; e &lt; string_length(optext); e++) {
if (editing) {
if (e == sel) {
draw_set_color(make_color_rgb(3, 187, 25));
}
}
var str = string_char_at(optext, e + 1);
draw_text(x + textoffset + (e * 7) - (4 * voff), y - 4, str);
if (str == "1") voff += 1; // special case to make 1 not be super awkward
draw_set_color(c_white);
}
draw_set_alpha(1);
/*draw_set_alpha(0.4);
if (global.curropt == optionid) draw_set_color(c_gray);
//draw_text(x + 1, y - 3, seed);
//draw_text(x, y - 4, label);
/*draw_rectangle(x - 2, y - 1, x + textoffset - 8, y + 8, false);
draw_rectangle(x + textoffset - 1, y - 1, x + textoffset + w + 1, y + 8, false);
draw_set_alpha(0.8);
draw_set_color(c_green);
draw_rectangle(x + textoffset, y, x + textoffset + slwidth, y + 7, false);
draw_set_alpha(1);
draw_set_color(c_black);
draw_text(x + 1, y - 3, label);
draw_set_color(c_white);
draw_set_alpha(1);
draw_text(x, y - 4, label);
draw_set_alpha(1);
</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>