11{
13
14 me.TR(me);
17 box.forbiddenCharacters = "\r\n\\\"$";
18 box.maxLength = -127;
19 box.saveImmediately = true;
20 me.TDempty(me, 0.1);
21 me.TD(me, 1, 2.2/4, e =
makeXonoticCommandButton(_(
"Spawn"),
'0 0 0',
"sandbox object_spawn \"$menu_sandbox_spawn_model\"", 0));
23 me.TDempty(me, 0.1);
24 me.TD(me, 1, 2.2/4, e =
makeXonoticCommandButton(_(
"Copy *"),
'0 0 0',
"sandbox object_duplicate copy cl_sandbox_clipboard", 0));
25 me.TD(me, 1, 2.2/4, e =
makeXonoticCommandButton(_(
"Paste"),
'0 0 0',
"sandbox object_duplicate paste \"$cl_sandbox_clipboard\"", 0));
26 me.TR(me);
29 box.forbiddenCharacters = "\r\n\\\"$";
30 box.maxLength = -127;
31 box.saveImmediately = true;
32 me.TDempty(me, 0.1);
34 me.TDempty(me, 0.1);
35 me.TD(me, 1, 2.1/3, e =
makeXonoticCommandButton(_(
"Attach to *"),
'0 0 0',
"sandbox object_attach set \"$menu_sandbox_attach_bone\"", 0));
36 me.TDempty(me, 0.1);
38 me.TR(me);
39 me.TR(me);
41 me.TR(me);
42 me.TD(me, 1, 0.75, e =
makeXonoticCommandButton(_(
"Set skin:"),
'0 0 0',
"sandbox object_edit skin $menu_sandbox_edit_skin", 0));
44 me.TD(me, 1, 0.75, e =
makeXonoticCommandButton(_(
"Set opacity:"),
'0 0 0',
"sandbox object_edit alpha $menu_sandbox_edit_alpha", 0));
45 me.TD(me, 1, 1.25, e =
makeXonoticSlider(0.1, 1, 0.05,
"menu_sandbox_edit_alpha"));
46 e.formatString = "%";
47 me.TR(me);
48 me.TD(me, 1, 0.75, e =
makeXonoticCommandButton(_(
"Set color main:"),
'0 0 0',
"sandbox object_edit color_main \"$menu_sandbox_edit_color_main\"", 0));
50 me.TD(me, 1, 0.75, e =
makeXonoticCommandButton(_(
"Set color glow:"),
'0 0 0',
"sandbox object_edit color_glow \"$menu_sandbox_edit_color_glow\"", 0));
52 me.TR(me);
53 me.TR(me);
54 me.TD(me, 1, 0.75, e =
makeXonoticCommandButton(_(
"Set frame:"),
'0 0 0',
"sandbox object_edit frame $menu_sandbox_edit_frame", 0));
56 me.TR(me);
58 me.TR(me);
59 me.TD(me, 1, 0.6, e =
makeXonoticCommandButton(_(
"Set material:"),
'0 0 0',
"sandbox object_edit material \"$menu_sandbox_edit_material\"", 0));
61 box.forbiddenCharacters = "\r\n\\\"$";
62 box.maxLength = -127;
63 box.saveImmediately = true;
64 me.TR(me);
65 me.TD(me, 1, 0.6, e =
makeXonoticCommandButton(_(
"Set solidity:"),
'0 0 0',
"sandbox object_edit solidity $menu_sandbox_edit_solidity", 0));
68 me.TD(me, 1, 0.6, e =
makeXonoticCommandButton(_(
"Set physics:"),
'0 0 0',
"sandbox object_edit physics $menu_sandbox_edit_physics", 0));
72 me.TR(me);
73 me.TD(me, 1, 0.6, e =
makeXonoticCommandButton(_(
"Set scale:"),
'0 0 0',
"sandbox object_edit scale $menu_sandbox_edit_scale", 0));
74 me.TD(me, 1, 1.4, e =
makeXonoticSlider(0.25, 2, 0.05,
"menu_sandbox_edit_scale"));
75 me.TD(me, 1, 0.6, e =
makeXonoticCommandButton(_(
"Set force:"),
'0 0 0',
"sandbox object_edit force $menu_sandbox_edit_force", 0));
77 me.TR(me);
78 me.TR(me);
80 me.TDempty(me, 0.25);
81 me.TD(me, 1, 0.8, e =
makeXonoticCommandButton(_(
"* object info"),
'1 1 0.5',
"sandbox object_info object; toggleconsole", 0));
82 me.TD(me, 1, 0.75, e =
makeXonoticCommandButton(_(
"* mesh info"),
'1 1 0.5',
"sandbox object_info mesh; toggleconsole", 0));
83 me.TD(me, 1, 0.8, e =
makeXonoticCommandButton(_(
"* attachment info"),
'1 1 0.5',
"sandbox object_info attachments; toggleconsole", 0));
84 me.TDempty(me, 0.25);
86 me.TR(me);
87 me.TDempty(me, 0.1);
89
90 me.gotoRC(me, me.rows - 1, 0);
93 e.onClickEntity = me;
94}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
entity makeXonoticColorpickerString(string theCvar, string theDefaultCvar)
entity makeXonoticTextLabel(float theAlign, string theText)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)