Go to the source code of this file.
◆ XonoticSandboxToolsDialog_fill()
Definition at line 10 of file dialog_sandboxtools.qc.
References entity(), and makeXonoticTextLabel().
17 box.forbiddenCharacters =
"\r\n\\\"$";
19 box.saveImmediately = 1;
20 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"Spawn"),
'0 0 0',
"sandbox object_spawn \"$menu_sandbox_spawn_model\"", 0));
23 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"Copy *"),
'0 0 0',
"sandbox object_duplicate copy cl_sandbox_clipboard", 0));
24 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"Paste"),
'0 0 0',
"sandbox object_duplicate paste \"$cl_sandbox_clipboard\"", 0));
28 box.forbiddenCharacters =
"\r\n\\\"$";
30 box.saveImmediately = 1;
32 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"Attach to *"),
'0 0 0',
"sandbox object_attach set \"$menu_sandbox_attach_bone\"", 0));
39 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"Set skin:"),
'0 0 0',
"sandbox object_edit skin $menu_sandbox_edit_skin", 0));
41 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"Set alpha:"),
'0 0 0',
"sandbox object_edit alpha $menu_sandbox_edit_alpha", 0));
42 me.TD(me, 1, 1.5, e =
makeXonoticSlider(0.1, 1, 0.05,
"menu_sandbox_edit_alpha"));
44 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"Set color main:"),
'0 0 0',
"sandbox object_edit color_main \"$menu_sandbox_edit_color_main\"", 0));
46 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"Set color glow:"),
'0 0 0',
"sandbox object_edit color_glow \"$menu_sandbox_edit_color_glow\"", 0));
50 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"Set frame:"),
'0 0 0',
"sandbox object_edit frame $menu_sandbox_edit_frame", 0));
56 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"Set material:"),
'0 0 0',
"sandbox object_edit material \"$menu_sandbox_edit_material\"", 0));
58 box.forbiddenCharacters =
"\r\n\\\"$";
60 box.saveImmediately = 1;
62 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"Set solidity:"),
'0 0 0',
"sandbox object_edit solidity $menu_sandbox_edit_solidity", 0));
65 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"Set physics:"),
'0 0 0',
"sandbox object_edit physics $menu_sandbox_edit_physics", 0));
70 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"Set scale:"),
'0 0 0',
"sandbox object_edit scale $menu_sandbox_edit_scale", 0));
71 me.TD(me, 1, 1.5, e =
makeXonoticSlider(0.25, 2, 0.05,
"menu_sandbox_edit_scale"));
72 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"Set force:"),
'0 0 0',
"sandbox object_edit force $menu_sandbox_edit_force", 0));
78 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"* object info"),
'1 1 0.5',
"sandbox object_info object; toggleconsole", 0));
79 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"* mesh info"),
'1 1 0.5',
"sandbox object_info mesh; toggleconsole", 0));
80 me.TD(me, 1, 0.5, e =
makeXonoticCommandButton(_(
"* attachment info"),
'1 1 0.5',
"sandbox object_info attachments; toggleconsole", 0));
84 me.gotoRC(me, me.rows - 1, 0);
entity makeXonoticTextLabel(float theAlign, string theText)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
entity makeXonoticColorpickerString(string theCvar, string theDefaultCvar)