diff options
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 2280 |
1 files changed, 2280 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 3e99384..a97ec18 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -86,6 +86,7 @@ | |||
86 | #include "llfloateravatarinfo.h" | 86 | #include "llfloateravatarinfo.h" |
87 | #include "llfloateravatartextures.h" | 87 | #include "llfloateravatartextures.h" |
88 | #include "llfloaterbuildoptions.h" | 88 | #include "llfloaterbuildoptions.h" |
89 | #include "llfloaterbulkpermission.h" | ||
89 | #include "llfloaterbump.h" | 90 | #include "llfloaterbump.h" |
90 | #include "llfloaterbuy.h" | 91 | #include "llfloaterbuy.h" |
91 | #include "llfloaterbuycontents.h" | 92 | #include "llfloaterbuycontents.h" |
@@ -750,10 +751,13 @@ void init_menus() | |||
750 | gLandmarkMenu = menu; | 751 | gLandmarkMenu = menu; |
751 | */ | 752 | */ |
752 | 753 | ||
754 | // Advanced (Client) menu is XUI now! \o/ | ||
755 | /* | ||
753 | menu = new LLMenuGL(CLIENT_MENU_NAME); | 756 | menu = new LLMenuGL(CLIENT_MENU_NAME); |
754 | init_client_menu(menu); | 757 | init_client_menu(menu); |
755 | gMenuBarView->appendMenu( menu ); | 758 | gMenuBarView->appendMenu( menu ); |
756 | menu->updateParent(LLMenuGL::sMenuContainer); | 759 | menu->updateParent(LLMenuGL::sMenuContainer); |
760 | */ | ||
757 | 761 | ||
758 | menu = new LLMenuGL(SERVER_MENU_NAME); | 762 | menu = new LLMenuGL(SERVER_MENU_NAME); |
759 | init_server_menu(menu); | 763 | init_server_menu(menu); |
@@ -6239,6 +6243,18 @@ void queue_actions(LLFloaterScriptQueue* q, const std::string& noscriptmsg, cons | |||
6239 | } | 6243 | } |
6240 | } | 6244 | } |
6241 | 6245 | ||
6246 | |||
6247 | class LLToolsSetBulkPerms : public view_listener_t | ||
6248 | { | ||
6249 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
6250 | { | ||
6251 | LLFloaterBulkPermission* queue = NULL; | ||
6252 | queue = LLFloaterBulkPermission::create(); | ||
6253 | return true; | ||
6254 | } | ||
6255 | }; | ||
6256 | |||
6257 | |||
6242 | class LLToolsSelectedScriptAction : public view_listener_t | 6258 | class LLToolsSelectedScriptAction : public view_listener_t |
6243 | { | 6259 | { |
6244 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 6260 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
@@ -7720,6 +7736,2118 @@ class LLWorldDayCycle : public view_listener_t | |||
7720 | 7736 | ||
7721 | 7737 | ||
7722 | 7738 | ||
7739 | |||
7740 | //------------------------------------------------------------------- | ||
7741 | // Advanced menu | ||
7742 | //------------------------------------------------------------------- | ||
7743 | |||
7744 | |||
7745 | /////////////////// | ||
7746 | // SHOW CONSOLES // | ||
7747 | /////////////////// | ||
7748 | |||
7749 | |||
7750 | class LLAdvancedToggleConsole : public view_listener_t | ||
7751 | { | ||
7752 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7753 | { | ||
7754 | LLString console_type = userdata.asString(); | ||
7755 | if ("frame" == console_type) | ||
7756 | { | ||
7757 | toggle_visibility( (void*)gDebugView->mFrameStatView ); | ||
7758 | } | ||
7759 | else if ("texture" == console_type) | ||
7760 | { | ||
7761 | toggle_visibility( (void*)gTextureView ); | ||
7762 | } | ||
7763 | else if ("debug" == console_type) | ||
7764 | { | ||
7765 | toggle_visibility( (void*)((LLView*)gDebugView->mDebugConsolep) ); | ||
7766 | } | ||
7767 | else if ("fast timers" == console_type) | ||
7768 | { | ||
7769 | toggle_visibility( (void*)gDebugView->mFastTimerView ); | ||
7770 | } | ||
7771 | else if ("memory" == console_type) | ||
7772 | { | ||
7773 | toggle_visibility( (void*)gDebugView->mMemoryView ); | ||
7774 | } | ||
7775 | return true; | ||
7776 | } | ||
7777 | }; | ||
7778 | |||
7779 | |||
7780 | class LLAdvancedCheckConsole : public view_listener_t | ||
7781 | { | ||
7782 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7783 | { | ||
7784 | LLString console_type = userdata["data"].asString(); | ||
7785 | bool new_value = false; | ||
7786 | if ("frame" == console_type) | ||
7787 | { | ||
7788 | new_value = get_visibility( (void*)gDebugView->mFrameStatView ); | ||
7789 | } | ||
7790 | else if ("texture" == console_type) | ||
7791 | { | ||
7792 | new_value = get_visibility( (void*)gTextureView ); | ||
7793 | } | ||
7794 | else if ("debug" == console_type) | ||
7795 | { | ||
7796 | new_value = get_visibility( (void*)((LLView*)gDebugView->mDebugConsolep) ); | ||
7797 | } | ||
7798 | else if ("fast timers" == console_type) | ||
7799 | { | ||
7800 | new_value = get_visibility( (void*)gDebugView->mFastTimerView ); | ||
7801 | } | ||
7802 | else if ("memory" == console_type) | ||
7803 | { | ||
7804 | new_value = get_visibility( (void*)gDebugView->mMemoryView ); | ||
7805 | } | ||
7806 | |||
7807 | LLString control_name = userdata["control"].asString(); | ||
7808 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
7809 | return true; | ||
7810 | } | ||
7811 | }; | ||
7812 | |||
7813 | |||
7814 | |||
7815 | ////////////////////////// | ||
7816 | // DUMP INFO TO CONSOLE // | ||
7817 | ////////////////////////// | ||
7818 | |||
7819 | |||
7820 | class LLAdvancedDumpInfoToConsole : public view_listener_t | ||
7821 | { | ||
7822 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7823 | { | ||
7824 | LLString info_type = userdata.asString(); | ||
7825 | if ("region" == info_type) | ||
7826 | { | ||
7827 | handle_region_dump_settings(NULL); | ||
7828 | } | ||
7829 | else if ("group" == info_type) | ||
7830 | { | ||
7831 | handle_dump_group_info(NULL); | ||
7832 | } | ||
7833 | else if ("capabilities" == info_type) | ||
7834 | { | ||
7835 | handle_dump_capabilities_info(NULL); | ||
7836 | } | ||
7837 | return true; | ||
7838 | } | ||
7839 | }; | ||
7840 | |||
7841 | |||
7842 | |||
7843 | /////////////////////////////// | ||
7844 | // RELOAD SETTINGS OVERRIDES // | ||
7845 | /////////////////////////////// | ||
7846 | |||
7847 | |||
7848 | class LLAdvancedReloadSettingsOverrides : public view_listener_t | ||
7849 | { | ||
7850 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7851 | { | ||
7852 | reload_personal_settings_overrides(NULL); | ||
7853 | return true; | ||
7854 | } | ||
7855 | }; | ||
7856 | |||
7857 | |||
7858 | |||
7859 | ////////////// | ||
7860 | // HUD INFO // | ||
7861 | ////////////// | ||
7862 | |||
7863 | |||
7864 | class LLAdvancedToggleHUDInfo : public view_listener_t | ||
7865 | { | ||
7866 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7867 | { | ||
7868 | LLString info_type = userdata.asString(); | ||
7869 | if ("velocity" == info_type) | ||
7870 | { | ||
7871 | toggle_visibility( (void*)gVelocityBar ); | ||
7872 | } | ||
7873 | else if ("camera" == info_type) | ||
7874 | { | ||
7875 | gDisplayCameraPos = !(gDisplayCameraPos); | ||
7876 | } | ||
7877 | else if ("wind" == info_type) | ||
7878 | { | ||
7879 | gDisplayWindInfo = !(gDisplayWindInfo); | ||
7880 | } | ||
7881 | else if ("fov" == info_type) | ||
7882 | { | ||
7883 | gDisplayFOV = !(gDisplayFOV); | ||
7884 | } | ||
7885 | return true; | ||
7886 | } | ||
7887 | }; | ||
7888 | |||
7889 | class LLAdvancedCheckHUDInfo : public view_listener_t | ||
7890 | { | ||
7891 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7892 | { | ||
7893 | LLString info_type = userdata["data"].asString(); | ||
7894 | bool new_value = false; | ||
7895 | if ("velocity" == info_type) | ||
7896 | { | ||
7897 | new_value = get_visibility( (void*)gVelocityBar ); | ||
7898 | } | ||
7899 | else if ("camera" == info_type) | ||
7900 | { | ||
7901 | new_value = gDisplayCameraPos; | ||
7902 | } | ||
7903 | else if ("wind" == info_type) | ||
7904 | { | ||
7905 | new_value = gDisplayWindInfo; | ||
7906 | } | ||
7907 | else if ("fov" == info_type) | ||
7908 | { | ||
7909 | new_value = gDisplayFOV; | ||
7910 | } | ||
7911 | |||
7912 | LLString control_name = userdata["control"].asString(); | ||
7913 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
7914 | |||
7915 | return true; | ||
7916 | } | ||
7917 | }; | ||
7918 | |||
7919 | |||
7920 | |||
7921 | /////////////////////// | ||
7922 | // CLEAR GROUP CACHE // | ||
7923 | /////////////////////// | ||
7924 | |||
7925 | |||
7926 | class LLAdvancedClearGroupCache : public view_listener_t | ||
7927 | { | ||
7928 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7929 | { | ||
7930 | LLGroupMgr::debugClearAllGroups(NULL); | ||
7931 | return true; | ||
7932 | } | ||
7933 | }; | ||
7934 | |||
7935 | |||
7936 | |||
7937 | |||
7938 | ///////////////// | ||
7939 | // RENDER TYPE // | ||
7940 | ///////////////// | ||
7941 | |||
7942 | |||
7943 | U32 render_type_from_string(LLString render_type) | ||
7944 | { | ||
7945 | if ("simple" == render_type) | ||
7946 | { | ||
7947 | return LLPipeline::RENDER_TYPE_SIMPLE; | ||
7948 | } | ||
7949 | else if ("alpha" == render_type) | ||
7950 | { | ||
7951 | return LLPipeline::RENDER_TYPE_ALPHA; | ||
7952 | } | ||
7953 | else if ("tree" == render_type) | ||
7954 | { | ||
7955 | return LLPipeline::RENDER_TYPE_TREE; | ||
7956 | } | ||
7957 | else if ("avatar" == render_type) | ||
7958 | { | ||
7959 | return LLPipeline::RENDER_TYPE_AVATAR; | ||
7960 | } | ||
7961 | else if ("terrain" == render_type) | ||
7962 | { | ||
7963 | return LLPipeline::RENDER_TYPE_TERRAIN; | ||
7964 | } | ||
7965 | else if ("sky" == render_type) | ||
7966 | { | ||
7967 | return LLPipeline::RENDER_TYPE_SKY; | ||
7968 | } | ||
7969 | else if ("water" == render_type) | ||
7970 | { | ||
7971 | return LLPipeline::RENDER_TYPE_WATER; | ||
7972 | } | ||
7973 | else if ("ground" == render_type) | ||
7974 | { | ||
7975 | return LLPipeline::RENDER_TYPE_GROUND; | ||
7976 | } | ||
7977 | else if ("volume" == render_type) | ||
7978 | { | ||
7979 | return LLPipeline::RENDER_TYPE_VOLUME; | ||
7980 | } | ||
7981 | else if ("grass" == render_type) | ||
7982 | { | ||
7983 | return LLPipeline::RENDER_TYPE_GRASS; | ||
7984 | } | ||
7985 | else if ("clouds" == render_type) | ||
7986 | { | ||
7987 | return LLPipeline::RENDER_TYPE_CLOUDS; | ||
7988 | } | ||
7989 | else if ("particles" == render_type) | ||
7990 | { | ||
7991 | return LLPipeline::RENDER_TYPE_PARTICLES; | ||
7992 | } | ||
7993 | else if ("bump" == render_type) | ||
7994 | { | ||
7995 | return LLPipeline::RENDER_TYPE_BUMP; | ||
7996 | } | ||
7997 | else | ||
7998 | { | ||
7999 | return 0; | ||
8000 | } | ||
8001 | } | ||
8002 | |||
8003 | |||
8004 | class LLAdvancedToggleRenderType : public view_listener_t | ||
8005 | { | ||
8006 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8007 | { | ||
8008 | U32 render_type = render_type_from_string( userdata.asString() ); | ||
8009 | if ( render_type != 0 ) | ||
8010 | { | ||
8011 | LLPipeline::toggleRenderTypeControl( (void*)render_type ); | ||
8012 | } | ||
8013 | return true; | ||
8014 | } | ||
8015 | }; | ||
8016 | |||
8017 | |||
8018 | class LLAdvancedCheckRenderType : public view_listener_t | ||
8019 | { | ||
8020 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8021 | { | ||
8022 | U32 render_type = render_type_from_string( userdata["data"].asString() ); | ||
8023 | bool new_value = false; | ||
8024 | |||
8025 | if ( render_type != 0 ) | ||
8026 | { | ||
8027 | new_value = LLPipeline::hasRenderTypeControl( (void*)render_type ); | ||
8028 | } | ||
8029 | |||
8030 | LLString control_name = userdata["control"].asString(); | ||
8031 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8032 | return true; | ||
8033 | } | ||
8034 | }; | ||
8035 | |||
8036 | |||
8037 | |||
8038 | ///////////// | ||
8039 | // FEATURE // | ||
8040 | ///////////// | ||
8041 | |||
8042 | |||
8043 | U32 feature_from_string(LLString feature) | ||
8044 | { | ||
8045 | if ("ui" == feature) | ||
8046 | { | ||
8047 | return LLPipeline::RENDER_DEBUG_FEATURE_UI; | ||
8048 | } | ||
8049 | else if ("selected" == feature) | ||
8050 | { | ||
8051 | return LLPipeline::RENDER_DEBUG_FEATURE_SELECTED; | ||
8052 | } | ||
8053 | else if ("highlighted" == feature) | ||
8054 | { | ||
8055 | return LLPipeline::RENDER_DEBUG_FEATURE_HIGHLIGHTED; | ||
8056 | } | ||
8057 | else if ("dynamic textures" == feature) | ||
8058 | { | ||
8059 | return LLPipeline::RENDER_DEBUG_FEATURE_DYNAMIC_TEXTURES; | ||
8060 | } | ||
8061 | else if ("foot shadows" == feature) | ||
8062 | { | ||
8063 | return LLPipeline::RENDER_DEBUG_FEATURE_FOOT_SHADOWS; | ||
8064 | } | ||
8065 | else if ("fog" == feature) | ||
8066 | { | ||
8067 | return LLPipeline::RENDER_DEBUG_FEATURE_FOG; | ||
8068 | } | ||
8069 | else if ("palette" == feature) | ||
8070 | { | ||
8071 | return LLPipeline::RENDER_DEBUG_FEATURE_PALETTE; | ||
8072 | } | ||
8073 | else if ("fr info" == feature) | ||
8074 | { | ||
8075 | return LLPipeline::RENDER_DEBUG_FEATURE_FR_INFO; | ||
8076 | } | ||
8077 | else if ("flexible" == feature) | ||
8078 | { | ||
8079 | return LLPipeline::RENDER_DEBUG_FEATURE_FLEXIBLE; | ||
8080 | } | ||
8081 | else | ||
8082 | { | ||
8083 | return 0; | ||
8084 | } | ||
8085 | }; | ||
8086 | |||
8087 | |||
8088 | class LLAdvancedToggleFeature : public view_listener_t | ||
8089 | { | ||
8090 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8091 | { | ||
8092 | U32 feature = feature_from_string( userdata.asString() ); | ||
8093 | |||
8094 | if ( feature != 0 ) | ||
8095 | { | ||
8096 | LLPipeline::toggleRenderDebugFeature( (void*)feature ); | ||
8097 | } | ||
8098 | |||
8099 | return true; | ||
8100 | } | ||
8101 | }; | ||
8102 | |||
8103 | |||
8104 | class LLAdvancedCheckFeature : public view_listener_t | ||
8105 | { | ||
8106 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8107 | { | ||
8108 | U32 feature = feature_from_string( userdata["data"].asString() ); | ||
8109 | bool new_value = false; | ||
8110 | |||
8111 | if ( feature != 0 ) | ||
8112 | { | ||
8113 | new_value = LLPipeline::toggleRenderDebugFeatureControl( (void*)feature ); | ||
8114 | } | ||
8115 | |||
8116 | LLString control_name = userdata["control"].asString(); | ||
8117 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8118 | return true; | ||
8119 | } | ||
8120 | }; | ||
8121 | |||
8122 | |||
8123 | |||
8124 | ////////////////// | ||
8125 | // INFO DISPLAY // | ||
8126 | ////////////////// | ||
8127 | |||
8128 | |||
8129 | U32 info_display_from_string(LLString info_display) | ||
8130 | { | ||
8131 | if ("verify" == info_display) | ||
8132 | { | ||
8133 | return LLPipeline::RENDER_DEBUG_VERIFY; | ||
8134 | } | ||
8135 | else if ("bboxes" == info_display) | ||
8136 | { | ||
8137 | return LLPipeline::RENDER_DEBUG_BBOXES; | ||
8138 | } | ||
8139 | else if ("points" == info_display) | ||
8140 | { | ||
8141 | return LLPipeline::RENDER_DEBUG_POINTS; | ||
8142 | } | ||
8143 | else if ("octree" == info_display) | ||
8144 | { | ||
8145 | return LLPipeline::RENDER_DEBUG_OCTREE; | ||
8146 | } | ||
8147 | else if ("occlusion" == info_display) | ||
8148 | { | ||
8149 | return LLPipeline::RENDER_DEBUG_OCCLUSION; | ||
8150 | } | ||
8151 | else if ("render batches" == info_display) | ||
8152 | { | ||
8153 | return LLPipeline::RENDER_DEBUG_BATCH_SIZE; | ||
8154 | } | ||
8155 | else if ("texture anim" == info_display) | ||
8156 | { | ||
8157 | return LLPipeline::RENDER_DEBUG_TEXTURE_ANIM; | ||
8158 | } | ||
8159 | else if ("texture priority" == info_display) | ||
8160 | { | ||
8161 | return LLPipeline::RENDER_DEBUG_TEXTURE_PRIORITY; | ||
8162 | } | ||
8163 | else if ("shame" == info_display) | ||
8164 | { | ||
8165 | return LLPipeline::RENDER_DEBUG_SHAME; | ||
8166 | } | ||
8167 | else if ("texture area" == info_display) | ||
8168 | { | ||
8169 | return LLPipeline::RENDER_DEBUG_TEXTURE_AREA; | ||
8170 | } | ||
8171 | else if ("face area" == info_display) | ||
8172 | { | ||
8173 | return LLPipeline::RENDER_DEBUG_FACE_AREA; | ||
8174 | } | ||
8175 | else if ("picking" == info_display) | ||
8176 | { | ||
8177 | return LLPipeline::RENDER_DEBUG_PICKING; | ||
8178 | } | ||
8179 | else if ("lights" == info_display) | ||
8180 | { | ||
8181 | return LLPipeline::RENDER_DEBUG_LIGHTS; | ||
8182 | } | ||
8183 | else if ("particles" == info_display) | ||
8184 | { | ||
8185 | return LLPipeline::RENDER_DEBUG_PARTICLES; | ||
8186 | } | ||
8187 | else if ("composition" == info_display) | ||
8188 | { | ||
8189 | return LLPipeline::RENDER_DEBUG_COMPOSITION; | ||
8190 | } | ||
8191 | else if ("glow" == info_display) | ||
8192 | { | ||
8193 | return LLPipeline::RENDER_DEBUG_GLOW; | ||
8194 | } | ||
8195 | else | ||
8196 | { | ||
8197 | return 0; | ||
8198 | } | ||
8199 | }; | ||
8200 | |||
8201 | |||
8202 | class LLAdvancedToggleInfoDisplay : public view_listener_t | ||
8203 | { | ||
8204 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8205 | { | ||
8206 | U32 info_display = info_display_from_string( userdata.asString() ); | ||
8207 | |||
8208 | if ( info_display != 0 ) | ||
8209 | { | ||
8210 | LLPipeline::toggleRenderDebug( (void*)info_display ); | ||
8211 | } | ||
8212 | |||
8213 | return true; | ||
8214 | } | ||
8215 | }; | ||
8216 | |||
8217 | |||
8218 | class LLAdvancedCheckInfoDisplay : public view_listener_t | ||
8219 | { | ||
8220 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8221 | { | ||
8222 | U32 info_display = info_display_from_string( userdata["data"].asString() ); | ||
8223 | bool new_value = false; | ||
8224 | |||
8225 | if ( info_display != 0 ) | ||
8226 | { | ||
8227 | new_value = LLPipeline::toggleRenderDebugControl( (void*)info_display ); | ||
8228 | } | ||
8229 | |||
8230 | LLString control_name = userdata["control"].asString(); | ||
8231 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8232 | return true; | ||
8233 | } | ||
8234 | }; | ||
8235 | |||
8236 | |||
8237 | |||
8238 | /////////////////// | ||
8239 | // SELECT BUFFER // | ||
8240 | /////////////////// | ||
8241 | |||
8242 | |||
8243 | class LLAdvancedToggleSelectBuffer : public view_listener_t | ||
8244 | { | ||
8245 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8246 | { | ||
8247 | gDebugSelect = !(gDebugSelect); | ||
8248 | return true; | ||
8249 | } | ||
8250 | }; | ||
8251 | |||
8252 | class LLAdvancedCheckSelectBuffer : public view_listener_t | ||
8253 | { | ||
8254 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8255 | { | ||
8256 | bool new_value = gDebugSelect; | ||
8257 | LLString control_name = userdata["control"].asString(); | ||
8258 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8259 | return true; | ||
8260 | } | ||
8261 | }; | ||
8262 | |||
8263 | |||
8264 | |||
8265 | ///////////////////////// | ||
8266 | // RANDOMIZE FRAMERATE // | ||
8267 | ///////////////////////// | ||
8268 | |||
8269 | |||
8270 | class LLAdvancedToggleRandomizeFramerate : public view_listener_t | ||
8271 | { | ||
8272 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8273 | { | ||
8274 | gRandomizeFramerate = !(gRandomizeFramerate); | ||
8275 | return true; | ||
8276 | } | ||
8277 | }; | ||
8278 | |||
8279 | class LLAdvancedCheckRandomizeFramerate : public view_listener_t | ||
8280 | { | ||
8281 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8282 | { | ||
8283 | bool new_value = gRandomizeFramerate; | ||
8284 | LLString control_name = userdata["control"].asString(); | ||
8285 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8286 | return true; | ||
8287 | } | ||
8288 | }; | ||
8289 | |||
8290 | |||
8291 | |||
8292 | ///////////////////////// | ||
8293 | // PERIODIC SLOW FRAME // | ||
8294 | ///////////////////////// | ||
8295 | |||
8296 | |||
8297 | class LLAdvancedTogglePeriodicSlowFrame : public view_listener_t | ||
8298 | { | ||
8299 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8300 | { | ||
8301 | gPeriodicSlowFrame = !(gPeriodicSlowFrame); | ||
8302 | return true; | ||
8303 | } | ||
8304 | }; | ||
8305 | |||
8306 | class LLAdvancedCheckPeriodicSlowFrame : public view_listener_t | ||
8307 | { | ||
8308 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8309 | { | ||
8310 | bool new_value = gPeriodicSlowFrame; | ||
8311 | LLString control_name = userdata["control"].asString(); | ||
8312 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8313 | return true; | ||
8314 | } | ||
8315 | }; | ||
8316 | |||
8317 | |||
8318 | |||
8319 | //////////////// | ||
8320 | // FRAME TEST // | ||
8321 | //////////////// | ||
8322 | |||
8323 | |||
8324 | class LLAdvancedToggleFrameTest : public view_listener_t | ||
8325 | { | ||
8326 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8327 | { | ||
8328 | LLPipeline::sRenderFrameTest = !(LLPipeline::sRenderFrameTest); | ||
8329 | return true; | ||
8330 | } | ||
8331 | }; | ||
8332 | |||
8333 | class LLAdvancedCheckFrameTest : public view_listener_t | ||
8334 | { | ||
8335 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8336 | { | ||
8337 | bool new_value = LLPipeline::sRenderFrameTest; | ||
8338 | LLString control_name = userdata["control"].asString(); | ||
8339 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8340 | return true; | ||
8341 | } | ||
8342 | }; | ||
8343 | |||
8344 | |||
8345 | |||
8346 | /////////////////////////// | ||
8347 | // HIDE SELECTED OBJECTS // | ||
8348 | /////////////////////////// | ||
8349 | |||
8350 | |||
8351 | class LLAdvancedToggleHideSelectedObjects : public view_listener_t | ||
8352 | { | ||
8353 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8354 | { | ||
8355 | gHideSelectedObjects = !(gHideSelectedObjects); | ||
8356 | return true; | ||
8357 | } | ||
8358 | }; | ||
8359 | |||
8360 | class LLAdvancedCheckHideSelectedObjects : public view_listener_t | ||
8361 | { | ||
8362 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8363 | { | ||
8364 | bool new_value = gHideSelectedObjects; | ||
8365 | LLString control_name = userdata["control"].asString(); | ||
8366 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8367 | return true; | ||
8368 | } | ||
8369 | }; | ||
8370 | |||
8371 | |||
8372 | |||
8373 | /////////////////////////// | ||
8374 | // SELECTED TEXTURE INFO // | ||
8375 | /////////////////////////// | ||
8376 | |||
8377 | |||
8378 | class LLAdvancedSelectedTextureInfo : public view_listener_t | ||
8379 | { | ||
8380 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8381 | { | ||
8382 | handle_selected_texture_info(NULL); | ||
8383 | return true; | ||
8384 | } | ||
8385 | }; | ||
8386 | |||
8387 | |||
8388 | |||
8389 | ////////////////////// | ||
8390 | // TOGGLE WIREFRAME // | ||
8391 | ////////////////////// | ||
8392 | |||
8393 | |||
8394 | class LLAdvancedToggleWireframe : public view_listener_t | ||
8395 | { | ||
8396 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8397 | { | ||
8398 | gUseWireframe = !(gUseWireframe); | ||
8399 | return true; | ||
8400 | } | ||
8401 | }; | ||
8402 | |||
8403 | class LLAdvancedCheckWireframe : public view_listener_t | ||
8404 | { | ||
8405 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8406 | { | ||
8407 | bool new_value = gUseWireframe; | ||
8408 | LLString control_name = userdata["control"].asString(); | ||
8409 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8410 | return true; | ||
8411 | } | ||
8412 | }; | ||
8413 | |||
8414 | |||
8415 | |||
8416 | ////////////////////// | ||
8417 | // DISABLE TEXTURES // | ||
8418 | ////////////////////// | ||
8419 | |||
8420 | |||
8421 | class LLAdvancedToggleDisableTextures : public view_listener_t | ||
8422 | { | ||
8423 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8424 | { | ||
8425 | menu_toggle_variable((void*)&LLViewerImage::sDontLoadVolumeTextures); | ||
8426 | return true; | ||
8427 | } | ||
8428 | }; | ||
8429 | |||
8430 | class LLAdvancedCheckDisableTextures : public view_listener_t | ||
8431 | { | ||
8432 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8433 | { | ||
8434 | bool new_value = menu_check_variable((void*)&LLViewerImage::sDontLoadVolumeTextures); | ||
8435 | LLString control_name = userdata["control"].asString(); | ||
8436 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8437 | return true; | ||
8438 | } | ||
8439 | }; | ||
8440 | |||
8441 | |||
8442 | |||
8443 | ////////////////////////// | ||
8444 | // DUMP SCRIPTED CAMERA // | ||
8445 | ////////////////////////// | ||
8446 | |||
8447 | |||
8448 | class LLAdvancedDumpScriptedCamera : public view_listener_t | ||
8449 | { | ||
8450 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8451 | { | ||
8452 | handle_dump_followcam(NULL); | ||
8453 | return true; | ||
8454 | } | ||
8455 | }; | ||
8456 | |||
8457 | |||
8458 | |||
8459 | ////////////////////////////// | ||
8460 | // DUMP REGION OBJECT CACHE // | ||
8461 | ////////////////////////////// | ||
8462 | |||
8463 | |||
8464 | class LLAdvancedDumpRegionObjectCache : public view_listener_t | ||
8465 | { | ||
8466 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8467 | { | ||
8468 | handle_dump_region_object_cache(NULL); | ||
8469 | return true; | ||
8470 | } | ||
8471 | }; | ||
8472 | |||
8473 | |||
8474 | |||
8475 | //////////////// | ||
8476 | // SLURL TEST // | ||
8477 | //////////////// | ||
8478 | |||
8479 | |||
8480 | class LLAdvancedSLURLTest : public view_listener_t | ||
8481 | { | ||
8482 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8483 | { | ||
8484 | handle_slurl_test(NULL); | ||
8485 | return true; | ||
8486 | } | ||
8487 | }; | ||
8488 | |||
8489 | |||
8490 | |||
8491 | //////////////////////// | ||
8492 | // TOGGLE EDITABLE UI // | ||
8493 | //////////////////////// | ||
8494 | |||
8495 | |||
8496 | class LLAdvancedToggleEditableUI : public view_listener_t | ||
8497 | { | ||
8498 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8499 | { | ||
8500 | edit_ui(NULL); | ||
8501 | return true; | ||
8502 | } | ||
8503 | }; | ||
8504 | |||
8505 | // *TODO: Add corresponding "Check" for EditableUI, so it can | ||
8506 | // become a menu_item_check. Need to add check_edit_ui(void*) | ||
8507 | // or functional equivalent to do that. | ||
8508 | |||
8509 | |||
8510 | |||
8511 | ////////////////////// | ||
8512 | // ASYNC KEYSTROKES // | ||
8513 | ////////////////////// | ||
8514 | |||
8515 | |||
8516 | class LLAdvancedToggleAsyncKeystrokes : public view_listener_t | ||
8517 | { | ||
8518 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8519 | { | ||
8520 | gHandleKeysAsync = !(gHandleKeysAsync); | ||
8521 | return true; | ||
8522 | } | ||
8523 | }; | ||
8524 | |||
8525 | class LLAdvancedCheckAsyncKeystrokes : public view_listener_t | ||
8526 | { | ||
8527 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8528 | { | ||
8529 | bool new_value = gHandleKeysAsync; | ||
8530 | LLString control_name = userdata["control"].asString(); | ||
8531 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8532 | return true; | ||
8533 | } | ||
8534 | }; | ||
8535 | |||
8536 | |||
8537 | |||
8538 | ///////////////////// | ||
8539 | // DUMP SELECT MGR // | ||
8540 | ///////////////////// | ||
8541 | |||
8542 | |||
8543 | class LLAdvancedDumpSelectMgr : public view_listener_t | ||
8544 | { | ||
8545 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8546 | { | ||
8547 | dump_select_mgr(NULL); | ||
8548 | return true; | ||
8549 | } | ||
8550 | }; | ||
8551 | |||
8552 | |||
8553 | |||
8554 | //////////////////// | ||
8555 | // DUMP INVENTORY // | ||
8556 | //////////////////// | ||
8557 | |||
8558 | |||
8559 | class LLAdvancedDumpInventory : public view_listener_t | ||
8560 | { | ||
8561 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8562 | { | ||
8563 | dump_inventory(NULL); | ||
8564 | return true; | ||
8565 | } | ||
8566 | }; | ||
8567 | |||
8568 | |||
8569 | |||
8570 | /////////////////////// | ||
8571 | // DUMP FOCUS HOLDER // | ||
8572 | /////////////////////// | ||
8573 | |||
8574 | |||
8575 | class LLAdvancedDumpFocusHolder : public view_listener_t | ||
8576 | { | ||
8577 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8578 | { | ||
8579 | handle_dump_focus(NULL); | ||
8580 | return true; | ||
8581 | } | ||
8582 | }; | ||
8583 | |||
8584 | |||
8585 | |||
8586 | //////////////////////////////// | ||
8587 | // PRINT SELECTED OBJECT INFO // | ||
8588 | //////////////////////////////// | ||
8589 | |||
8590 | |||
8591 | class LLAdvancedPrintSelectedObjectInfo : public view_listener_t | ||
8592 | { | ||
8593 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8594 | { | ||
8595 | print_object_info(NULL); | ||
8596 | return true; | ||
8597 | } | ||
8598 | }; | ||
8599 | |||
8600 | |||
8601 | |||
8602 | ////////////////////// | ||
8603 | // PRINT AGENT INFO // | ||
8604 | ////////////////////// | ||
8605 | |||
8606 | |||
8607 | class LLAdvancedPrintAgentInfo : public view_listener_t | ||
8608 | { | ||
8609 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8610 | { | ||
8611 | print_agent_nvpairs(NULL); | ||
8612 | return true; | ||
8613 | } | ||
8614 | }; | ||
8615 | |||
8616 | |||
8617 | |||
8618 | //////////////////////////////// | ||
8619 | // PRINT TEXTURE MEMORY STATS // | ||
8620 | //////////////////////////////// | ||
8621 | |||
8622 | |||
8623 | class LLAdvancedPrintTextureMemoryStats : public view_listener_t | ||
8624 | { | ||
8625 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8626 | { | ||
8627 | output_statistics(NULL); | ||
8628 | return true; | ||
8629 | } | ||
8630 | }; | ||
8631 | |||
8632 | |||
8633 | |||
8634 | ////////////////////// | ||
8635 | // DEBUG SELECT MGR // | ||
8636 | ////////////////////// | ||
8637 | |||
8638 | |||
8639 | class LLAdvancedToggleDebugSelectMgr : public view_listener_t | ||
8640 | { | ||
8641 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8642 | { | ||
8643 | gDebugSelectMgr = !(gDebugSelectMgr); | ||
8644 | return true; | ||
8645 | } | ||
8646 | }; | ||
8647 | |||
8648 | class LLAdvancedCheckDebugSelectMgr : public view_listener_t | ||
8649 | { | ||
8650 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8651 | { | ||
8652 | bool new_value = gDebugSelectMgr; | ||
8653 | LLString control_name = userdata["control"].asString(); | ||
8654 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8655 | return true; | ||
8656 | } | ||
8657 | }; | ||
8658 | |||
8659 | |||
8660 | |||
8661 | ////////////////// | ||
8662 | // DEBUG CLICKS // | ||
8663 | ////////////////// | ||
8664 | |||
8665 | |||
8666 | class LLAdvancedToggleDebugClicks : public view_listener_t | ||
8667 | { | ||
8668 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8669 | { | ||
8670 | gDebugClicks = !(gDebugClicks); | ||
8671 | return true; | ||
8672 | } | ||
8673 | }; | ||
8674 | |||
8675 | class LLAdvancedCheckDebugClicks : public view_listener_t | ||
8676 | { | ||
8677 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8678 | { | ||
8679 | bool new_value = gDebugClicks; | ||
8680 | LLString control_name = userdata["control"].asString(); | ||
8681 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8682 | return true; | ||
8683 | } | ||
8684 | }; | ||
8685 | |||
8686 | |||
8687 | |||
8688 | ///////////////// | ||
8689 | // DEBUG VIEWS // | ||
8690 | ///////////////// | ||
8691 | |||
8692 | |||
8693 | class LLAdvancedToggleDebugViews : public view_listener_t | ||
8694 | { | ||
8695 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8696 | { | ||
8697 | LLView::sDebugRects = !(LLView::sDebugRects); | ||
8698 | return true; | ||
8699 | } | ||
8700 | }; | ||
8701 | |||
8702 | class LLAdvancedCheckDebugViews : public view_listener_t | ||
8703 | { | ||
8704 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8705 | { | ||
8706 | bool new_value = LLView::sDebugRects; | ||
8707 | LLString control_name = userdata["control"].asString(); | ||
8708 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8709 | return true; | ||
8710 | } | ||
8711 | }; | ||
8712 | |||
8713 | |||
8714 | |||
8715 | /////////////////////// | ||
8716 | // XUI NAME TOOLTIPS // | ||
8717 | /////////////////////// | ||
8718 | |||
8719 | |||
8720 | class LLAdvancedToggleXUINameTooltips : public view_listener_t | ||
8721 | { | ||
8722 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8723 | { | ||
8724 | toggle_show_xui_names(NULL); | ||
8725 | return true; | ||
8726 | } | ||
8727 | }; | ||
8728 | |||
8729 | class LLAdvancedCheckXUINameTooltips : public view_listener_t | ||
8730 | { | ||
8731 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8732 | { | ||
8733 | bool new_value = check_show_xui_names(NULL); | ||
8734 | LLString control_name = userdata["control"].asString(); | ||
8735 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8736 | return true; | ||
8737 | } | ||
8738 | }; | ||
8739 | |||
8740 | |||
8741 | |||
8742 | //////////////////////// | ||
8743 | // DEBUG MOUSE EVENTS // | ||
8744 | //////////////////////// | ||
8745 | |||
8746 | |||
8747 | class LLAdvancedToggleDebugMouseEvents : public view_listener_t | ||
8748 | { | ||
8749 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8750 | { | ||
8751 | LLView::sDebugMouseHandling = !(LLView::sDebugMouseHandling); | ||
8752 | return true; | ||
8753 | } | ||
8754 | }; | ||
8755 | |||
8756 | class LLAdvancedCheckDebugMouseEvents : public view_listener_t | ||
8757 | { | ||
8758 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8759 | { | ||
8760 | bool new_value = LLView::sDebugMouseHandling; | ||
8761 | LLString control_name = userdata["control"].asString(); | ||
8762 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8763 | return true; | ||
8764 | } | ||
8765 | }; | ||
8766 | |||
8767 | |||
8768 | |||
8769 | //////////////// | ||
8770 | // DEBUG KEYS // | ||
8771 | //////////////// | ||
8772 | |||
8773 | |||
8774 | class LLAdvancedToggleDebugKeys : public view_listener_t | ||
8775 | { | ||
8776 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8777 | { | ||
8778 | LLView::sDebugKeys = !(LLView::sDebugKeys); | ||
8779 | return true; | ||
8780 | } | ||
8781 | }; | ||
8782 | |||
8783 | class LLAdvancedCheckDebugKeys : public view_listener_t | ||
8784 | { | ||
8785 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8786 | { | ||
8787 | bool new_value = LLView::sDebugKeys; | ||
8788 | LLString control_name = userdata["control"].asString(); | ||
8789 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8790 | return true; | ||
8791 | } | ||
8792 | }; | ||
8793 | |||
8794 | |||
8795 | |||
8796 | /////////////////////// | ||
8797 | // DEBUG WINDOW PROC // | ||
8798 | /////////////////////// | ||
8799 | |||
8800 | |||
8801 | class LLAdvancedToggleDebugWindowProc : public view_listener_t | ||
8802 | { | ||
8803 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8804 | { | ||
8805 | gDebugWindowProc = !(gDebugWindowProc); | ||
8806 | return true; | ||
8807 | } | ||
8808 | }; | ||
8809 | |||
8810 | class LLAdvancedCheckDebugWindowProc : public view_listener_t | ||
8811 | { | ||
8812 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8813 | { | ||
8814 | bool new_value = gDebugWindowProc; | ||
8815 | LLString control_name = userdata["control"].asString(); | ||
8816 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8817 | return true; | ||
8818 | } | ||
8819 | }; | ||
8820 | |||
8821 | |||
8822 | |||
8823 | //////////////////////////// | ||
8824 | // DEBUG TEXT EDITOR TIPS // | ||
8825 | //////////////////////////// | ||
8826 | |||
8827 | |||
8828 | class LLAdvancedToggleDebugTextEditorTips : public view_listener_t | ||
8829 | { | ||
8830 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8831 | { | ||
8832 | gDebugTextEditorTips = !(gDebugTextEditorTips); | ||
8833 | return true; | ||
8834 | } | ||
8835 | }; | ||
8836 | |||
8837 | class LLAdvancedCheckDebugTextEditorTips : public view_listener_t | ||
8838 | { | ||
8839 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8840 | { | ||
8841 | bool new_value = gDebugTextEditorTips; | ||
8842 | LLString control_name = userdata["control"].asString(); | ||
8843 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8844 | return true; | ||
8845 | } | ||
8846 | }; | ||
8847 | |||
8848 | |||
8849 | |||
8850 | /////////////////////// | ||
8851 | // SHOW FLOATER TEST // | ||
8852 | /////////////////////// | ||
8853 | |||
8854 | |||
8855 | class LLAdvancedShowFloaterTest : public view_listener_t | ||
8856 | { | ||
8857 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8858 | { | ||
8859 | LLFloaterTest::show(NULL); | ||
8860 | return true; | ||
8861 | } | ||
8862 | }; | ||
8863 | |||
8864 | |||
8865 | |||
8866 | ///////////////////////// | ||
8867 | // EXPORT MENUS TO XML // | ||
8868 | ///////////////////////// | ||
8869 | |||
8870 | |||
8871 | class LLAdvancedExportMenusToXML : public view_listener_t | ||
8872 | { | ||
8873 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8874 | { | ||
8875 | handle_export_menus_to_xml(NULL); | ||
8876 | return true; | ||
8877 | } | ||
8878 | }; | ||
8879 | |||
8880 | |||
8881 | |||
8882 | ///////////// | ||
8883 | // EDIT UI // | ||
8884 | ///////////// | ||
8885 | |||
8886 | |||
8887 | class LLAdvancedEditUI : public view_listener_t | ||
8888 | { | ||
8889 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8890 | { | ||
8891 | LLFloaterEditUI::show(NULL); | ||
8892 | return true; | ||
8893 | } | ||
8894 | }; | ||
8895 | |||
8896 | |||
8897 | |||
8898 | ////////////////////// | ||
8899 | // LOAD UI FROM XML // | ||
8900 | ////////////////////// | ||
8901 | |||
8902 | |||
8903 | class LLAdvancedLoadUIFromXML : public view_listener_t | ||
8904 | { | ||
8905 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8906 | { | ||
8907 | handle_load_from_xml(NULL); | ||
8908 | return true; | ||
8909 | } | ||
8910 | }; | ||
8911 | |||
8912 | |||
8913 | |||
8914 | //////////////////// | ||
8915 | // SAVE UI TO XML // | ||
8916 | //////////////////// | ||
8917 | |||
8918 | |||
8919 | class LLAdvancedSaveUIToXML : public view_listener_t | ||
8920 | { | ||
8921 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8922 | { | ||
8923 | handle_save_to_xml(NULL); | ||
8924 | return true; | ||
8925 | } | ||
8926 | }; | ||
8927 | |||
8928 | |||
8929 | |||
8930 | /////////////// | ||
8931 | // XUI NAMES // | ||
8932 | /////////////// | ||
8933 | |||
8934 | |||
8935 | class LLAdvancedToggleXUINames : public view_listener_t | ||
8936 | { | ||
8937 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8938 | { | ||
8939 | toggle_show_xui_names(NULL); | ||
8940 | return true; | ||
8941 | } | ||
8942 | }; | ||
8943 | |||
8944 | class LLAdvancedCheckXUINames : public view_listener_t | ||
8945 | { | ||
8946 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8947 | { | ||
8948 | bool new_value = check_show_xui_names(NULL); | ||
8949 | LLString control_name = userdata["control"].asString(); | ||
8950 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8951 | return true; | ||
8952 | } | ||
8953 | }; | ||
8954 | |||
8955 | |||
8956 | |||
8957 | //////////////////////// | ||
8958 | // GRAB BAKED TEXTURE // | ||
8959 | //////////////////////// | ||
8960 | |||
8961 | |||
8962 | class LLAdvancedGrabBakedTexture : public view_listener_t | ||
8963 | { | ||
8964 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8965 | { | ||
8966 | LLString texture_type = userdata.asString(); | ||
8967 | if ("eyes" == texture_type) | ||
8968 | { | ||
8969 | handle_grab_texture( (void*)LLVOAvatar::TEX_EYES_BAKED ); | ||
8970 | } | ||
8971 | else if ("head" == texture_type) | ||
8972 | { | ||
8973 | handle_grab_texture( (void*)LLVOAvatar::TEX_HEAD_BAKED ); | ||
8974 | } | ||
8975 | else if ("upper" == texture_type) | ||
8976 | { | ||
8977 | handle_grab_texture( (void*)LLVOAvatar::TEX_UPPER_BAKED ); | ||
8978 | } | ||
8979 | else if ("lower" == texture_type) | ||
8980 | { | ||
8981 | handle_grab_texture( (void*)LLVOAvatar::TEX_SKIRT_BAKED ); | ||
8982 | } | ||
8983 | else if ("skirt" == texture_type) | ||
8984 | { | ||
8985 | handle_grab_texture( (void*)LLVOAvatar::TEX_SKIRT_BAKED ); | ||
8986 | } | ||
8987 | |||
8988 | return true; | ||
8989 | } | ||
8990 | }; | ||
8991 | |||
8992 | class LLAdvancedEnableGrabBakedTexture : public view_listener_t | ||
8993 | { | ||
8994 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8995 | { | ||
8996 | LLString texture_type = userdata["data"].asString(); | ||
8997 | bool new_value = false; | ||
8998 | |||
8999 | if ("iris" == texture_type) | ||
9000 | { | ||
9001 | new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_EYES_BAKED ); | ||
9002 | } | ||
9003 | else if ("head" == texture_type) | ||
9004 | { | ||
9005 | new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_HEAD_BAKED ); | ||
9006 | } | ||
9007 | else if ("upper" == texture_type) | ||
9008 | { | ||
9009 | new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_UPPER_BAKED ); | ||
9010 | } | ||
9011 | else if ("lower" == texture_type) | ||
9012 | { | ||
9013 | new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_LOWER_BAKED ); | ||
9014 | } | ||
9015 | else if ("skirt" == texture_type) | ||
9016 | { | ||
9017 | new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_SKIRT_BAKED ); | ||
9018 | } | ||
9019 | |||
9020 | LLString control_name = userdata["control"].asString(); | ||
9021 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9022 | return true; | ||
9023 | } | ||
9024 | }; | ||
9025 | |||
9026 | |||
9027 | |||
9028 | ////////////////////// | ||
9029 | // ALLOW IDLE / AFK // | ||
9030 | ////////////////////// | ||
9031 | |||
9032 | |||
9033 | class LLAdvancedToggleAllowIdleAFK : public view_listener_t | ||
9034 | { | ||
9035 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9036 | { | ||
9037 | gAllowIdleAFK = !(gAllowIdleAFK); | ||
9038 | return true; | ||
9039 | } | ||
9040 | }; | ||
9041 | |||
9042 | class LLAdvancedCheckAllowIdleAFK : public view_listener_t | ||
9043 | { | ||
9044 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9045 | { | ||
9046 | bool new_value = gAllowIdleAFK; | ||
9047 | LLString control_name = userdata["control"].asString(); | ||
9048 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9049 | return true; | ||
9050 | } | ||
9051 | }; | ||
9052 | |||
9053 | |||
9054 | |||
9055 | /////////////////////// | ||
9056 | // APPEARANCE TO XML // | ||
9057 | /////////////////////// | ||
9058 | |||
9059 | |||
9060 | class LLAdvancedAppearanceToXML : public view_listener_t | ||
9061 | { | ||
9062 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9063 | { | ||
9064 | LLVOAvatar::dumpArchetypeXML(NULL); | ||
9065 | return true; | ||
9066 | } | ||
9067 | }; | ||
9068 | |||
9069 | |||
9070 | |||
9071 | /////////////////////////////// | ||
9072 | // TOGGLE CHARACTER GEOMETRY // | ||
9073 | /////////////////////////////// | ||
9074 | |||
9075 | |||
9076 | class LLAdvancedToggleCharacterGeometry : public view_listener_t | ||
9077 | { | ||
9078 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9079 | { | ||
9080 | handle_god_request_avatar_geometry(NULL); | ||
9081 | return true; | ||
9082 | } | ||
9083 | }; | ||
9084 | |||
9085 | class LLAdvancedEnableCharacterGeometry : public view_listener_t | ||
9086 | { | ||
9087 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9088 | { | ||
9089 | enable_god_customer_service(NULL); | ||
9090 | return true; | ||
9091 | } | ||
9092 | }; | ||
9093 | |||
9094 | |||
9095 | |||
9096 | ///////////////////////////// | ||
9097 | // TEST MALE / TEST FEMALE // | ||
9098 | ///////////////////////////// | ||
9099 | |||
9100 | |||
9101 | class LLAdvancedTestMale : public view_listener_t | ||
9102 | { | ||
9103 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9104 | { | ||
9105 | handle_test_male(NULL); | ||
9106 | return true; | ||
9107 | } | ||
9108 | }; | ||
9109 | |||
9110 | |||
9111 | class LLAdvancedTestFemale : public view_listener_t | ||
9112 | { | ||
9113 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9114 | { | ||
9115 | handle_test_female(NULL); | ||
9116 | return true; | ||
9117 | } | ||
9118 | }; | ||
9119 | |||
9120 | |||
9121 | |||
9122 | /////////////// | ||
9123 | // TOGGLE PG // | ||
9124 | /////////////// | ||
9125 | |||
9126 | |||
9127 | class LLAdvancedTogglePG : public view_listener_t | ||
9128 | { | ||
9129 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9130 | { | ||
9131 | handle_toggle_pg(NULL); | ||
9132 | return true; | ||
9133 | } | ||
9134 | }; | ||
9135 | |||
9136 | |||
9137 | |||
9138 | ///////////////////////// | ||
9139 | // ALLOW SELECT AVATAR // | ||
9140 | ///////////////////////// | ||
9141 | |||
9142 | |||
9143 | class LLAdvancedToggleAllowSelectAvatar : public view_listener_t | ||
9144 | { | ||
9145 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9146 | { | ||
9147 | gAllowSelectAvatar = !(gAllowSelectAvatar); | ||
9148 | return true; | ||
9149 | } | ||
9150 | }; | ||
9151 | |||
9152 | class LLAdvancedCheckAllowSelectAvatar : public view_listener_t | ||
9153 | { | ||
9154 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9155 | { | ||
9156 | bool new_value = gAllowSelectAvatar; | ||
9157 | LLString control_name = userdata["control"].asString(); | ||
9158 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9159 | return true; | ||
9160 | } | ||
9161 | }; | ||
9162 | |||
9163 | |||
9164 | |||
9165 | //////////////////////////// | ||
9166 | // ALLOW TAP-TAP-HOLD RUN // | ||
9167 | //////////////////////////// | ||
9168 | |||
9169 | |||
9170 | class LLAdvancedToggleAllowTapTapHoldRun : public view_listener_t | ||
9171 | { | ||
9172 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9173 | { | ||
9174 | gAllowTapTapHoldRun = !(gAllowTapTapHoldRun); | ||
9175 | return true; | ||
9176 | } | ||
9177 | }; | ||
9178 | |||
9179 | class LLAdvancedCheckAllowTapTapHoldRun : public view_listener_t | ||
9180 | { | ||
9181 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9182 | { | ||
9183 | bool new_value = gAllowTapTapHoldRun; | ||
9184 | LLString control_name = userdata["control"].asString(); | ||
9185 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9186 | return true; | ||
9187 | } | ||
9188 | }; | ||
9189 | |||
9190 | |||
9191 | |||
9192 | ///////////////////////////// | ||
9193 | // FORCE PARAMS TO DEFAULT // | ||
9194 | ///////////////////////////// | ||
9195 | |||
9196 | |||
9197 | class LLAdvancedForceParamsToDefault : public view_listener_t | ||
9198 | { | ||
9199 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9200 | { | ||
9201 | LLAgent::clearVisualParams(NULL); | ||
9202 | return true; | ||
9203 | } | ||
9204 | }; | ||
9205 | |||
9206 | |||
9207 | |||
9208 | ////////////////////////// | ||
9209 | // RELOAD VERTEX SHADER // | ||
9210 | ////////////////////////// | ||
9211 | |||
9212 | |||
9213 | class LLAdvancedReloadVertexShader : public view_listener_t | ||
9214 | { | ||
9215 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9216 | { | ||
9217 | reload_vertex_shader(NULL); | ||
9218 | return true; | ||
9219 | } | ||
9220 | }; | ||
9221 | |||
9222 | |||
9223 | |||
9224 | //////////////////// | ||
9225 | // ANIMATION INFO // | ||
9226 | //////////////////// | ||
9227 | |||
9228 | |||
9229 | class LLAdvancedToggleAnimationInfo : public view_listener_t | ||
9230 | { | ||
9231 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9232 | { | ||
9233 | LLVOAvatar::sShowAnimationDebug = !(LLVOAvatar::sShowAnimationDebug); | ||
9234 | return true; | ||
9235 | } | ||
9236 | }; | ||
9237 | |||
9238 | class LLAdvancedCheckAnimationInfo : public view_listener_t | ||
9239 | { | ||
9240 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9241 | { | ||
9242 | bool new_value = LLVOAvatar::sShowAnimationDebug; | ||
9243 | LLString control_name = userdata["control"].asString(); | ||
9244 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9245 | return true; | ||
9246 | } | ||
9247 | }; | ||
9248 | |||
9249 | |||
9250 | |||
9251 | //////////////////////////// | ||
9252 | // SLOW MOTION ANIMATIONS // | ||
9253 | //////////////////////////// | ||
9254 | |||
9255 | |||
9256 | class LLAdvancedToggleSlowMotionAnimations : public view_listener_t | ||
9257 | { | ||
9258 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9259 | { | ||
9260 | slow_mo_animations(NULL); | ||
9261 | return true; | ||
9262 | } | ||
9263 | }; | ||
9264 | |||
9265 | // *TODO: Add a corresponding "Check" event for SlowMotionAnimations, | ||
9266 | // so that it can become a menu_item_check with the "X" indicator. | ||
9267 | // See indra/newview/skins/xui/en_us/menu_viewer.xml | ||
9268 | |||
9269 | |||
9270 | |||
9271 | ////////////////// | ||
9272 | // SHOW LOOK AT // | ||
9273 | ////////////////// | ||
9274 | |||
9275 | |||
9276 | class LLAdvancedToggleShowLookAt : public view_listener_t | ||
9277 | { | ||
9278 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9279 | { | ||
9280 | LLHUDEffectLookAt::sDebugLookAt = !(LLHUDEffectLookAt::sDebugLookAt); | ||
9281 | return true; | ||
9282 | } | ||
9283 | }; | ||
9284 | |||
9285 | class LLAdvancedCheckShowLookAt : public view_listener_t | ||
9286 | { | ||
9287 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9288 | { | ||
9289 | bool new_value = LLHUDEffectLookAt::sDebugLookAt; | ||
9290 | LLString control_name = userdata["control"].asString(); | ||
9291 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9292 | return true; | ||
9293 | } | ||
9294 | }; | ||
9295 | |||
9296 | |||
9297 | |||
9298 | /////////////////// | ||
9299 | // SHOW POINT AT // | ||
9300 | /////////////////// | ||
9301 | |||
9302 | |||
9303 | class LLAdvancedToggleShowPointAt : public view_listener_t | ||
9304 | { | ||
9305 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9306 | { | ||
9307 | LLHUDEffectPointAt::sDebugPointAt = !(LLHUDEffectPointAt::sDebugPointAt); | ||
9308 | return true; | ||
9309 | } | ||
9310 | }; | ||
9311 | |||
9312 | class LLAdvancedCheckShowPointAt : public view_listener_t | ||
9313 | { | ||
9314 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9315 | { | ||
9316 | bool new_value = LLHUDEffectPointAt::sDebugPointAt; | ||
9317 | LLString control_name = userdata["control"].asString(); | ||
9318 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9319 | return true; | ||
9320 | } | ||
9321 | }; | ||
9322 | |||
9323 | |||
9324 | |||
9325 | ///////////////////////// | ||
9326 | // DEBUG JOINT UPDATES // | ||
9327 | ///////////////////////// | ||
9328 | |||
9329 | |||
9330 | class LLAdvancedToggleDebugJointUpdates : public view_listener_t | ||
9331 | { | ||
9332 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9333 | { | ||
9334 | LLVOAvatar::sJointDebug = !(LLVOAvatar::sJointDebug); | ||
9335 | return true; | ||
9336 | } | ||
9337 | }; | ||
9338 | |||
9339 | class LLAdvancedCheckDebugJointUpdates : public view_listener_t | ||
9340 | { | ||
9341 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9342 | { | ||
9343 | bool new_value = LLVOAvatar::sJointDebug; | ||
9344 | LLString control_name = userdata["control"].asString(); | ||
9345 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9346 | return true; | ||
9347 | } | ||
9348 | }; | ||
9349 | |||
9350 | |||
9351 | |||
9352 | ///////////////// | ||
9353 | // DISABLE LOD // | ||
9354 | ///////////////// | ||
9355 | |||
9356 | |||
9357 | class LLAdvancedToggleDisableLOD : public view_listener_t | ||
9358 | { | ||
9359 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9360 | { | ||
9361 | LLViewerJoint::sDisableLOD = !(LLViewerJoint::sDisableLOD); | ||
9362 | return true; | ||
9363 | } | ||
9364 | }; | ||
9365 | |||
9366 | class LLAdvancedCheckDisableLOD : public view_listener_t | ||
9367 | { | ||
9368 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9369 | { | ||
9370 | bool new_value = LLViewerJoint::sDisableLOD; | ||
9371 | LLString control_name = userdata["control"].asString(); | ||
9372 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9373 | return true; | ||
9374 | } | ||
9375 | }; | ||
9376 | |||
9377 | |||
9378 | |||
9379 | ///////////////////////// | ||
9380 | // DEBUG CHARACTER VIS // | ||
9381 | ///////////////////////// | ||
9382 | |||
9383 | |||
9384 | class LLAdvancedToggleDebugCharacterVis : public view_listener_t | ||
9385 | { | ||
9386 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9387 | { | ||
9388 | LLVOAvatar::sDebugInvisible = !(LLVOAvatar::sDebugInvisible); | ||
9389 | return true; | ||
9390 | } | ||
9391 | }; | ||
9392 | |||
9393 | class LLAdvancedCheckDebugCharacterVis : public view_listener_t | ||
9394 | { | ||
9395 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9396 | { | ||
9397 | bool new_value = LLVOAvatar::sDebugInvisible; | ||
9398 | LLString control_name = userdata["control"].asString(); | ||
9399 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9400 | return true; | ||
9401 | } | ||
9402 | }; | ||
9403 | |||
9404 | |||
9405 | |||
9406 | ////////////////////////// | ||
9407 | // SHOW COLLISION PLANE // | ||
9408 | ////////////////////////// | ||
9409 | |||
9410 | /*************************** | ||
9411 | * | ||
9412 | * Disabled. See DEV-14477 | ||
9413 | * | ||
9414 | *************************** | ||
9415 | |||
9416 | class LLAdvancedToggleShowCollisionPlane : public view_listener_t | ||
9417 | { | ||
9418 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9419 | { | ||
9420 | LLVOAvatar::sShowFootPlane = !(LLVOAvatar::sShowFootPlane); | ||
9421 | return true; | ||
9422 | } | ||
9423 | }; | ||
9424 | |||
9425 | class LLAdvancedCheckShowCollisionPlane : public view_listener_t | ||
9426 | { | ||
9427 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9428 | { | ||
9429 | bool new_value = LLVOAvatar::sShowFootPlane; | ||
9430 | LLString control_name = userdata["control"].asString(); | ||
9431 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9432 | return true; | ||
9433 | } | ||
9434 | }; | ||
9435 | |||
9436 | ***************************/ | ||
9437 | |||
9438 | |||
9439 | ///////////////////////////// | ||
9440 | // SHOW COLLISION SKELETON // | ||
9441 | ///////////////////////////// | ||
9442 | |||
9443 | |||
9444 | class LLAdvancedToggleShowCollisionSkeleton : public view_listener_t | ||
9445 | { | ||
9446 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9447 | { | ||
9448 | LLVOAvatar::sShowCollisionVolumes = !(LLVOAvatar::sShowCollisionVolumes); | ||
9449 | return true; | ||
9450 | } | ||
9451 | }; | ||
9452 | |||
9453 | class LLAdvancedCheckShowCollisionSkeleton : public view_listener_t | ||
9454 | { | ||
9455 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9456 | { | ||
9457 | bool new_value = LLVOAvatar::sShowCollisionVolumes; | ||
9458 | LLString control_name = userdata["control"].asString(); | ||
9459 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9460 | return true; | ||
9461 | } | ||
9462 | }; | ||
9463 | |||
9464 | |||
9465 | |||
9466 | ////////////////////////// | ||
9467 | // DISPLAY AGENT TARGET // | ||
9468 | ////////////////////////// | ||
9469 | |||
9470 | |||
9471 | class LLAdvancedToggleDisplayAgentTarget : public view_listener_t | ||
9472 | { | ||
9473 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9474 | { | ||
9475 | LLAgent::sDebugDisplayTarget = !(LLAgent::sDebugDisplayTarget); | ||
9476 | return true; | ||
9477 | } | ||
9478 | }; | ||
9479 | |||
9480 | class LLAdvancedCheckDisplayAgentTarget : public view_listener_t | ||
9481 | { | ||
9482 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9483 | { | ||
9484 | bool new_value = LLAgent::sDebugDisplayTarget; | ||
9485 | LLString control_name = userdata["control"].asString(); | ||
9486 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9487 | return true; | ||
9488 | } | ||
9489 | }; | ||
9490 | |||
9491 | |||
9492 | |||
9493 | /////////////////////////// | ||
9494 | // DEBUG AVATAR ROTATION // | ||
9495 | /////////////////////////// | ||
9496 | |||
9497 | |||
9498 | class LLAdvancedToggleDebugAvatarRotation : public view_listener_t | ||
9499 | { | ||
9500 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9501 | { | ||
9502 | gDebugAvatarRotation = !(gDebugAvatarRotation); | ||
9503 | return true; | ||
9504 | } | ||
9505 | }; | ||
9506 | |||
9507 | class LLAdvancedCheckDebugAvatarRotation : public view_listener_t | ||
9508 | { | ||
9509 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9510 | { | ||
9511 | bool new_value = gDebugAvatarRotation; | ||
9512 | LLString control_name = userdata["control"].asString(); | ||
9513 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9514 | return true; | ||
9515 | } | ||
9516 | }; | ||
9517 | |||
9518 | |||
9519 | |||
9520 | ////////////////////// | ||
9521 | // DUMP ATTACHMENTS // | ||
9522 | ////////////////////// | ||
9523 | |||
9524 | |||
9525 | class LLAdvancedDumpAttachments : public view_listener_t | ||
9526 | { | ||
9527 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9528 | { | ||
9529 | handle_dump_attachments(NULL); | ||
9530 | return true; | ||
9531 | } | ||
9532 | }; | ||
9533 | |||
9534 | |||
9535 | |||
9536 | ///////////////////// | ||
9537 | // REBAKE TEXTURES // | ||
9538 | ///////////////////// | ||
9539 | |||
9540 | |||
9541 | class LLAdvancedRebakeTextures : public view_listener_t | ||
9542 | { | ||
9543 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9544 | { | ||
9545 | handle_rebake_textures(NULL); | ||
9546 | return true; | ||
9547 | } | ||
9548 | }; | ||
9549 | |||
9550 | |||
9551 | |||
9552 | /////////////////////////// | ||
9553 | // DEBUG AVATAR TEXTURES // | ||
9554 | /////////////////////////// | ||
9555 | |||
9556 | |||
9557 | class LLAdvancedDebugAvatarTextures : public view_listener_t | ||
9558 | { | ||
9559 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9560 | { | ||
9561 | handle_debug_avatar_textures(NULL); | ||
9562 | return true; | ||
9563 | } | ||
9564 | }; | ||
9565 | |||
9566 | |||
9567 | |||
9568 | //////////////////////////////// | ||
9569 | // DUMP AVATAR LOCAL TEXTURES // | ||
9570 | //////////////////////////////// | ||
9571 | |||
9572 | |||
9573 | class LLAdvancedDumpAvatarLocalTextures : public view_listener_t | ||
9574 | { | ||
9575 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9576 | { | ||
9577 | handle_dump_avatar_local_textures(NULL); | ||
9578 | return true; | ||
9579 | } | ||
9580 | }; | ||
9581 | |||
9582 | |||
9583 | |||
9584 | ///////////////// | ||
9585 | // MESSAGE LOG // | ||
9586 | ///////////////// | ||
9587 | |||
9588 | |||
9589 | class LLAdvancedEnableMessageLog : public view_listener_t | ||
9590 | { | ||
9591 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9592 | { | ||
9593 | handle_viewer_enable_message_log(NULL); | ||
9594 | return true; | ||
9595 | } | ||
9596 | }; | ||
9597 | |||
9598 | class LLAdvancedDisableMessageLog : public view_listener_t | ||
9599 | { | ||
9600 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9601 | { | ||
9602 | handle_viewer_disable_message_log(NULL); | ||
9603 | return true; | ||
9604 | } | ||
9605 | }; | ||
9606 | |||
9607 | |||
9608 | |||
9609 | ///////////////// | ||
9610 | // DROP PACKET // | ||
9611 | ///////////////// | ||
9612 | |||
9613 | |||
9614 | class LLAdvancedDropPacket : public view_listener_t | ||
9615 | { | ||
9616 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9617 | { | ||
9618 | drop_packet(NULL); | ||
9619 | return true; | ||
9620 | } | ||
9621 | }; | ||
9622 | |||
9623 | |||
9624 | |||
9625 | ///////////////////////// | ||
9626 | // FRAME STATS LOGGING // | ||
9627 | ///////////////////////// | ||
9628 | |||
9629 | |||
9630 | class LLAdvancedFrameStatsLogging : public view_listener_t | ||
9631 | { | ||
9632 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9633 | { | ||
9634 | LLString command = userdata.asString(); | ||
9635 | if ("start logging" == command) | ||
9636 | { | ||
9637 | LLFrameStats::startLogging(NULL); | ||
9638 | } | ||
9639 | else if ("stop logging" == command) | ||
9640 | { | ||
9641 | LLFrameStats::stopLogging(NULL); | ||
9642 | } | ||
9643 | else if ("timed logging 10" == command) | ||
9644 | { | ||
9645 | LLFrameStats::timedLogging10(NULL); | ||
9646 | } | ||
9647 | else if ("timed logging 30" == command) | ||
9648 | { | ||
9649 | LLFrameStats::timedLogging30(NULL); | ||
9650 | } | ||
9651 | else if ("timed logging 60" == command) | ||
9652 | { | ||
9653 | LLFrameStats::timedLogging60(NULL); | ||
9654 | } | ||
9655 | |||
9656 | return true; | ||
9657 | } | ||
9658 | }; | ||
9659 | |||
9660 | |||
9661 | |||
9662 | ///////////////// | ||
9663 | // AGENT PILOT // | ||
9664 | ///////////////// | ||
9665 | |||
9666 | |||
9667 | class LLAdvancedAgentPilot : public view_listener_t | ||
9668 | { | ||
9669 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9670 | { | ||
9671 | LLString command = userdata.asString(); | ||
9672 | if ("start playback" == command) | ||
9673 | { | ||
9674 | LLAgentPilot::startPlayback(NULL); | ||
9675 | } | ||
9676 | else if ("stop playback" == command) | ||
9677 | { | ||
9678 | LLAgentPilot::stopPlayback(NULL); | ||
9679 | } | ||
9680 | else if ("start record" == command) | ||
9681 | { | ||
9682 | LLAgentPilot::startRecord(NULL); | ||
9683 | } | ||
9684 | else if ("stop record" == command) | ||
9685 | { | ||
9686 | LLAgentPilot::saveRecord(NULL); | ||
9687 | } | ||
9688 | |||
9689 | return true; | ||
9690 | } | ||
9691 | }; | ||
9692 | |||
9693 | |||
9694 | |||
9695 | ////////////////////// | ||
9696 | // AGENT PILOT LOOP // | ||
9697 | ////////////////////// | ||
9698 | |||
9699 | |||
9700 | class LLAdvancedToggleAgentPilotLoop : public view_listener_t | ||
9701 | { | ||
9702 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9703 | { | ||
9704 | LLAgentPilot::sLoop = !(LLAgentPilot::sLoop); | ||
9705 | return true; | ||
9706 | } | ||
9707 | }; | ||
9708 | |||
9709 | class LLAdvancedCheckAgentPilotLoop : public view_listener_t | ||
9710 | { | ||
9711 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9712 | { | ||
9713 | bool new_value = LLAgentPilot::sLoop; | ||
9714 | LLString control_name = userdata["control"].asString(); | ||
9715 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9716 | return true; | ||
9717 | } | ||
9718 | }; | ||
9719 | |||
9720 | |||
9721 | |||
9722 | ///////////////////////// | ||
9723 | // SHOW OBJECT UPDATES // | ||
9724 | ///////////////////////// | ||
9725 | |||
9726 | |||
9727 | class LLAdvancedToggleShowObjectUpdates : public view_listener_t | ||
9728 | { | ||
9729 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9730 | { | ||
9731 | gShowObjectUpdates = !(gShowObjectUpdates); | ||
9732 | return true; | ||
9733 | } | ||
9734 | }; | ||
9735 | |||
9736 | class LLAdvancedCheckShowObjectUpdates : public view_listener_t | ||
9737 | { | ||
9738 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9739 | { | ||
9740 | bool new_value = gShowObjectUpdates; | ||
9741 | LLString control_name = userdata["control"].asString(); | ||
9742 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9743 | return true; | ||
9744 | } | ||
9745 | }; | ||
9746 | |||
9747 | |||
9748 | |||
9749 | //////////////////// | ||
9750 | // COMPRESS IMAGE // | ||
9751 | //////////////////// | ||
9752 | |||
9753 | |||
9754 | class LLAdvancedCompressImage : public view_listener_t | ||
9755 | { | ||
9756 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9757 | { | ||
9758 | handle_compress_image(NULL); | ||
9759 | return true; | ||
9760 | } | ||
9761 | }; | ||
9762 | |||
9763 | |||
9764 | |||
9765 | ////////////////////// | ||
9766 | // CLOTHING FLOATER // | ||
9767 | ////////////////////// | ||
9768 | |||
9769 | |||
9770 | class LLAdvancedToggleClothingFloater : public view_listener_t | ||
9771 | { | ||
9772 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9773 | { | ||
9774 | handle_clothing(NULL); | ||
9775 | return true; | ||
9776 | } | ||
9777 | }; | ||
9778 | |||
9779 | // There is no LLAdvancedCheckClothingFloater. | ||
9780 | |||
9781 | |||
9782 | |||
9783 | ///////////////////////// | ||
9784 | // SHOW DEBUG SETTINGS // | ||
9785 | ///////////////////////// | ||
9786 | |||
9787 | |||
9788 | class LLAdvancedShowDebugSettings : public view_listener_t | ||
9789 | { | ||
9790 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9791 | { | ||
9792 | LLFloaterSettingsDebug::show(NULL); | ||
9793 | return true; | ||
9794 | } | ||
9795 | }; | ||
9796 | |||
9797 | |||
9798 | |||
9799 | //////////////////////// | ||
9800 | // VIEW ADMIN OPTIONS // | ||
9801 | //////////////////////// | ||
9802 | |||
9803 | |||
9804 | class LLAdvancedToggleViewAdminOptions : public view_listener_t | ||
9805 | { | ||
9806 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9807 | { | ||
9808 | handle_admin_override_toggle(NULL); | ||
9809 | return true; | ||
9810 | } | ||
9811 | }; | ||
9812 | |||
9813 | class LLAdvancedCheckViewAdminOptions : public view_listener_t | ||
9814 | { | ||
9815 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9816 | { | ||
9817 | bool new_value = check_admin_override(NULL); | ||
9818 | LLString control_name = userdata["control"].asString(); | ||
9819 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9820 | return true; | ||
9821 | } | ||
9822 | }; | ||
9823 | |||
9824 | |||
9825 | |||
9826 | ////////////////// | ||
9827 | // ADMIN STATUS // | ||
9828 | ////////////////// | ||
9829 | |||
9830 | |||
9831 | class LLAdvancedRequestAdminStatus : public view_listener_t | ||
9832 | { | ||
9833 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9834 | { | ||
9835 | handle_god_mode(NULL); | ||
9836 | return true; | ||
9837 | } | ||
9838 | }; | ||
9839 | |||
9840 | class LLAdvancedLeaveAdminStatus : public view_listener_t | ||
9841 | { | ||
9842 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9843 | { | ||
9844 | handle_leave_god_mode(NULL); | ||
9845 | return true; | ||
9846 | } | ||
9847 | }; | ||
9848 | |||
9849 | |||
9850 | |||
7723 | static void addMenu(view_listener_t *menu, const char *name) | 9851 | static void addMenu(view_listener_t *menu, const char *name) |
7724 | { | 9852 | { |
7725 | sMenus.push_back(menu); | 9853 | sMenus.push_back(menu); |
@@ -7827,6 +9955,7 @@ void initialize_menus() | |||
7827 | addMenu(new LLToolsSaveToInventory(), "Tools.SaveToInventory"); | 9955 | addMenu(new LLToolsSaveToInventory(), "Tools.SaveToInventory"); |
7828 | addMenu(new LLToolsSaveToObjectInventory(), "Tools.SaveToObjectInventory"); | 9956 | addMenu(new LLToolsSaveToObjectInventory(), "Tools.SaveToObjectInventory"); |
7829 | addMenu(new LLToolsSelectedScriptAction(), "Tools.SelectedScriptAction"); | 9957 | addMenu(new LLToolsSelectedScriptAction(), "Tools.SelectedScriptAction"); |
9958 | addMenu(new LLToolsSetBulkPerms(), "Tools.SetBulkPerms"); | ||
7830 | 9959 | ||
7831 | addMenu(new LLToolsEnableToolNotPie(), "Tools.EnableToolNotPie"); | 9960 | addMenu(new LLToolsEnableToolNotPie(), "Tools.EnableToolNotPie"); |
7832 | addMenu(new LLToolsEnableLink(), "Tools.EnableLink"); | 9961 | addMenu(new LLToolsEnableLink(), "Tools.EnableLink"); |
@@ -7928,4 +10057,155 @@ void initialize_menus() | |||
7928 | addMenu(new LLSomethingSelected(), "SomethingSelected"); | 10057 | addMenu(new LLSomethingSelected(), "SomethingSelected"); |
7929 | addMenu(new LLSomethingSelectedNoHUD(), "SomethingSelectedNoHUD"); | 10058 | addMenu(new LLSomethingSelectedNoHUD(), "SomethingSelectedNoHUD"); |
7930 | addMenu(new LLEditableSelected(), "EditableSelected"); | 10059 | addMenu(new LLEditableSelected(), "EditableSelected"); |
10060 | |||
10061 | |||
10062 | // Advanced (top level menu) | ||
10063 | addMenu(new LLAdvancedToggleConsole(), "Advanced.ToggleConsole"); | ||
10064 | addMenu(new LLAdvancedCheckConsole(), "Advanced.CheckConsole"); | ||
10065 | addMenu(new LLAdvancedDumpInfoToConsole(), "Advanced.DumpInfoToConsole"); | ||
10066 | addMenu(new LLAdvancedReloadSettingsOverrides(), "Advanced.ReloadSettingsOverrides"); | ||
10067 | |||
10068 | // Advanced > HUD Info | ||
10069 | addMenu(new LLAdvancedToggleHUDInfo(), "Advanced.ToggleHUDInfo"); | ||
10070 | addMenu(new LLAdvancedCheckHUDInfo(), "Advanced.CheckHUDInfo"); | ||
10071 | |||
10072 | addMenu(new LLAdvancedClearGroupCache(), "Advanced.ClearGroupCache"); | ||
10073 | |||
10074 | // Advanced > Render > Types | ||
10075 | addMenu(new LLAdvancedToggleRenderType(), "Advanced.ToggleRenderType"); | ||
10076 | addMenu(new LLAdvancedCheckRenderType(), "Advanced.CheckRenderType"); | ||
10077 | |||
10078 | // Advanced > Render > Features | ||
10079 | addMenu(new LLAdvancedToggleFeature(), "Advanced.ToggleFeature"); | ||
10080 | addMenu(new LLAdvancedCheckFeature(), "Advanced.CheckFeature"); | ||
10081 | |||
10082 | // Advanced > Render > Info Displays | ||
10083 | addMenu(new LLAdvancedToggleInfoDisplay(), "Advanced.ToggleInfoDisplay"); | ||
10084 | addMenu(new LLAdvancedCheckInfoDisplay(), "Advanced.CheckInfoDisplay"); | ||
10085 | addMenu(new LLAdvancedToggleSelectBuffer(), "Advanced.ToggleSelectBuffer"); | ||
10086 | addMenu(new LLAdvancedCheckSelectBuffer(), "Advanced.CheckSelectBuffer"); | ||
10087 | addMenu(new LLAdvancedToggleRandomizeFramerate(), "Advanced.ToggleRandomizeFramerate"); | ||
10088 | addMenu(new LLAdvancedCheckRandomizeFramerate(), "Advanced.CheckRandomizeFramerate"); | ||
10089 | addMenu(new LLAdvancedTogglePeriodicSlowFrame(), "Advanced.TogglePeriodicSlowFrame"); | ||
10090 | addMenu(new LLAdvancedCheckPeriodicSlowFrame(), "Advanced.CheckPeriodicSlowFrame"); | ||
10091 | addMenu(new LLAdvancedToggleFrameTest(), "Advanced.ToggleFrameTest"); | ||
10092 | addMenu(new LLAdvancedCheckFrameTest(), "Advanced.CheckFrameTest"); | ||
10093 | addMenu(new LLAdvancedToggleHideSelectedObjects(), "Advanced.ToggleHideSelectedObjects"); | ||
10094 | addMenu(new LLAdvancedCheckHideSelectedObjects(), "Advanced.CheckHideSelectedObjects"); | ||
10095 | addMenu(new LLAdvancedSelectedTextureInfo(), "Advanced.SelectedTextureInfo"); | ||
10096 | addMenu(new LLAdvancedToggleWireframe(), "Advanced.ToggleWireframe"); | ||
10097 | addMenu(new LLAdvancedCheckWireframe(), "Advanced.CheckWireframe"); | ||
10098 | addMenu(new LLAdvancedToggleDisableTextures(), "Advanced.ToggleDisableTextures"); | ||
10099 | addMenu(new LLAdvancedCheckDisableTextures(), "Advanced.CheckDisableTextures"); | ||
10100 | |||
10101 | // Advanced > World | ||
10102 | addMenu(new LLAdvancedDumpScriptedCamera(), "Advanced.DumpScriptedCamera"); | ||
10103 | addMenu(new LLAdvancedDumpRegionObjectCache(), "Advanced.DumpRegionObjectCache"); | ||
10104 | |||
10105 | // Advanced > UI | ||
10106 | addMenu(new LLAdvancedSLURLTest(), "Advanced.SLURLTest"); | ||
10107 | addMenu(new LLAdvancedToggleEditableUI(), "Advanced.ToggleEditableUI"); | ||
10108 | //addMenu(new LLAdvancedCheckEditableUI(), "Advanced.CheckEditableUI"); | ||
10109 | addMenu(new LLAdvancedToggleAsyncKeystrokes(), "Advanced.ToggleAsyncKeystrokes"); | ||
10110 | addMenu(new LLAdvancedCheckAsyncKeystrokes(), "Advanced.CheckAsyncKeystrokes"); | ||
10111 | addMenu(new LLAdvancedDumpSelectMgr(), "Advanced.DumpSelectMgr"); | ||
10112 | addMenu(new LLAdvancedDumpInventory(), "Advanced.DumpInventory"); | ||
10113 | addMenu(new LLAdvancedDumpFocusHolder(), "Advanced.DumpFocusHolder"); | ||
10114 | addMenu(new LLAdvancedPrintSelectedObjectInfo(), "Advanced.PrintSelectedObjectInfo"); | ||
10115 | addMenu(new LLAdvancedPrintAgentInfo(), "Advanced.PrintAgentInfo"); | ||
10116 | addMenu(new LLAdvancedPrintTextureMemoryStats(), "Advanced.PrintTextureMemoryStats"); | ||
10117 | addMenu(new LLAdvancedToggleDebugSelectMgr(), "Advanced.ToggleDebugSelectMgr"); | ||
10118 | addMenu(new LLAdvancedCheckDebugSelectMgr(), "Advanced.CheckDebugSelectMgr"); | ||
10119 | addMenu(new LLAdvancedToggleDebugClicks(), "Advanced.ToggleDebugClicks"); | ||
10120 | addMenu(new LLAdvancedCheckDebugClicks(), "Advanced.CheckDebugClicks"); | ||
10121 | addMenu(new LLAdvancedCheckDebugViews(), "Advanced.CheckDebugViews"); | ||
10122 | addMenu(new LLAdvancedToggleDebugViews(), "Advanced.ToggleDebugViews"); | ||
10123 | addMenu(new LLAdvancedToggleXUINameTooltips(), "Advanced.ToggleXUINameTooltips"); | ||
10124 | addMenu(new LLAdvancedCheckXUINameTooltips(), "Advanced.CheckXUINameTooltips"); | ||
10125 | addMenu(new LLAdvancedToggleDebugMouseEvents(), "Advanced.ToggleDebugMouseEvents"); | ||
10126 | addMenu(new LLAdvancedCheckDebugMouseEvents(), "Advanced.CheckDebugMouseEvents"); | ||
10127 | addMenu(new LLAdvancedToggleDebugKeys(), "Advanced.ToggleDebugKeys"); | ||
10128 | addMenu(new LLAdvancedCheckDebugKeys(), "Advanced.CheckDebugKeys"); | ||
10129 | addMenu(new LLAdvancedToggleDebugWindowProc(), "Advanced.ToggleDebugWindowProc"); | ||
10130 | addMenu(new LLAdvancedCheckDebugWindowProc(), "Advanced.CheckDebugWindowProc"); | ||
10131 | addMenu(new LLAdvancedToggleDebugTextEditorTips(), "Advanced.ToggleDebugTextEditorTips"); | ||
10132 | addMenu(new LLAdvancedCheckDebugTextEditorTips(), "Advanced.CheckDebugTextEditorTips"); | ||
10133 | |||
10134 | // Advanced > XUI | ||
10135 | addMenu(new LLAdvancedShowFloaterTest(), "Advanced.ShowFloaterTest"); | ||
10136 | addMenu(new LLAdvancedExportMenusToXML(), "Advanced.ExportMenusToXML"); | ||
10137 | addMenu(new LLAdvancedEditUI(), "Advanced.EditUI"); | ||
10138 | addMenu(new LLAdvancedLoadUIFromXML(), "Advanced.LoadUIFromXML"); | ||
10139 | addMenu(new LLAdvancedSaveUIToXML(), "Advanced.SaveUIToXML"); | ||
10140 | addMenu(new LLAdvancedToggleXUINames(), "Advanced.ToggleXUINames"); | ||
10141 | addMenu(new LLAdvancedCheckXUINames(), "Advanced.CheckXUINames"); | ||
10142 | |||
10143 | // Advanced > Character > Grab Baked Texture | ||
10144 | addMenu(new LLAdvancedGrabBakedTexture(), "Advanced.GrabBakedTexture"); | ||
10145 | addMenu(new LLAdvancedEnableGrabBakedTexture(), "Advanced.EnableGrabBakedTexture"); | ||
10146 | |||
10147 | // Advanced > Character > Character Tests | ||
10148 | addMenu(new LLAdvancedToggleAllowIdleAFK(), "Advanced.ToggleAllowIdleAFK"); | ||
10149 | addMenu(new LLAdvancedCheckAllowIdleAFK(), "Advanced.CheckAllowIdleAFK"); | ||
10150 | addMenu(new LLAdvancedAppearanceToXML(), "Advanced.AppearanceToXML"); | ||
10151 | addMenu(new LLAdvancedToggleCharacterGeometry(), "Advanced.ToggleCharacterGeometry"); | ||
10152 | addMenu(new LLAdvancedTestMale(), "Advanced.TestMale"); | ||
10153 | addMenu(new LLAdvancedTestFemale(), "Advanced.TestFemale"); | ||
10154 | addMenu(new LLAdvancedTogglePG(), "Advanced.TogglePG"); | ||
10155 | addMenu(new LLAdvancedToggleAllowSelectAvatar(), "Advanced.ToggleAllowSelectAvatar"); | ||
10156 | addMenu(new LLAdvancedCheckAllowSelectAvatar(), "Advanced.CheckAllowSelectAvatar"); | ||
10157 | |||
10158 | // Advanced > Character (toplevel) | ||
10159 | addMenu(new LLAdvancedToggleAllowTapTapHoldRun(), "Advanced.ToggleAllowTapTapHoldRun"); | ||
10160 | addMenu(new LLAdvancedCheckAllowTapTapHoldRun(), "Advanced.CheckAllowTapTapHoldRun"); | ||
10161 | addMenu(new LLAdvancedForceParamsToDefault(), "Advanced.ForceParamsToDefault"); | ||
10162 | addMenu(new LLAdvancedReloadVertexShader(), "Advanced.ReloadVertexShader"); | ||
10163 | addMenu(new LLAdvancedToggleAnimationInfo(), "Advanced.ToggleAnimationInfo"); | ||
10164 | addMenu(new LLAdvancedCheckAnimationInfo(), "Advanced.CheckAnimationInfo"); | ||
10165 | addMenu(new LLAdvancedToggleSlowMotionAnimations(), "Advanced.ToggleSlowMotionAnimations"); | ||
10166 | //addMenu(new LLAdvancedCheckSlowMotionAnimations(), "Advanced.CheckSlowMotionAnimations"); | ||
10167 | addMenu(new LLAdvancedToggleShowLookAt(), "Advanced.ToggleShowLookAt"); | ||
10168 | addMenu(new LLAdvancedCheckShowLookAt(), "Advanced.CheckShowLookAt"); | ||
10169 | addMenu(new LLAdvancedToggleShowPointAt(), "Advanced.ToggleShowPointAt"); | ||
10170 | addMenu(new LLAdvancedCheckShowPointAt(), "Advanced.CheckShowPointAt"); | ||
10171 | addMenu(new LLAdvancedToggleDebugJointUpdates(), "Advanced.ToggleDebugJointUpdates"); | ||
10172 | addMenu(new LLAdvancedCheckDebugJointUpdates(), "Advanced.CheckDebugJointUpdates"); | ||
10173 | addMenu(new LLAdvancedToggleDisableLOD(), "Advanced.ToggleDisableLOD"); | ||
10174 | addMenu(new LLAdvancedCheckDisableLOD(), "Advanced.CheckDisableLOD"); | ||
10175 | addMenu(new LLAdvancedToggleDebugCharacterVis(), "Advanced.ToggleDebugCharacterVis"); | ||
10176 | addMenu(new LLAdvancedCheckDebugCharacterVis(), "Advanced.CheckDebugCharacterVis"); | ||
10177 | // addMenu(new LLAdvancedToggleShowCollisionPlane(), "Advanced.ToggleShowCollisionPlane"); | ||
10178 | // addMenu(new LLAdvancedCheckShowCollisionPlane(), "Advanced.CheckShowCollisionPlane"); | ||
10179 | addMenu(new LLAdvancedToggleShowCollisionSkeleton(), "Advanced.ToggleShowCollisionSkeleton"); | ||
10180 | addMenu(new LLAdvancedCheckShowCollisionSkeleton(), "Advanced.CheckShowCollisionSkeleton"); | ||
10181 | addMenu(new LLAdvancedToggleDisplayAgentTarget(), "Advanced.ToggleDisplayAgentTarget"); | ||
10182 | addMenu(new LLAdvancedCheckDisplayAgentTarget(), "Advanced.CheckDisplayAgentTarget"); | ||
10183 | addMenu(new LLAdvancedToggleDebugAvatarRotation(), "Advanced.ToggleDebugAvatarRotation"); | ||
10184 | addMenu(new LLAdvancedCheckDebugAvatarRotation(), "Advanced.CheckDebugAvatarRotation"); | ||
10185 | addMenu(new LLAdvancedDumpAttachments(), "Advanced.DumpAttachments"); | ||
10186 | addMenu(new LLAdvancedRebakeTextures(), "Advanced.RebakeTextures"); | ||
10187 | addMenu(new LLAdvancedDebugAvatarTextures(), "Advanced.DebugAvatarTextures"); | ||
10188 | addMenu(new LLAdvancedDumpAvatarLocalTextures(), "Advanced.DumpAvatarLocalTextures"); | ||
10189 | |||
10190 | // Advanced > Network | ||
10191 | addMenu(new LLAdvancedEnableMessageLog(), "Advanced.EnableMessageLog"); | ||
10192 | addMenu(new LLAdvancedDisableMessageLog(), "Advanced.DisableMessageLog"); | ||
10193 | addMenu(new LLAdvancedDropPacket(), "Advanced.DropPacket"); | ||
10194 | |||
10195 | // Advanced > Recorder | ||
10196 | addMenu(new LLAdvancedFrameStatsLogging(), "Advanced.FrameStatsLogging"); | ||
10197 | addMenu(new LLAdvancedAgentPilot(), "Advanced.AgentPilot"); | ||
10198 | addMenu(new LLAdvancedToggleAgentPilotLoop(), "Advanced.ToggleAgentPilotLoop"); | ||
10199 | addMenu(new LLAdvancedCheckAgentPilotLoop(), "Advanced.CheckAgentPilotLoop"); | ||
10200 | |||
10201 | // Advanced (toplevel) | ||
10202 | addMenu(new LLAdvancedToggleShowObjectUpdates(), "Advanced.ToggleShowObjectUpdates"); | ||
10203 | addMenu(new LLAdvancedCheckShowObjectUpdates(), "Advanced.CheckShowObjectUpdates"); | ||
10204 | addMenu(new LLAdvancedCompressImage(), "Advanced.CompressImage"); | ||
10205 | addMenu(new LLAdvancedToggleClothingFloater(), "Advanced.ToggleClothingFloater"); | ||
10206 | addMenu(new LLAdvancedShowDebugSettings(), "Advanced.ShowDebugSettings"); | ||
10207 | addMenu(new LLAdvancedToggleViewAdminOptions(), "Advanced.ToggleViewAdminOptions"); | ||
10208 | addMenu(new LLAdvancedCheckViewAdminOptions(), "Advanced.CheckViewAdminOptions"); | ||
10209 | addMenu(new LLAdvancedRequestAdminStatus(), "Advanced.RequestAdminStatus"); | ||
10210 | addMenu(new LLAdvancedLeaveAdminStatus(), "Advanced.LeaveAdminStatus"); | ||
7931 | } | 10211 | } |