From 682b4dc7d7b94214bd9210e788f6301e0625f10e Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Tue, 25 Oct 2011 23:52:07 +0300 Subject: [PATCH] Add skin and frame to the Sandbox Tools menu. It might be a little confusing at first, but that's the only way to put these settings in the menu that I can think of. --- defaultXonotic.cfg | 2 ++ qcsrc/menu/xonotic/dialog_sandboxtools.c | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index 3733c9fd5..75eef67c7 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -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 diff --git a/qcsrc/menu/xonotic/dialog_sandboxtools.c b/qcsrc/menu/xonotic/dialog_sandboxtools.c index c5305f7cc..8291b2a73 100644 --- a/qcsrc/menu/xonotic/dialog_sandboxtools.c +++ b/qcsrc/menu/xonotic/dialog_sandboxtools.c @@ -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')); -- 2.39.2