]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add skin and frame to the Sandbox Tools menu. It might be a little confusing at first...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 25 Oct 2011 20:52:07 +0000 (23:52 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 25 Oct 2011 20:52:07 +0000 (23:52 +0300)
defaultXonotic.cfg
qcsrc/menu/xonotic/dialog_sandboxtools.c

index 3733c9fd5d1c705ea00884e79606abaef6cd818b..75eef67c7397742f5fe3b72365e520eaa4aef7a1 100644 (file)
@@ -547,6 +547,8 @@ set g_sandbox_editor_distance_spawn 200 "distance at which objects spawn in fron
 set g_sandbox_editor_distance_edit 350 "distance at which players can edit or remove objects they are looking at"
 
 seta menu_sandbox_spawn_model "" // used to store the model in the input field
+set menu_sandbox_edit_skin 0
+set menu_sandbox_edit_frame 0
 
 alias menu_showsandboxtools "menu_cmd directmenu SandboxTools"
 bind f7 menu_showsandboxtools
index c5305f7cc3d80a8df95cecb76f793b75fe5a1f08..8291b2a73b75fd22cd8facd8ed48e7bc54cd92ac 100644 (file)
@@ -27,6 +27,12 @@ void XonoticSandboxToolsDialog_fill(entity me)
        me.TDempty(me, 0.1);
                me.TD(me, 1, 0.5, makeXonoticCommandButton(_("Copy"), '0 0 0', "sandbox duplicate_object_copy", 0));
                me.TD(me, 1, 0.5, makeXonoticCommandButton(_("Paste"), '0 0 0', "sandbox duplicate_object_paste", 0));
+       me.TR(me);
+       me.TR(me);
+               me.TD(me, 1, 0.5, makeXonoticCommandButton(_("Set skin:"), '0 0 0', "sandbox edit_object skin $menu_sandbox_edit_skin", 0));
+               me.TD(me, 1, 1.5, e = makeXonoticSlider(0, 99, 1, "menu_sandbox_edit_skin"));
+               me.TD(me, 1, 0.5, makeXonoticCommandButton(_("Set frame:"), '0 0 0', "sandbox edit_object frame $menu_sandbox_edit_frame", 0));
+               me.TD(me, 1, 1.5, e = makeXonoticSlider(0, 99, 1, "menu_sandbox_edit_frame"));
 
        me.gotoRC(me, me.rows - 1, 0);
                me.TD(me, 1, me.columns, e = makeXonoticButton(_("OK"), '0 0 0'));