Example #1
0
        public static void RenderDebug(string id, JsonValue parent, JsonValue root)
        {
            ItemRenderer.RenderDebug(id, parent, root);

            var h = root["h"].Bool(false);

            if (ImGui.Checkbox("Horizontal", ref h))
            {
                root["h"] = h;
            }

            var mv = (float)root["mv"].Number(0);

            if (ImGui.InputFloat("Move", ref mv))
            {
                root["mv"] = mv;
            }

            var mt = (float)root["mt"].Number(0.1f);

            if (ImGui.InputFloat("Move Time", ref mt))
            {
                root["mt"] = mt;
            }

            var rt = (float)root["rt"].Number(0.2f);

            if (ImGui.InputFloat("Return Time", ref rt))
            {
                root["rt"] = rt;
            }
        }
        public static void RenderDebug(string id, JsonValue parent, JsonValue root)
        {
            ItemRenderer.RenderDebug(id, parent, root);

            var invert = root["invert_back"].AsBoolean;

            if (ImGui.Checkbox("Invert back?", ref invert))
            {
                root["invert_back"] = invert;
            }

            var min = (float)root["aa"].Number(0);

            if (ImGui.InputFloat("Added Angle", ref min))
            {
                root["aa"] = min;
            }
        }