]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add object_info attachments to the helper and menu
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 30 Oct 2011 11:13:04 +0000 (13:13 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 30 Oct 2011 11:13:04 +0000 (13:13 +0200)
qcsrc/menu/xonotic/dialog_sandboxtools.c
qcsrc/server/mutators/sandbox.qc

index 46f6a03ae408491ad30b5aa65e938b075fd07b22..1ef62c6d09580eb7b440ab6890639ec08d399704 100644 (file)
@@ -75,7 +75,8 @@ void XonoticSandboxToolsDialog_fill(entity me)
        me.TR(me);
                me.TD(me, 1, 0.5, e = makeXonoticCommandButton(_("* object info"), '0 0 0', "sandbox object_info object; toggleconsole", 0));
                me.TD(me, 1, 0.5, e = makeXonoticCommandButton(_("* mesh info"), '0 0 0', "sandbox object_info mesh; toggleconsole", 0));
-       me.TDempty(me, 1);
+               me.TD(me, 1, 0.5, e = makeXonoticCommandButton(_("* attachment info"), '0 0 0', "sandbox object_info attachments; toggleconsole", 0));
+       me.TDempty(me, 0.5);
                me.TD(me, 1, 0.5, e = makeXonoticCommandButton(_("Show help"), '1 0 0', "sandbox help; toggleconsole", 0));
                me.TD(me, 1, 1.5, e = makeXonoticTextLabel(0, _("* is the object you are facing")));
 
index 29091af2fa9f6ef0e3923e812d07e9c8120cc816..2a38941d2eaaedde0a660a89d1ba1d32d194c3b6 100644 (file)
@@ -409,6 +409,7 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand)
                                print_to(self, "^7\"^2object_info ^3value^7\" shows public information about the object");
                                print_to(self, "^3object ^7- prints general information about the object, such as owner and creation / editing date");
                                print_to(self, "^3mesh ^7- prints information about the object's mesh, including skeletal bones");
+                               print_to(self, "^3attachments ^7- prints information about the object's attachments");
                                print_to(self, "^7The ^1drag object ^7key can be used to grab and carry objects. Players can only grab their own objects");
                                return TRUE;
 
@@ -672,7 +673,7 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand)
                                                        print_to(self, strcat("^2SANDBOX - INFO: ^7Object mesh is \"^3", e.model, "^7\" at animation frame ^3", ftos(e.frame), " ^7containing the following tags: ", s));
                                                        return TRUE;
                                                case "attachments":
-                                                       // should show the same info as "mesh" but for attachments
+                                                       // this should show the same info as 'mesh' but for attachments
                                                        entity head;
                                                        for(head = world; (head = find(head, classname, "object")); )
                                                        {