diff options
author | Jacek Antonelli | 2008-09-28 13:56:00 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-28 19:55:41 -0500 |
commit | 9a4f5702473e7540cde1bbff2d7189d9ed71fd86 (patch) | |
tree | 53d52a965085be43c89ef45592a8198f7befc4be /linden/indra/newview/llviewermenu.cpp | |
parent | Second Life viewer sources 1.21.2-RC (diff) | |
parent | Merge branch 'VWR-8341' into next-merge (diff) | |
download | meta-impy-9a4f5702473e7540cde1bbff2d7189d9ed71fd86.zip meta-impy-9a4f5702473e7540cde1bbff2d7189d9ed71fd86.tar.gz meta-impy-9a4f5702473e7540cde1bbff2d7189d9ed71fd86.tar.bz2 meta-impy-9a4f5702473e7540cde1bbff2d7189d9ed71fd86.tar.xz |
Updated to SL source 1.21.2.
Conflicts:
linden/indra/SConstruct
linden/indra/newview/files.lst
linden/indra/newview/llfloatertools.cpp
linden/indra/newview/llfloatertools.h
linden/indra/newview/lloverlaybar.cpp
linden/indra/newview/lloverlaybar.h
linden/indra/newview/llviewermenu.cpp
linden/indra/newview/skins/default/xui/en-us/floater_tools.xml
linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
linden/indra/newview/skins/default/xui/en-us/panel_overlaybar.xml
linden/indra/newview/viewer_manifest.py
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 2282 |
1 files changed, 2281 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index b1cd9b6..9687e11 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" |
@@ -671,10 +672,13 @@ void init_menus() | |||
671 | // TomY TODO convert these two | 672 | // TomY TODO convert these two |
672 | LLMenuGL*menu; | 673 | LLMenuGL*menu; |
673 | 674 | ||
675 | // Advanced (Client) menu is XUI now! \o/ | ||
676 | /* | ||
674 | menu = new LLMenuGL(CLIENT_MENU_NAME); | 677 | menu = new LLMenuGL(CLIENT_MENU_NAME); |
675 | init_client_menu(menu); | 678 | init_client_menu(menu); |
676 | gMenuBarView->appendMenu( menu ); | 679 | gMenuBarView->appendMenu( menu ); |
677 | menu->updateParent(LLMenuGL::sMenuContainer); | 680 | menu->updateParent(LLMenuGL::sMenuContainer); |
681 | */ | ||
678 | 682 | ||
679 | menu = new LLMenuGL(SERVER_MENU_NAME); | 683 | menu = new LLMenuGL(SERVER_MENU_NAME); |
680 | init_server_menu(menu); | 684 | init_server_menu(menu); |
@@ -6059,6 +6063,18 @@ void queue_actions(LLFloaterScriptQueue* q, const std::string& noscriptmsg, cons | |||
6059 | } | 6063 | } |
6060 | } | 6064 | } |
6061 | 6065 | ||
6066 | |||
6067 | class LLToolsSetBulkPerms : public view_listener_t | ||
6068 | { | ||
6069 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
6070 | { | ||
6071 | LLFloaterBulkPermission* queue = NULL; | ||
6072 | queue = LLFloaterBulkPermission::create(); | ||
6073 | return true; | ||
6074 | } | ||
6075 | }; | ||
6076 | |||
6077 | |||
6062 | class LLToolsSelectedScriptAction : public view_listener_t | 6078 | class LLToolsSelectedScriptAction : public view_listener_t |
6063 | { | 6079 | { |
6064 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 6080 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
@@ -7575,7 +7591,2119 @@ class LLWorldDayCycle : public view_listener_t | |||
7575 | 7591 | ||
7576 | 7592 | ||
7577 | 7593 | ||
7578 | static void addMenu(view_listener_t *menu, const std::string& name) | 7594 | //------------------------------------------------------------------- |
7595 | // Advanced menu | ||
7596 | //------------------------------------------------------------------- | ||
7597 | |||
7598 | |||
7599 | /////////////////// | ||
7600 | // SHOW CONSOLES // | ||
7601 | /////////////////// | ||
7602 | |||
7603 | |||
7604 | class LLAdvancedToggleConsole : public view_listener_t | ||
7605 | { | ||
7606 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7607 | { | ||
7608 | std::string console_type = userdata.asString(); | ||
7609 | if ("frame" == console_type) | ||
7610 | { | ||
7611 | toggle_visibility( (void*)gDebugView->mFrameStatView ); | ||
7612 | } | ||
7613 | else if ("texture" == console_type) | ||
7614 | { | ||
7615 | toggle_visibility( (void*)gTextureView ); | ||
7616 | } | ||
7617 | else if ("debug" == console_type) | ||
7618 | { | ||
7619 | toggle_visibility( (void*)((LLView*)gDebugView->mDebugConsolep) ); | ||
7620 | } | ||
7621 | else if ("fast timers" == console_type) | ||
7622 | { | ||
7623 | toggle_visibility( (void*)gDebugView->mFastTimerView ); | ||
7624 | } | ||
7625 | else if ("memory" == console_type) | ||
7626 | { | ||
7627 | toggle_visibility( (void*)gDebugView->mMemoryView ); | ||
7628 | } | ||
7629 | return true; | ||
7630 | } | ||
7631 | }; | ||
7632 | |||
7633 | |||
7634 | class LLAdvancedCheckConsole : public view_listener_t | ||
7635 | { | ||
7636 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7637 | { | ||
7638 | std::string console_type = userdata["data"].asString(); | ||
7639 | bool new_value = false; | ||
7640 | if ("frame" == console_type) | ||
7641 | { | ||
7642 | new_value = get_visibility( (void*)gDebugView->mFrameStatView ); | ||
7643 | } | ||
7644 | else if ("texture" == console_type) | ||
7645 | { | ||
7646 | new_value = get_visibility( (void*)gTextureView ); | ||
7647 | } | ||
7648 | else if ("debug" == console_type) | ||
7649 | { | ||
7650 | new_value = get_visibility( (void*)((LLView*)gDebugView->mDebugConsolep) ); | ||
7651 | } | ||
7652 | else if ("fast timers" == console_type) | ||
7653 | { | ||
7654 | new_value = get_visibility( (void*)gDebugView->mFastTimerView ); | ||
7655 | } | ||
7656 | else if ("memory" == console_type) | ||
7657 | { | ||
7658 | new_value = get_visibility( (void*)gDebugView->mMemoryView ); | ||
7659 | } | ||
7660 | |||
7661 | std::string control_name = userdata["control"].asString(); | ||
7662 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
7663 | return true; | ||
7664 | } | ||
7665 | }; | ||
7666 | |||
7667 | |||
7668 | |||
7669 | |||
7670 | ////////////////////////// | ||
7671 | // DUMP INFO TO CONSOLE // | ||
7672 | ////////////////////////// | ||
7673 | |||
7674 | |||
7675 | class LLAdvancedDumpInfoToConsole : public view_listener_t | ||
7676 | { | ||
7677 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7678 | { | ||
7679 | std::string info_type = userdata.asString(); | ||
7680 | if ("region" == info_type) | ||
7681 | { | ||
7682 | handle_region_dump_settings(NULL); | ||
7683 | } | ||
7684 | else if ("group" == info_type) | ||
7685 | { | ||
7686 | handle_dump_group_info(NULL); | ||
7687 | } | ||
7688 | else if ("capabilities" == info_type) | ||
7689 | { | ||
7690 | handle_dump_capabilities_info(NULL); | ||
7691 | } | ||
7692 | return true; | ||
7693 | } | ||
7694 | }; | ||
7695 | |||
7696 | |||
7697 | |||
7698 | /////////////////////////////// | ||
7699 | // RELOAD SETTINGS OVERRIDES // | ||
7700 | /////////////////////////////// | ||
7701 | |||
7702 | |||
7703 | class LLAdvancedReloadSettingsOverrides : public view_listener_t | ||
7704 | { | ||
7705 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7706 | { | ||
7707 | reload_personal_settings_overrides(NULL); | ||
7708 | return true; | ||
7709 | } | ||
7710 | }; | ||
7711 | |||
7712 | |||
7713 | |||
7714 | ////////////// | ||
7715 | // HUD INFO // | ||
7716 | ////////////// | ||
7717 | |||
7718 | |||
7719 | class LLAdvancedToggleHUDInfo : public view_listener_t | ||
7720 | { | ||
7721 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7722 | { | ||
7723 | std::string info_type = userdata.asString(); | ||
7724 | if ("velocity" == info_type) | ||
7725 | { | ||
7726 | toggle_visibility( (void*)gVelocityBar ); | ||
7727 | } | ||
7728 | else if ("camera" == info_type) | ||
7729 | { | ||
7730 | gDisplayCameraPos = !(gDisplayCameraPos); | ||
7731 | } | ||
7732 | else if ("wind" == info_type) | ||
7733 | { | ||
7734 | gDisplayWindInfo = !(gDisplayWindInfo); | ||
7735 | } | ||
7736 | else if ("fov" == info_type) | ||
7737 | { | ||
7738 | gDisplayFOV = !(gDisplayFOV); | ||
7739 | } | ||
7740 | return true; | ||
7741 | } | ||
7742 | }; | ||
7743 | |||
7744 | class LLAdvancedCheckHUDInfo : public view_listener_t | ||
7745 | { | ||
7746 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7747 | { | ||
7748 | std::string info_type = userdata["data"].asString(); | ||
7749 | bool new_value = false; | ||
7750 | if ("velocity" == info_type) | ||
7751 | { | ||
7752 | new_value = get_visibility( (void*)gVelocityBar ); | ||
7753 | } | ||
7754 | else if ("camera" == info_type) | ||
7755 | { | ||
7756 | new_value = gDisplayCameraPos; | ||
7757 | } | ||
7758 | else if ("wind" == info_type) | ||
7759 | { | ||
7760 | new_value = gDisplayWindInfo; | ||
7761 | } | ||
7762 | else if ("fov" == info_type) | ||
7763 | { | ||
7764 | new_value = gDisplayFOV; | ||
7765 | } | ||
7766 | |||
7767 | std::string control_name = userdata["control"].asString(); | ||
7768 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
7769 | |||
7770 | return true; | ||
7771 | } | ||
7772 | }; | ||
7773 | |||
7774 | |||
7775 | |||
7776 | /////////////////////// | ||
7777 | // CLEAR GROUP CACHE // | ||
7778 | /////////////////////// | ||
7779 | |||
7780 | |||
7781 | class LLAdvancedClearGroupCache : public view_listener_t | ||
7782 | { | ||
7783 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7784 | { | ||
7785 | LLGroupMgr::debugClearAllGroups(NULL); | ||
7786 | return true; | ||
7787 | } | ||
7788 | }; | ||
7789 | |||
7790 | |||
7791 | |||
7792 | |||
7793 | ///////////////// | ||
7794 | // RENDER TYPE // | ||
7795 | ///////////////// | ||
7796 | |||
7797 | |||
7798 | U32 render_type_from_string(std::string render_type) | ||
7799 | { | ||
7800 | if ("simple" == render_type) | ||
7801 | { | ||
7802 | return LLPipeline::RENDER_TYPE_SIMPLE; | ||
7803 | } | ||
7804 | else if ("alpha" == render_type) | ||
7805 | { | ||
7806 | return LLPipeline::RENDER_TYPE_ALPHA; | ||
7807 | } | ||
7808 | else if ("tree" == render_type) | ||
7809 | { | ||
7810 | return LLPipeline::RENDER_TYPE_TREE; | ||
7811 | } | ||
7812 | else if ("avatar" == render_type) | ||
7813 | { | ||
7814 | return LLPipeline::RENDER_TYPE_AVATAR; | ||
7815 | } | ||
7816 | else if ("terrain" == render_type) | ||
7817 | { | ||
7818 | return LLPipeline::RENDER_TYPE_TERRAIN; | ||
7819 | } | ||
7820 | else if ("sky" == render_type) | ||
7821 | { | ||
7822 | return LLPipeline::RENDER_TYPE_SKY; | ||
7823 | } | ||
7824 | else if ("water" == render_type) | ||
7825 | { | ||
7826 | return LLPipeline::RENDER_TYPE_WATER; | ||
7827 | } | ||
7828 | else if ("ground" == render_type) | ||
7829 | { | ||
7830 | return LLPipeline::RENDER_TYPE_GROUND; | ||
7831 | } | ||
7832 | else if ("volume" == render_type) | ||
7833 | { | ||
7834 | return LLPipeline::RENDER_TYPE_VOLUME; | ||
7835 | } | ||
7836 | else if ("grass" == render_type) | ||
7837 | { | ||
7838 | return LLPipeline::RENDER_TYPE_GRASS; | ||
7839 | } | ||
7840 | else if ("clouds" == render_type) | ||
7841 | { | ||
7842 | return LLPipeline::RENDER_TYPE_CLOUDS; | ||
7843 | } | ||
7844 | else if ("particles" == render_type) | ||
7845 | { | ||
7846 | return LLPipeline::RENDER_TYPE_PARTICLES; | ||
7847 | } | ||
7848 | else if ("bump" == render_type) | ||
7849 | { | ||
7850 | return LLPipeline::RENDER_TYPE_BUMP; | ||
7851 | } | ||
7852 | else | ||
7853 | { | ||
7854 | return 0; | ||
7855 | } | ||
7856 | } | ||
7857 | |||
7858 | |||
7859 | class LLAdvancedToggleRenderType : public view_listener_t | ||
7860 | { | ||
7861 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7862 | { | ||
7863 | U32 render_type = render_type_from_string( userdata.asString() ); | ||
7864 | if ( render_type != 0 ) | ||
7865 | { | ||
7866 | LLPipeline::toggleRenderTypeControl( (void*)render_type ); | ||
7867 | } | ||
7868 | return true; | ||
7869 | } | ||
7870 | }; | ||
7871 | |||
7872 | |||
7873 | class LLAdvancedCheckRenderType : public view_listener_t | ||
7874 | { | ||
7875 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7876 | { | ||
7877 | U32 render_type = render_type_from_string( userdata["data"].asString() ); | ||
7878 | bool new_value = false; | ||
7879 | |||
7880 | if ( render_type != 0 ) | ||
7881 | { | ||
7882 | new_value = LLPipeline::hasRenderTypeControl( (void*)render_type ); | ||
7883 | } | ||
7884 | |||
7885 | std::string control_name = userdata["control"].asString(); | ||
7886 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
7887 | return true; | ||
7888 | } | ||
7889 | }; | ||
7890 | |||
7891 | |||
7892 | |||
7893 | ///////////// | ||
7894 | // FEATURE // | ||
7895 | ///////////// | ||
7896 | |||
7897 | |||
7898 | U32 feature_from_string(std::string feature) | ||
7899 | { | ||
7900 | if ("ui" == feature) | ||
7901 | { | ||
7902 | return LLPipeline::RENDER_DEBUG_FEATURE_UI; | ||
7903 | } | ||
7904 | else if ("selected" == feature) | ||
7905 | { | ||
7906 | return LLPipeline::RENDER_DEBUG_FEATURE_SELECTED; | ||
7907 | } | ||
7908 | else if ("highlighted" == feature) | ||
7909 | { | ||
7910 | return LLPipeline::RENDER_DEBUG_FEATURE_HIGHLIGHTED; | ||
7911 | } | ||
7912 | else if ("dynamic textures" == feature) | ||
7913 | { | ||
7914 | return LLPipeline::RENDER_DEBUG_FEATURE_DYNAMIC_TEXTURES; | ||
7915 | } | ||
7916 | else if ("foot shadows" == feature) | ||
7917 | { | ||
7918 | return LLPipeline::RENDER_DEBUG_FEATURE_FOOT_SHADOWS; | ||
7919 | } | ||
7920 | else if ("fog" == feature) | ||
7921 | { | ||
7922 | return LLPipeline::RENDER_DEBUG_FEATURE_FOG; | ||
7923 | } | ||
7924 | else if ("palette" == feature) | ||
7925 | { | ||
7926 | return LLPipeline::RENDER_DEBUG_FEATURE_PALETTE; | ||
7927 | } | ||
7928 | else if ("fr info" == feature) | ||
7929 | { | ||
7930 | return LLPipeline::RENDER_DEBUG_FEATURE_FR_INFO; | ||
7931 | } | ||
7932 | else if ("flexible" == feature) | ||
7933 | { | ||
7934 | return LLPipeline::RENDER_DEBUG_FEATURE_FLEXIBLE; | ||
7935 | } | ||
7936 | else | ||
7937 | { | ||
7938 | return 0; | ||
7939 | } | ||
7940 | }; | ||
7941 | |||
7942 | |||
7943 | class LLAdvancedToggleFeature : public view_listener_t | ||
7944 | { | ||
7945 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7946 | { | ||
7947 | U32 feature = feature_from_string( userdata.asString() ); | ||
7948 | |||
7949 | if ( feature != 0 ) | ||
7950 | { | ||
7951 | LLPipeline::toggleRenderDebugFeature( (void*)feature ); | ||
7952 | } | ||
7953 | |||
7954 | return true; | ||
7955 | } | ||
7956 | }; | ||
7957 | |||
7958 | |||
7959 | class LLAdvancedCheckFeature : public view_listener_t | ||
7960 | { | ||
7961 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
7962 | { | ||
7963 | U32 feature = feature_from_string( userdata["data"].asString() ); | ||
7964 | bool new_value = false; | ||
7965 | |||
7966 | if ( feature != 0 ) | ||
7967 | { | ||
7968 | new_value = LLPipeline::toggleRenderDebugFeatureControl( (void*)feature ); | ||
7969 | } | ||
7970 | |||
7971 | std::string control_name = userdata["control"].asString(); | ||
7972 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
7973 | return true; | ||
7974 | } | ||
7975 | }; | ||
7976 | |||
7977 | |||
7978 | |||
7979 | ////////////////// | ||
7980 | // INFO DISPLAY // | ||
7981 | ////////////////// | ||
7982 | |||
7983 | |||
7984 | U32 info_display_from_string(std::string info_display) | ||
7985 | { | ||
7986 | if ("verify" == info_display) | ||
7987 | { | ||
7988 | return LLPipeline::RENDER_DEBUG_VERIFY; | ||
7989 | } | ||
7990 | else if ("bboxes" == info_display) | ||
7991 | { | ||
7992 | return LLPipeline::RENDER_DEBUG_BBOXES; | ||
7993 | } | ||
7994 | else if ("points" == info_display) | ||
7995 | { | ||
7996 | return LLPipeline::RENDER_DEBUG_POINTS; | ||
7997 | } | ||
7998 | else if ("octree" == info_display) | ||
7999 | { | ||
8000 | return LLPipeline::RENDER_DEBUG_OCTREE; | ||
8001 | } | ||
8002 | else if ("occlusion" == info_display) | ||
8003 | { | ||
8004 | return LLPipeline::RENDER_DEBUG_OCCLUSION; | ||
8005 | } | ||
8006 | else if ("render batches" == info_display) | ||
8007 | { | ||
8008 | return LLPipeline::RENDER_DEBUG_BATCH_SIZE; | ||
8009 | } | ||
8010 | else if ("texture anim" == info_display) | ||
8011 | { | ||
8012 | return LLPipeline::RENDER_DEBUG_TEXTURE_ANIM; | ||
8013 | } | ||
8014 | else if ("texture priority" == info_display) | ||
8015 | { | ||
8016 | return LLPipeline::RENDER_DEBUG_TEXTURE_PRIORITY; | ||
8017 | } | ||
8018 | else if ("shame" == info_display) | ||
8019 | { | ||
8020 | return LLPipeline::RENDER_DEBUG_SHAME; | ||
8021 | } | ||
8022 | else if ("texture area" == info_display) | ||
8023 | { | ||
8024 | return LLPipeline::RENDER_DEBUG_TEXTURE_AREA; | ||
8025 | } | ||
8026 | else if ("face area" == info_display) | ||
8027 | { | ||
8028 | return LLPipeline::RENDER_DEBUG_FACE_AREA; | ||
8029 | } | ||
8030 | else if ("picking" == info_display) | ||
8031 | { | ||
8032 | return LLPipeline::RENDER_DEBUG_PICKING; | ||
8033 | } | ||
8034 | else if ("lights" == info_display) | ||
8035 | { | ||
8036 | return LLPipeline::RENDER_DEBUG_LIGHTS; | ||
8037 | } | ||
8038 | else if ("particles" == info_display) | ||
8039 | { | ||
8040 | return LLPipeline::RENDER_DEBUG_PARTICLES; | ||
8041 | } | ||
8042 | else if ("composition" == info_display) | ||
8043 | { | ||
8044 | return LLPipeline::RENDER_DEBUG_COMPOSITION; | ||
8045 | } | ||
8046 | else if ("glow" == info_display) | ||
8047 | { | ||
8048 | return LLPipeline::RENDER_DEBUG_GLOW; | ||
8049 | } | ||
8050 | else | ||
8051 | { | ||
8052 | return 0; | ||
8053 | } | ||
8054 | }; | ||
8055 | |||
8056 | |||
8057 | class LLAdvancedToggleInfoDisplay : public view_listener_t | ||
8058 | { | ||
8059 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8060 | { | ||
8061 | U32 info_display = info_display_from_string( userdata.asString() ); | ||
8062 | |||
8063 | if ( info_display != 0 ) | ||
8064 | { | ||
8065 | LLPipeline::toggleRenderDebug( (void*)info_display ); | ||
8066 | } | ||
8067 | |||
8068 | return true; | ||
8069 | } | ||
8070 | }; | ||
8071 | |||
8072 | |||
8073 | class LLAdvancedCheckInfoDisplay : public view_listener_t | ||
8074 | { | ||
8075 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8076 | { | ||
8077 | U32 info_display = info_display_from_string( userdata["data"].asString() ); | ||
8078 | bool new_value = false; | ||
8079 | |||
8080 | if ( info_display != 0 ) | ||
8081 | { | ||
8082 | new_value = LLPipeline::toggleRenderDebugControl( (void*)info_display ); | ||
8083 | } | ||
8084 | |||
8085 | std::string control_name = userdata["control"].asString(); | ||
8086 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8087 | return true; | ||
8088 | } | ||
8089 | }; | ||
8090 | |||
8091 | |||
8092 | |||
8093 | /////////////////// | ||
8094 | // SELECT BUFFER // | ||
8095 | /////////////////// | ||
8096 | |||
8097 | |||
8098 | class LLAdvancedToggleSelectBuffer : public view_listener_t | ||
8099 | { | ||
8100 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8101 | { | ||
8102 | gDebugSelect = !(gDebugSelect); | ||
8103 | return true; | ||
8104 | } | ||
8105 | }; | ||
8106 | |||
8107 | class LLAdvancedCheckSelectBuffer : public view_listener_t | ||
8108 | { | ||
8109 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8110 | { | ||
8111 | bool new_value = gDebugSelect; | ||
8112 | std::string control_name = userdata["control"].asString(); | ||
8113 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8114 | return true; | ||
8115 | } | ||
8116 | }; | ||
8117 | |||
8118 | |||
8119 | |||
8120 | ///////////////////////// | ||
8121 | // RANDOMIZE FRAMERATE // | ||
8122 | ///////////////////////// | ||
8123 | |||
8124 | |||
8125 | class LLAdvancedToggleRandomizeFramerate : public view_listener_t | ||
8126 | { | ||
8127 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8128 | { | ||
8129 | gRandomizeFramerate = !(gRandomizeFramerate); | ||
8130 | return true; | ||
8131 | } | ||
8132 | }; | ||
8133 | |||
8134 | class LLAdvancedCheckRandomizeFramerate : public view_listener_t | ||
8135 | { | ||
8136 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8137 | { | ||
8138 | bool new_value = gRandomizeFramerate; | ||
8139 | std::string control_name = userdata["control"].asString(); | ||
8140 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8141 | return true; | ||
8142 | } | ||
8143 | }; | ||
8144 | |||
8145 | |||
8146 | |||
8147 | ///////////////////////// | ||
8148 | // PERIODIC SLOW FRAME // | ||
8149 | ///////////////////////// | ||
8150 | |||
8151 | |||
8152 | class LLAdvancedTogglePeriodicSlowFrame : public view_listener_t | ||
8153 | { | ||
8154 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8155 | { | ||
8156 | gPeriodicSlowFrame = !(gPeriodicSlowFrame); | ||
8157 | return true; | ||
8158 | } | ||
8159 | }; | ||
8160 | |||
8161 | class LLAdvancedCheckPeriodicSlowFrame : public view_listener_t | ||
8162 | { | ||
8163 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8164 | { | ||
8165 | bool new_value = gPeriodicSlowFrame; | ||
8166 | std::string control_name = userdata["control"].asString(); | ||
8167 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8168 | return true; | ||
8169 | } | ||
8170 | }; | ||
8171 | |||
8172 | |||
8173 | |||
8174 | //////////////// | ||
8175 | // FRAME TEST // | ||
8176 | //////////////// | ||
8177 | |||
8178 | |||
8179 | class LLAdvancedToggleFrameTest : public view_listener_t | ||
8180 | { | ||
8181 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8182 | { | ||
8183 | LLPipeline::sRenderFrameTest = !(LLPipeline::sRenderFrameTest); | ||
8184 | return true; | ||
8185 | } | ||
8186 | }; | ||
8187 | |||
8188 | class LLAdvancedCheckFrameTest : public view_listener_t | ||
8189 | { | ||
8190 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8191 | { | ||
8192 | bool new_value = LLPipeline::sRenderFrameTest; | ||
8193 | std::string control_name = userdata["control"].asString(); | ||
8194 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8195 | return true; | ||
8196 | } | ||
8197 | }; | ||
8198 | |||
8199 | |||
8200 | |||
8201 | /////////////////////////// | ||
8202 | // HIDE SELECTED OBJECTS // | ||
8203 | /////////////////////////// | ||
8204 | |||
8205 | |||
8206 | class LLAdvancedToggleHideSelectedObjects : public view_listener_t | ||
8207 | { | ||
8208 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8209 | { | ||
8210 | gHideSelectedObjects = !(gHideSelectedObjects); | ||
8211 | return true; | ||
8212 | } | ||
8213 | }; | ||
8214 | |||
8215 | class LLAdvancedCheckHideSelectedObjects : public view_listener_t | ||
8216 | { | ||
8217 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8218 | { | ||
8219 | bool new_value = gHideSelectedObjects; | ||
8220 | std::string control_name = userdata["control"].asString(); | ||
8221 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8222 | return true; | ||
8223 | } | ||
8224 | }; | ||
8225 | |||
8226 | |||
8227 | |||
8228 | /////////////////////////// | ||
8229 | // SELECTED TEXTURE INFO // | ||
8230 | /////////////////////////// | ||
8231 | |||
8232 | |||
8233 | class LLAdvancedSelectedTextureInfo : public view_listener_t | ||
8234 | { | ||
8235 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8236 | { | ||
8237 | handle_selected_texture_info(NULL); | ||
8238 | return true; | ||
8239 | } | ||
8240 | }; | ||
8241 | |||
8242 | |||
8243 | |||
8244 | ////////////////////// | ||
8245 | // TOGGLE WIREFRAME // | ||
8246 | ////////////////////// | ||
8247 | |||
8248 | |||
8249 | class LLAdvancedToggleWireframe : public view_listener_t | ||
8250 | { | ||
8251 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8252 | { | ||
8253 | gUseWireframe = !(gUseWireframe); | ||
8254 | return true; | ||
8255 | } | ||
8256 | }; | ||
8257 | |||
8258 | class LLAdvancedCheckWireframe : public view_listener_t | ||
8259 | { | ||
8260 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8261 | { | ||
8262 | bool new_value = gUseWireframe; | ||
8263 | std::string control_name = userdata["control"].asString(); | ||
8264 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8265 | return true; | ||
8266 | } | ||
8267 | }; | ||
8268 | |||
8269 | |||
8270 | |||
8271 | ////////////////////// | ||
8272 | // DISABLE TEXTURES // | ||
8273 | ////////////////////// | ||
8274 | |||
8275 | |||
8276 | class LLAdvancedToggleDisableTextures : public view_listener_t | ||
8277 | { | ||
8278 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8279 | { | ||
8280 | menu_toggle_variable((void*)&LLViewerImage::sDontLoadVolumeTextures); | ||
8281 | return true; | ||
8282 | } | ||
8283 | }; | ||
8284 | |||
8285 | class LLAdvancedCheckDisableTextures : public view_listener_t | ||
8286 | { | ||
8287 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8288 | { | ||
8289 | bool new_value = menu_check_variable((void*)&LLViewerImage::sDontLoadVolumeTextures); | ||
8290 | std::string control_name = userdata["control"].asString(); | ||
8291 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8292 | return true; | ||
8293 | } | ||
8294 | }; | ||
8295 | |||
8296 | |||
8297 | |||
8298 | ////////////////////////// | ||
8299 | // DUMP SCRIPTED CAMERA // | ||
8300 | ////////////////////////// | ||
8301 | |||
8302 | |||
8303 | class LLAdvancedDumpScriptedCamera : public view_listener_t | ||
8304 | { | ||
8305 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8306 | { | ||
8307 | handle_dump_followcam(NULL); | ||
8308 | return true; | ||
8309 | } | ||
8310 | }; | ||
8311 | |||
8312 | |||
8313 | |||
8314 | ////////////////////////////// | ||
8315 | // DUMP REGION OBJECT CACHE // | ||
8316 | ////////////////////////////// | ||
8317 | |||
8318 | |||
8319 | class LLAdvancedDumpRegionObjectCache : public view_listener_t | ||
8320 | { | ||
8321 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8322 | { | ||
8323 | handle_dump_region_object_cache(NULL); | ||
8324 | return true; | ||
8325 | } | ||
8326 | }; | ||
8327 | |||
8328 | |||
8329 | |||
8330 | //////////////// | ||
8331 | // SLURL TEST // | ||
8332 | //////////////// | ||
8333 | |||
8334 | |||
8335 | class LLAdvancedSLURLTest : public view_listener_t | ||
8336 | { | ||
8337 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8338 | { | ||
8339 | handle_slurl_test(NULL); | ||
8340 | return true; | ||
8341 | } | ||
8342 | }; | ||
8343 | |||
8344 | |||
8345 | |||
8346 | //////////////////////// | ||
8347 | // TOGGLE EDITABLE UI // | ||
8348 | //////////////////////// | ||
8349 | |||
8350 | |||
8351 | class LLAdvancedToggleEditableUI : public view_listener_t | ||
8352 | { | ||
8353 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8354 | { | ||
8355 | edit_ui(NULL); | ||
8356 | return true; | ||
8357 | } | ||
8358 | }; | ||
8359 | |||
8360 | // *TODO: Add corresponding "Check" for EditableUI, so it can | ||
8361 | // become a menu_item_check. Need to add check_edit_ui(void*) | ||
8362 | // or functional equivalent to do that. | ||
8363 | |||
8364 | |||
8365 | |||
8366 | ////////////////////// | ||
8367 | // ASYNC KEYSTROKES // | ||
8368 | ////////////////////// | ||
8369 | |||
8370 | |||
8371 | class LLAdvancedToggleAsyncKeystrokes : public view_listener_t | ||
8372 | { | ||
8373 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8374 | { | ||
8375 | gHandleKeysAsync = !(gHandleKeysAsync); | ||
8376 | return true; | ||
8377 | } | ||
8378 | }; | ||
8379 | |||
8380 | class LLAdvancedCheckAsyncKeystrokes : public view_listener_t | ||
8381 | { | ||
8382 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8383 | { | ||
8384 | bool new_value = gHandleKeysAsync; | ||
8385 | std::string control_name = userdata["control"].asString(); | ||
8386 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8387 | return true; | ||
8388 | } | ||
8389 | }; | ||
8390 | |||
8391 | |||
8392 | |||
8393 | ///////////////////// | ||
8394 | // DUMP SELECT MGR // | ||
8395 | ///////////////////// | ||
8396 | |||
8397 | |||
8398 | class LLAdvancedDumpSelectMgr : public view_listener_t | ||
8399 | { | ||
8400 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8401 | { | ||
8402 | dump_select_mgr(NULL); | ||
8403 | return true; | ||
8404 | } | ||
8405 | }; | ||
8406 | |||
8407 | |||
8408 | |||
8409 | //////////////////// | ||
8410 | // DUMP INVENTORY // | ||
8411 | //////////////////// | ||
8412 | |||
8413 | |||
8414 | class LLAdvancedDumpInventory : public view_listener_t | ||
8415 | { | ||
8416 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8417 | { | ||
8418 | dump_inventory(NULL); | ||
8419 | return true; | ||
8420 | } | ||
8421 | }; | ||
8422 | |||
8423 | |||
8424 | |||
8425 | /////////////////////// | ||
8426 | // DUMP FOCUS HOLDER // | ||
8427 | /////////////////////// | ||
8428 | |||
8429 | |||
8430 | class LLAdvancedDumpFocusHolder : public view_listener_t | ||
8431 | { | ||
8432 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8433 | { | ||
8434 | handle_dump_focus(NULL); | ||
8435 | return true; | ||
8436 | } | ||
8437 | }; | ||
8438 | |||
8439 | |||
8440 | |||
8441 | //////////////////////////////// | ||
8442 | // PRINT SELECTED OBJECT INFO // | ||
8443 | //////////////////////////////// | ||
8444 | |||
8445 | |||
8446 | class LLAdvancedPrintSelectedObjectInfo : public view_listener_t | ||
8447 | { | ||
8448 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8449 | { | ||
8450 | print_object_info(NULL); | ||
8451 | return true; | ||
8452 | } | ||
8453 | }; | ||
8454 | |||
8455 | |||
8456 | |||
8457 | ////////////////////// | ||
8458 | // PRINT AGENT INFO // | ||
8459 | ////////////////////// | ||
8460 | |||
8461 | |||
8462 | class LLAdvancedPrintAgentInfo : public view_listener_t | ||
8463 | { | ||
8464 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8465 | { | ||
8466 | print_agent_nvpairs(NULL); | ||
8467 | return true; | ||
8468 | } | ||
8469 | }; | ||
8470 | |||
8471 | |||
8472 | |||
8473 | //////////////////////////////// | ||
8474 | // PRINT TEXTURE MEMORY STATS // | ||
8475 | //////////////////////////////// | ||
8476 | |||
8477 | |||
8478 | class LLAdvancedPrintTextureMemoryStats : public view_listener_t | ||
8479 | { | ||
8480 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8481 | { | ||
8482 | output_statistics(NULL); | ||
8483 | return true; | ||
8484 | } | ||
8485 | }; | ||
8486 | |||
8487 | |||
8488 | |||
8489 | ////////////////////// | ||
8490 | // DEBUG SELECT MGR // | ||
8491 | ////////////////////// | ||
8492 | |||
8493 | |||
8494 | class LLAdvancedToggleDebugSelectMgr : public view_listener_t | ||
8495 | { | ||
8496 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8497 | { | ||
8498 | gDebugSelectMgr = !(gDebugSelectMgr); | ||
8499 | return true; | ||
8500 | } | ||
8501 | }; | ||
8502 | |||
8503 | class LLAdvancedCheckDebugSelectMgr : public view_listener_t | ||
8504 | { | ||
8505 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8506 | { | ||
8507 | bool new_value = gDebugSelectMgr; | ||
8508 | std::string control_name = userdata["control"].asString(); | ||
8509 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8510 | return true; | ||
8511 | } | ||
8512 | }; | ||
8513 | |||
8514 | |||
8515 | |||
8516 | ////////////////// | ||
8517 | // DEBUG CLICKS // | ||
8518 | ////////////////// | ||
8519 | |||
8520 | |||
8521 | class LLAdvancedToggleDebugClicks : public view_listener_t | ||
8522 | { | ||
8523 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8524 | { | ||
8525 | gDebugClicks = !(gDebugClicks); | ||
8526 | return true; | ||
8527 | } | ||
8528 | }; | ||
8529 | |||
8530 | class LLAdvancedCheckDebugClicks : public view_listener_t | ||
8531 | { | ||
8532 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8533 | { | ||
8534 | bool new_value = gDebugClicks; | ||
8535 | std::string control_name = userdata["control"].asString(); | ||
8536 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8537 | return true; | ||
8538 | } | ||
8539 | }; | ||
8540 | |||
8541 | |||
8542 | |||
8543 | ///////////////// | ||
8544 | // DEBUG VIEWS // | ||
8545 | ///////////////// | ||
8546 | |||
8547 | |||
8548 | class LLAdvancedToggleDebugViews : public view_listener_t | ||
8549 | { | ||
8550 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8551 | { | ||
8552 | LLView::sDebugRects = !(LLView::sDebugRects); | ||
8553 | return true; | ||
8554 | } | ||
8555 | }; | ||
8556 | |||
8557 | class LLAdvancedCheckDebugViews : public view_listener_t | ||
8558 | { | ||
8559 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8560 | { | ||
8561 | bool new_value = LLView::sDebugRects; | ||
8562 | std::string control_name = userdata["control"].asString(); | ||
8563 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8564 | return true; | ||
8565 | } | ||
8566 | }; | ||
8567 | |||
8568 | |||
8569 | |||
8570 | /////////////////////// | ||
8571 | // XUI NAME TOOLTIPS // | ||
8572 | /////////////////////// | ||
8573 | |||
8574 | |||
8575 | class LLAdvancedToggleXUINameTooltips : public view_listener_t | ||
8576 | { | ||
8577 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8578 | { | ||
8579 | toggle_show_xui_names(NULL); | ||
8580 | return true; | ||
8581 | } | ||
8582 | }; | ||
8583 | |||
8584 | class LLAdvancedCheckXUINameTooltips : public view_listener_t | ||
8585 | { | ||
8586 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8587 | { | ||
8588 | bool new_value = check_show_xui_names(NULL); | ||
8589 | std::string control_name = userdata["control"].asString(); | ||
8590 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8591 | return true; | ||
8592 | } | ||
8593 | }; | ||
8594 | |||
8595 | |||
8596 | |||
8597 | //////////////////////// | ||
8598 | // DEBUG MOUSE EVENTS // | ||
8599 | //////////////////////// | ||
8600 | |||
8601 | |||
8602 | class LLAdvancedToggleDebugMouseEvents : public view_listener_t | ||
8603 | { | ||
8604 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8605 | { | ||
8606 | LLView::sDebugMouseHandling = !(LLView::sDebugMouseHandling); | ||
8607 | return true; | ||
8608 | } | ||
8609 | }; | ||
8610 | |||
8611 | class LLAdvancedCheckDebugMouseEvents : public view_listener_t | ||
8612 | { | ||
8613 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8614 | { | ||
8615 | bool new_value = LLView::sDebugMouseHandling; | ||
8616 | std::string control_name = userdata["control"].asString(); | ||
8617 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8618 | return true; | ||
8619 | } | ||
8620 | }; | ||
8621 | |||
8622 | |||
8623 | |||
8624 | //////////////// | ||
8625 | // DEBUG KEYS // | ||
8626 | //////////////// | ||
8627 | |||
8628 | |||
8629 | class LLAdvancedToggleDebugKeys : public view_listener_t | ||
8630 | { | ||
8631 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8632 | { | ||
8633 | LLView::sDebugKeys = !(LLView::sDebugKeys); | ||
8634 | return true; | ||
8635 | } | ||
8636 | }; | ||
8637 | |||
8638 | class LLAdvancedCheckDebugKeys : public view_listener_t | ||
8639 | { | ||
8640 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8641 | { | ||
8642 | bool new_value = LLView::sDebugKeys; | ||
8643 | std::string control_name = userdata["control"].asString(); | ||
8644 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8645 | return true; | ||
8646 | } | ||
8647 | }; | ||
8648 | |||
8649 | |||
8650 | |||
8651 | /////////////////////// | ||
8652 | // DEBUG WINDOW PROC // | ||
8653 | /////////////////////// | ||
8654 | |||
8655 | |||
8656 | class LLAdvancedToggleDebugWindowProc : public view_listener_t | ||
8657 | { | ||
8658 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8659 | { | ||
8660 | gDebugWindowProc = !(gDebugWindowProc); | ||
8661 | return true; | ||
8662 | } | ||
8663 | }; | ||
8664 | |||
8665 | class LLAdvancedCheckDebugWindowProc : public view_listener_t | ||
8666 | { | ||
8667 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8668 | { | ||
8669 | bool new_value = gDebugWindowProc; | ||
8670 | std::string control_name = userdata["control"].asString(); | ||
8671 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8672 | return true; | ||
8673 | } | ||
8674 | }; | ||
8675 | |||
8676 | |||
8677 | |||
8678 | //////////////////////////// | ||
8679 | // DEBUG TEXT EDITOR TIPS // | ||
8680 | //////////////////////////// | ||
8681 | |||
8682 | |||
8683 | class LLAdvancedToggleDebugTextEditorTips : public view_listener_t | ||
8684 | { | ||
8685 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8686 | { | ||
8687 | gDebugTextEditorTips = !(gDebugTextEditorTips); | ||
8688 | return true; | ||
8689 | } | ||
8690 | }; | ||
8691 | |||
8692 | class LLAdvancedCheckDebugTextEditorTips : public view_listener_t | ||
8693 | { | ||
8694 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8695 | { | ||
8696 | bool new_value = gDebugTextEditorTips; | ||
8697 | std::string control_name = userdata["control"].asString(); | ||
8698 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8699 | return true; | ||
8700 | } | ||
8701 | }; | ||
8702 | |||
8703 | |||
8704 | |||
8705 | /////////////////////// | ||
8706 | // SHOW FLOATER TEST // | ||
8707 | /////////////////////// | ||
8708 | |||
8709 | |||
8710 | class LLAdvancedShowFloaterTest : public view_listener_t | ||
8711 | { | ||
8712 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8713 | { | ||
8714 | LLFloaterTest::show(NULL); | ||
8715 | return true; | ||
8716 | } | ||
8717 | }; | ||
8718 | |||
8719 | |||
8720 | |||
8721 | ///////////////////////// | ||
8722 | // EXPORT MENUS TO XML // | ||
8723 | ///////////////////////// | ||
8724 | |||
8725 | |||
8726 | class LLAdvancedExportMenusToXML : public view_listener_t | ||
8727 | { | ||
8728 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8729 | { | ||
8730 | handle_export_menus_to_xml(NULL); | ||
8731 | return true; | ||
8732 | } | ||
8733 | }; | ||
8734 | |||
8735 | |||
8736 | |||
8737 | ///////////// | ||
8738 | // EDIT UI // | ||
8739 | ///////////// | ||
8740 | |||
8741 | |||
8742 | class LLAdvancedEditUI : public view_listener_t | ||
8743 | { | ||
8744 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8745 | { | ||
8746 | LLFloaterEditUI::show(NULL); | ||
8747 | return true; | ||
8748 | } | ||
8749 | }; | ||
8750 | |||
8751 | |||
8752 | |||
8753 | ////////////////////// | ||
8754 | // LOAD UI FROM XML // | ||
8755 | ////////////////////// | ||
8756 | |||
8757 | |||
8758 | class LLAdvancedLoadUIFromXML : public view_listener_t | ||
8759 | { | ||
8760 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8761 | { | ||
8762 | handle_load_from_xml(NULL); | ||
8763 | return true; | ||
8764 | } | ||
8765 | }; | ||
8766 | |||
8767 | |||
8768 | |||
8769 | //////////////////// | ||
8770 | // SAVE UI TO XML // | ||
8771 | //////////////////// | ||
8772 | |||
8773 | |||
8774 | class LLAdvancedSaveUIToXML : public view_listener_t | ||
8775 | { | ||
8776 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8777 | { | ||
8778 | handle_save_to_xml(NULL); | ||
8779 | return true; | ||
8780 | } | ||
8781 | }; | ||
8782 | |||
8783 | |||
8784 | |||
8785 | /////////////// | ||
8786 | // XUI NAMES // | ||
8787 | /////////////// | ||
8788 | |||
8789 | |||
8790 | class LLAdvancedToggleXUINames : public view_listener_t | ||
8791 | { | ||
8792 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8793 | { | ||
8794 | toggle_show_xui_names(NULL); | ||
8795 | return true; | ||
8796 | } | ||
8797 | }; | ||
8798 | |||
8799 | class LLAdvancedCheckXUINames : public view_listener_t | ||
8800 | { | ||
8801 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8802 | { | ||
8803 | bool new_value = check_show_xui_names(NULL); | ||
8804 | std::string control_name = userdata["control"].asString(); | ||
8805 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8806 | return true; | ||
8807 | } | ||
8808 | }; | ||
8809 | |||
8810 | |||
8811 | |||
8812 | //////////////////////// | ||
8813 | // GRAB BAKED TEXTURE // | ||
8814 | //////////////////////// | ||
8815 | |||
8816 | |||
8817 | class LLAdvancedGrabBakedTexture : public view_listener_t | ||
8818 | { | ||
8819 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8820 | { | ||
8821 | std::string texture_type = userdata.asString(); | ||
8822 | if ("eyes" == texture_type) | ||
8823 | { | ||
8824 | handle_grab_texture( (void*)LLVOAvatar::TEX_EYES_BAKED ); | ||
8825 | } | ||
8826 | else if ("head" == texture_type) | ||
8827 | { | ||
8828 | handle_grab_texture( (void*)LLVOAvatar::TEX_HEAD_BAKED ); | ||
8829 | } | ||
8830 | else if ("upper" == texture_type) | ||
8831 | { | ||
8832 | handle_grab_texture( (void*)LLVOAvatar::TEX_UPPER_BAKED ); | ||
8833 | } | ||
8834 | else if ("lower" == texture_type) | ||
8835 | { | ||
8836 | handle_grab_texture( (void*)LLVOAvatar::TEX_SKIRT_BAKED ); | ||
8837 | } | ||
8838 | else if ("skirt" == texture_type) | ||
8839 | { | ||
8840 | handle_grab_texture( (void*)LLVOAvatar::TEX_SKIRT_BAKED ); | ||
8841 | } | ||
8842 | |||
8843 | return true; | ||
8844 | } | ||
8845 | }; | ||
8846 | |||
8847 | class LLAdvancedEnableGrabBakedTexture : public view_listener_t | ||
8848 | { | ||
8849 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8850 | { | ||
8851 | std::string texture_type = userdata["data"].asString(); | ||
8852 | bool new_value = false; | ||
8853 | |||
8854 | if ("iris" == texture_type) | ||
8855 | { | ||
8856 | new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_EYES_BAKED ); | ||
8857 | } | ||
8858 | else if ("head" == texture_type) | ||
8859 | { | ||
8860 | new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_HEAD_BAKED ); | ||
8861 | } | ||
8862 | else if ("upper" == texture_type) | ||
8863 | { | ||
8864 | new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_UPPER_BAKED ); | ||
8865 | } | ||
8866 | else if ("lower" == texture_type) | ||
8867 | { | ||
8868 | new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_LOWER_BAKED ); | ||
8869 | } | ||
8870 | else if ("skirt" == texture_type) | ||
8871 | { | ||
8872 | new_value = enable_grab_texture( (void*)LLVOAvatar::TEX_SKIRT_BAKED ); | ||
8873 | } | ||
8874 | |||
8875 | std::string control_name = userdata["control"].asString(); | ||
8876 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8877 | return true; | ||
8878 | } | ||
8879 | }; | ||
8880 | |||
8881 | |||
8882 | |||
8883 | ////////////////////// | ||
8884 | // ALLOW IDLE / AFK // | ||
8885 | ////////////////////// | ||
8886 | |||
8887 | |||
8888 | class LLAdvancedToggleAllowIdleAFK : public view_listener_t | ||
8889 | { | ||
8890 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8891 | { | ||
8892 | gAllowIdleAFK = !(gAllowIdleAFK); | ||
8893 | return true; | ||
8894 | } | ||
8895 | }; | ||
8896 | |||
8897 | class LLAdvancedCheckAllowIdleAFK : public view_listener_t | ||
8898 | { | ||
8899 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8900 | { | ||
8901 | bool new_value = gAllowIdleAFK; | ||
8902 | std::string control_name = userdata["control"].asString(); | ||
8903 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
8904 | return true; | ||
8905 | } | ||
8906 | }; | ||
8907 | |||
8908 | |||
8909 | |||
8910 | /////////////////////// | ||
8911 | // APPEARANCE TO XML // | ||
8912 | /////////////////////// | ||
8913 | |||
8914 | |||
8915 | class LLAdvancedAppearanceToXML : public view_listener_t | ||
8916 | { | ||
8917 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8918 | { | ||
8919 | LLVOAvatar::dumpArchetypeXML(NULL); | ||
8920 | return true; | ||
8921 | } | ||
8922 | }; | ||
8923 | |||
8924 | |||
8925 | |||
8926 | /////////////////////////////// | ||
8927 | // TOGGLE CHARACTER GEOMETRY // | ||
8928 | /////////////////////////////// | ||
8929 | |||
8930 | |||
8931 | class LLAdvancedToggleCharacterGeometry : public view_listener_t | ||
8932 | { | ||
8933 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8934 | { | ||
8935 | handle_god_request_avatar_geometry(NULL); | ||
8936 | return true; | ||
8937 | } | ||
8938 | }; | ||
8939 | |||
8940 | class LLAdvancedEnableCharacterGeometry : public view_listener_t | ||
8941 | { | ||
8942 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8943 | { | ||
8944 | enable_god_customer_service(NULL); | ||
8945 | return true; | ||
8946 | } | ||
8947 | }; | ||
8948 | |||
8949 | |||
8950 | |||
8951 | ///////////////////////////// | ||
8952 | // TEST MALE / TEST FEMALE // | ||
8953 | ///////////////////////////// | ||
8954 | |||
8955 | |||
8956 | class LLAdvancedTestMale : public view_listener_t | ||
8957 | { | ||
8958 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8959 | { | ||
8960 | handle_test_male(NULL); | ||
8961 | return true; | ||
8962 | } | ||
8963 | }; | ||
8964 | |||
8965 | |||
8966 | class LLAdvancedTestFemale : public view_listener_t | ||
8967 | { | ||
8968 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8969 | { | ||
8970 | handle_test_female(NULL); | ||
8971 | return true; | ||
8972 | } | ||
8973 | }; | ||
8974 | |||
8975 | |||
8976 | |||
8977 | /////////////// | ||
8978 | // TOGGLE PG // | ||
8979 | /////////////// | ||
8980 | |||
8981 | |||
8982 | class LLAdvancedTogglePG : public view_listener_t | ||
8983 | { | ||
8984 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
8985 | { | ||
8986 | handle_toggle_pg(NULL); | ||
8987 | return true; | ||
8988 | } | ||
8989 | }; | ||
8990 | |||
8991 | |||
8992 | |||
8993 | ///////////////////////// | ||
8994 | // ALLOW SELECT AVATAR // | ||
8995 | ///////////////////////// | ||
8996 | |||
8997 | |||
8998 | class LLAdvancedToggleAllowSelectAvatar : public view_listener_t | ||
8999 | { | ||
9000 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9001 | { | ||
9002 | gAllowSelectAvatar = !(gAllowSelectAvatar); | ||
9003 | return true; | ||
9004 | } | ||
9005 | }; | ||
9006 | |||
9007 | class LLAdvancedCheckAllowSelectAvatar : public view_listener_t | ||
9008 | { | ||
9009 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9010 | { | ||
9011 | bool new_value = gAllowSelectAvatar; | ||
9012 | std::string control_name = userdata["control"].asString(); | ||
9013 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9014 | return true; | ||
9015 | } | ||
9016 | }; | ||
9017 | |||
9018 | |||
9019 | |||
9020 | //////////////////////////// | ||
9021 | // ALLOW TAP-TAP-HOLD RUN // | ||
9022 | //////////////////////////// | ||
9023 | |||
9024 | |||
9025 | class LLAdvancedToggleAllowTapTapHoldRun : public view_listener_t | ||
9026 | { | ||
9027 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9028 | { | ||
9029 | gAllowTapTapHoldRun = !(gAllowTapTapHoldRun); | ||
9030 | return true; | ||
9031 | } | ||
9032 | }; | ||
9033 | |||
9034 | class LLAdvancedCheckAllowTapTapHoldRun : public view_listener_t | ||
9035 | { | ||
9036 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9037 | { | ||
9038 | bool new_value = gAllowTapTapHoldRun; | ||
9039 | std::string control_name = userdata["control"].asString(); | ||
9040 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9041 | return true; | ||
9042 | } | ||
9043 | }; | ||
9044 | |||
9045 | |||
9046 | |||
9047 | ///////////////////////////// | ||
9048 | // FORCE PARAMS TO DEFAULT // | ||
9049 | ///////////////////////////// | ||
9050 | |||
9051 | |||
9052 | class LLAdvancedForceParamsToDefault : public view_listener_t | ||
9053 | { | ||
9054 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9055 | { | ||
9056 | LLAgent::clearVisualParams(NULL); | ||
9057 | return true; | ||
9058 | } | ||
9059 | }; | ||
9060 | |||
9061 | |||
9062 | |||
9063 | ////////////////////////// | ||
9064 | // RELOAD VERTEX SHADER // | ||
9065 | ////////////////////////// | ||
9066 | |||
9067 | |||
9068 | class LLAdvancedReloadVertexShader : public view_listener_t | ||
9069 | { | ||
9070 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9071 | { | ||
9072 | reload_vertex_shader(NULL); | ||
9073 | return true; | ||
9074 | } | ||
9075 | }; | ||
9076 | |||
9077 | |||
9078 | |||
9079 | //////////////////// | ||
9080 | // ANIMATION INFO // | ||
9081 | //////////////////// | ||
9082 | |||
9083 | |||
9084 | class LLAdvancedToggleAnimationInfo : public view_listener_t | ||
9085 | { | ||
9086 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9087 | { | ||
9088 | LLVOAvatar::sShowAnimationDebug = !(LLVOAvatar::sShowAnimationDebug); | ||
9089 | return true; | ||
9090 | } | ||
9091 | }; | ||
9092 | |||
9093 | class LLAdvancedCheckAnimationInfo : public view_listener_t | ||
9094 | { | ||
9095 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9096 | { | ||
9097 | bool new_value = LLVOAvatar::sShowAnimationDebug; | ||
9098 | std::string control_name = userdata["control"].asString(); | ||
9099 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9100 | return true; | ||
9101 | } | ||
9102 | }; | ||
9103 | |||
9104 | |||
9105 | |||
9106 | //////////////////////////// | ||
9107 | // SLOW MOTION ANIMATIONS // | ||
9108 | //////////////////////////// | ||
9109 | |||
9110 | |||
9111 | class LLAdvancedToggleSlowMotionAnimations : public view_listener_t | ||
9112 | { | ||
9113 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9114 | { | ||
9115 | slow_mo_animations(NULL); | ||
9116 | return true; | ||
9117 | } | ||
9118 | }; | ||
9119 | |||
9120 | // *TODO: Add a corresponding "Check" event for SlowMotionAnimations, | ||
9121 | // so that it can become a menu_item_check with the "X" indicator. | ||
9122 | // See indra/newview/skins/xui/en_us/menu_viewer.xml | ||
9123 | |||
9124 | |||
9125 | |||
9126 | ////////////////// | ||
9127 | // SHOW LOOK AT // | ||
9128 | ////////////////// | ||
9129 | |||
9130 | |||
9131 | class LLAdvancedToggleShowLookAt : public view_listener_t | ||
9132 | { | ||
9133 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9134 | { | ||
9135 | LLHUDEffectLookAt::sDebugLookAt = !(LLHUDEffectLookAt::sDebugLookAt); | ||
9136 | return true; | ||
9137 | } | ||
9138 | }; | ||
9139 | |||
9140 | class LLAdvancedCheckShowLookAt : public view_listener_t | ||
9141 | { | ||
9142 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9143 | { | ||
9144 | bool new_value = LLHUDEffectLookAt::sDebugLookAt; | ||
9145 | std::string control_name = userdata["control"].asString(); | ||
9146 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9147 | return true; | ||
9148 | } | ||
9149 | }; | ||
9150 | |||
9151 | |||
9152 | |||
9153 | /////////////////// | ||
9154 | // SHOW POINT AT // | ||
9155 | /////////////////// | ||
9156 | |||
9157 | |||
9158 | class LLAdvancedToggleShowPointAt : public view_listener_t | ||
9159 | { | ||
9160 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9161 | { | ||
9162 | LLHUDEffectPointAt::sDebugPointAt = !(LLHUDEffectPointAt::sDebugPointAt); | ||
9163 | return true; | ||
9164 | } | ||
9165 | }; | ||
9166 | |||
9167 | class LLAdvancedCheckShowPointAt : public view_listener_t | ||
9168 | { | ||
9169 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9170 | { | ||
9171 | bool new_value = LLHUDEffectPointAt::sDebugPointAt; | ||
9172 | std::string control_name = userdata["control"].asString(); | ||
9173 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9174 | return true; | ||
9175 | } | ||
9176 | }; | ||
9177 | |||
9178 | |||
9179 | |||
9180 | ///////////////////////// | ||
9181 | // DEBUG JOINT UPDATES // | ||
9182 | ///////////////////////// | ||
9183 | |||
9184 | |||
9185 | class LLAdvancedToggleDebugJointUpdates : public view_listener_t | ||
9186 | { | ||
9187 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9188 | { | ||
9189 | LLVOAvatar::sJointDebug = !(LLVOAvatar::sJointDebug); | ||
9190 | return true; | ||
9191 | } | ||
9192 | }; | ||
9193 | |||
9194 | class LLAdvancedCheckDebugJointUpdates : public view_listener_t | ||
9195 | { | ||
9196 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9197 | { | ||
9198 | bool new_value = LLVOAvatar::sJointDebug; | ||
9199 | std::string control_name = userdata["control"].asString(); | ||
9200 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9201 | return true; | ||
9202 | } | ||
9203 | }; | ||
9204 | |||
9205 | |||
9206 | |||
9207 | ///////////////// | ||
9208 | // DISABLE LOD // | ||
9209 | ///////////////// | ||
9210 | |||
9211 | |||
9212 | class LLAdvancedToggleDisableLOD : public view_listener_t | ||
9213 | { | ||
9214 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9215 | { | ||
9216 | LLViewerJoint::sDisableLOD = !(LLViewerJoint::sDisableLOD); | ||
9217 | return true; | ||
9218 | } | ||
9219 | }; | ||
9220 | |||
9221 | class LLAdvancedCheckDisableLOD : public view_listener_t | ||
9222 | { | ||
9223 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9224 | { | ||
9225 | bool new_value = LLViewerJoint::sDisableLOD; | ||
9226 | std::string control_name = userdata["control"].asString(); | ||
9227 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9228 | return true; | ||
9229 | } | ||
9230 | }; | ||
9231 | |||
9232 | |||
9233 | |||
9234 | ///////////////////////// | ||
9235 | // DEBUG CHARACTER VIS // | ||
9236 | ///////////////////////// | ||
9237 | |||
9238 | |||
9239 | class LLAdvancedToggleDebugCharacterVis : public view_listener_t | ||
9240 | { | ||
9241 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9242 | { | ||
9243 | LLVOAvatar::sDebugInvisible = !(LLVOAvatar::sDebugInvisible); | ||
9244 | return true; | ||
9245 | } | ||
9246 | }; | ||
9247 | |||
9248 | class LLAdvancedCheckDebugCharacterVis : public view_listener_t | ||
9249 | { | ||
9250 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9251 | { | ||
9252 | bool new_value = LLVOAvatar::sDebugInvisible; | ||
9253 | std::string control_name = userdata["control"].asString(); | ||
9254 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9255 | return true; | ||
9256 | } | ||
9257 | }; | ||
9258 | |||
9259 | |||
9260 | |||
9261 | ////////////////////////// | ||
9262 | // SHOW COLLISION PLANE // | ||
9263 | ////////////////////////// | ||
9264 | |||
9265 | /*************************** | ||
9266 | * | ||
9267 | * Disabled. See DEV-14477 | ||
9268 | * | ||
9269 | *************************** | ||
9270 | |||
9271 | class LLAdvancedToggleShowCollisionPlane : public view_listener_t | ||
9272 | { | ||
9273 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9274 | { | ||
9275 | LLVOAvatar::sShowFootPlane = !(LLVOAvatar::sShowFootPlane); | ||
9276 | return true; | ||
9277 | } | ||
9278 | }; | ||
9279 | |||
9280 | class LLAdvancedCheckShowCollisionPlane : public view_listener_t | ||
9281 | { | ||
9282 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9283 | { | ||
9284 | bool new_value = LLVOAvatar::sShowFootPlane; | ||
9285 | std::string control_name = userdata["control"].asString(); | ||
9286 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9287 | return true; | ||
9288 | } | ||
9289 | }; | ||
9290 | |||
9291 | ***************************/ | ||
9292 | |||
9293 | |||
9294 | ///////////////////////////// | ||
9295 | // SHOW COLLISION SKELETON // | ||
9296 | ///////////////////////////// | ||
9297 | |||
9298 | |||
9299 | class LLAdvancedToggleShowCollisionSkeleton : public view_listener_t | ||
9300 | { | ||
9301 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9302 | { | ||
9303 | LLVOAvatar::sShowCollisionVolumes = !(LLVOAvatar::sShowCollisionVolumes); | ||
9304 | return true; | ||
9305 | } | ||
9306 | }; | ||
9307 | |||
9308 | class LLAdvancedCheckShowCollisionSkeleton : public view_listener_t | ||
9309 | { | ||
9310 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9311 | { | ||
9312 | bool new_value = LLVOAvatar::sShowCollisionVolumes; | ||
9313 | std::string control_name = userdata["control"].asString(); | ||
9314 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9315 | return true; | ||
9316 | } | ||
9317 | }; | ||
9318 | |||
9319 | |||
9320 | |||
9321 | ////////////////////////// | ||
9322 | // DISPLAY AGENT TARGET // | ||
9323 | ////////////////////////// | ||
9324 | |||
9325 | |||
9326 | class LLAdvancedToggleDisplayAgentTarget : public view_listener_t | ||
9327 | { | ||
9328 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9329 | { | ||
9330 | LLAgent::sDebugDisplayTarget = !(LLAgent::sDebugDisplayTarget); | ||
9331 | return true; | ||
9332 | } | ||
9333 | }; | ||
9334 | |||
9335 | class LLAdvancedCheckDisplayAgentTarget : public view_listener_t | ||
9336 | { | ||
9337 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9338 | { | ||
9339 | bool new_value = LLAgent::sDebugDisplayTarget; | ||
9340 | std::string control_name = userdata["control"].asString(); | ||
9341 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9342 | return true; | ||
9343 | } | ||
9344 | }; | ||
9345 | |||
9346 | |||
9347 | |||
9348 | /////////////////////////// | ||
9349 | // DEBUG AVATAR ROTATION // | ||
9350 | /////////////////////////// | ||
9351 | |||
9352 | |||
9353 | class LLAdvancedToggleDebugAvatarRotation : public view_listener_t | ||
9354 | { | ||
9355 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9356 | { | ||
9357 | gDebugAvatarRotation = !(gDebugAvatarRotation); | ||
9358 | return true; | ||
9359 | } | ||
9360 | }; | ||
9361 | |||
9362 | class LLAdvancedCheckDebugAvatarRotation : public view_listener_t | ||
9363 | { | ||
9364 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9365 | { | ||
9366 | bool new_value = gDebugAvatarRotation; | ||
9367 | std::string control_name = userdata["control"].asString(); | ||
9368 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9369 | return true; | ||
9370 | } | ||
9371 | }; | ||
9372 | |||
9373 | |||
9374 | |||
9375 | ////////////////////// | ||
9376 | // DUMP ATTACHMENTS // | ||
9377 | ////////////////////// | ||
9378 | |||
9379 | |||
9380 | class LLAdvancedDumpAttachments : public view_listener_t | ||
9381 | { | ||
9382 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9383 | { | ||
9384 | handle_dump_attachments(NULL); | ||
9385 | return true; | ||
9386 | } | ||
9387 | }; | ||
9388 | |||
9389 | |||
9390 | |||
9391 | ///////////////////// | ||
9392 | // REBAKE TEXTURES // | ||
9393 | ///////////////////// | ||
9394 | |||
9395 | |||
9396 | class LLAdvancedRebakeTextures : public view_listener_t | ||
9397 | { | ||
9398 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9399 | { | ||
9400 | handle_rebake_textures(NULL); | ||
9401 | return true; | ||
9402 | } | ||
9403 | }; | ||
9404 | |||
9405 | |||
9406 | |||
9407 | /////////////////////////// | ||
9408 | // DEBUG AVATAR TEXTURES // | ||
9409 | /////////////////////////// | ||
9410 | |||
9411 | |||
9412 | class LLAdvancedDebugAvatarTextures : public view_listener_t | ||
9413 | { | ||
9414 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9415 | { | ||
9416 | handle_debug_avatar_textures(NULL); | ||
9417 | return true; | ||
9418 | } | ||
9419 | }; | ||
9420 | |||
9421 | |||
9422 | |||
9423 | //////////////////////////////// | ||
9424 | // DUMP AVATAR LOCAL TEXTURES // | ||
9425 | //////////////////////////////// | ||
9426 | |||
9427 | |||
9428 | class LLAdvancedDumpAvatarLocalTextures : public view_listener_t | ||
9429 | { | ||
9430 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9431 | { | ||
9432 | handle_dump_avatar_local_textures(NULL); | ||
9433 | return true; | ||
9434 | } | ||
9435 | }; | ||
9436 | |||
9437 | |||
9438 | |||
9439 | ///////////////// | ||
9440 | // MESSAGE LOG // | ||
9441 | ///////////////// | ||
9442 | |||
9443 | |||
9444 | class LLAdvancedEnableMessageLog : public view_listener_t | ||
9445 | { | ||
9446 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9447 | { | ||
9448 | handle_viewer_enable_message_log(NULL); | ||
9449 | return true; | ||
9450 | } | ||
9451 | }; | ||
9452 | |||
9453 | class LLAdvancedDisableMessageLog : public view_listener_t | ||
9454 | { | ||
9455 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9456 | { | ||
9457 | handle_viewer_disable_message_log(NULL); | ||
9458 | return true; | ||
9459 | } | ||
9460 | }; | ||
9461 | |||
9462 | |||
9463 | |||
9464 | ///////////////// | ||
9465 | // DROP PACKET // | ||
9466 | ///////////////// | ||
9467 | |||
9468 | |||
9469 | class LLAdvancedDropPacket : public view_listener_t | ||
9470 | { | ||
9471 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9472 | { | ||
9473 | drop_packet(NULL); | ||
9474 | return true; | ||
9475 | } | ||
9476 | }; | ||
9477 | |||
9478 | |||
9479 | |||
9480 | ///////////////////////// | ||
9481 | // FRAME STATS LOGGING // | ||
9482 | ///////////////////////// | ||
9483 | |||
9484 | |||
9485 | class LLAdvancedFrameStatsLogging : public view_listener_t | ||
9486 | { | ||
9487 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9488 | { | ||
9489 | std::string command = userdata.asString(); | ||
9490 | if ("start logging" == command) | ||
9491 | { | ||
9492 | LLFrameStats::startLogging(NULL); | ||
9493 | } | ||
9494 | else if ("stop logging" == command) | ||
9495 | { | ||
9496 | LLFrameStats::stopLogging(NULL); | ||
9497 | } | ||
9498 | else if ("timed logging 10" == command) | ||
9499 | { | ||
9500 | LLFrameStats::timedLogging10(NULL); | ||
9501 | } | ||
9502 | else if ("timed logging 30" == command) | ||
9503 | { | ||
9504 | LLFrameStats::timedLogging30(NULL); | ||
9505 | } | ||
9506 | else if ("timed logging 60" == command) | ||
9507 | { | ||
9508 | LLFrameStats::timedLogging60(NULL); | ||
9509 | } | ||
9510 | |||
9511 | return true; | ||
9512 | } | ||
9513 | }; | ||
9514 | |||
9515 | |||
9516 | |||
9517 | ///////////////// | ||
9518 | // AGENT PILOT // | ||
9519 | ///////////////// | ||
9520 | |||
9521 | |||
9522 | class LLAdvancedAgentPilot : public view_listener_t | ||
9523 | { | ||
9524 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9525 | { | ||
9526 | std::string command = userdata.asString(); | ||
9527 | if ("start playback" == command) | ||
9528 | { | ||
9529 | LLAgentPilot::startPlayback(NULL); | ||
9530 | } | ||
9531 | else if ("stop playback" == command) | ||
9532 | { | ||
9533 | LLAgentPilot::stopPlayback(NULL); | ||
9534 | } | ||
9535 | else if ("start record" == command) | ||
9536 | { | ||
9537 | LLAgentPilot::startRecord(NULL); | ||
9538 | } | ||
9539 | else if ("stop record" == command) | ||
9540 | { | ||
9541 | LLAgentPilot::saveRecord(NULL); | ||
9542 | } | ||
9543 | |||
9544 | return true; | ||
9545 | } | ||
9546 | }; | ||
9547 | |||
9548 | |||
9549 | |||
9550 | ////////////////////// | ||
9551 | // AGENT PILOT LOOP // | ||
9552 | ////////////////////// | ||
9553 | |||
9554 | |||
9555 | class LLAdvancedToggleAgentPilotLoop : public view_listener_t | ||
9556 | { | ||
9557 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9558 | { | ||
9559 | LLAgentPilot::sLoop = !(LLAgentPilot::sLoop); | ||
9560 | return true; | ||
9561 | } | ||
9562 | }; | ||
9563 | |||
9564 | class LLAdvancedCheckAgentPilotLoop : public view_listener_t | ||
9565 | { | ||
9566 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9567 | { | ||
9568 | bool new_value = LLAgentPilot::sLoop; | ||
9569 | std::string control_name = userdata["control"].asString(); | ||
9570 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9571 | return true; | ||
9572 | } | ||
9573 | }; | ||
9574 | |||
9575 | |||
9576 | |||
9577 | ///////////////////////// | ||
9578 | // SHOW OBJECT UPDATES // | ||
9579 | ///////////////////////// | ||
9580 | |||
9581 | |||
9582 | class LLAdvancedToggleShowObjectUpdates : public view_listener_t | ||
9583 | { | ||
9584 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9585 | { | ||
9586 | gShowObjectUpdates = !(gShowObjectUpdates); | ||
9587 | return true; | ||
9588 | } | ||
9589 | }; | ||
9590 | |||
9591 | class LLAdvancedCheckShowObjectUpdates : public view_listener_t | ||
9592 | { | ||
9593 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9594 | { | ||
9595 | bool new_value = gShowObjectUpdates; | ||
9596 | std::string control_name = userdata["control"].asString(); | ||
9597 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9598 | return true; | ||
9599 | } | ||
9600 | }; | ||
9601 | |||
9602 | |||
9603 | |||
9604 | //////////////////// | ||
9605 | // COMPRESS IMAGE // | ||
9606 | //////////////////// | ||
9607 | |||
9608 | |||
9609 | class LLAdvancedCompressImage : public view_listener_t | ||
9610 | { | ||
9611 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9612 | { | ||
9613 | handle_compress_image(NULL); | ||
9614 | return true; | ||
9615 | } | ||
9616 | }; | ||
9617 | |||
9618 | |||
9619 | |||
9620 | ////////////////////// | ||
9621 | // CLOTHING FLOATER // | ||
9622 | ////////////////////// | ||
9623 | |||
9624 | |||
9625 | class LLAdvancedToggleClothingFloater : public view_listener_t | ||
9626 | { | ||
9627 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9628 | { | ||
9629 | handle_clothing(NULL); | ||
9630 | return true; | ||
9631 | } | ||
9632 | }; | ||
9633 | |||
9634 | // There is no LLAdvancedCheckClothingFloater. | ||
9635 | |||
9636 | |||
9637 | |||
9638 | ///////////////////////// | ||
9639 | // SHOW DEBUG SETTINGS // | ||
9640 | ///////////////////////// | ||
9641 | |||
9642 | |||
9643 | class LLAdvancedShowDebugSettings : public view_listener_t | ||
9644 | { | ||
9645 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9646 | { | ||
9647 | LLFloaterSettingsDebug::show(NULL); | ||
9648 | return true; | ||
9649 | } | ||
9650 | }; | ||
9651 | |||
9652 | |||
9653 | |||
9654 | //////////////////////// | ||
9655 | // VIEW ADMIN OPTIONS // | ||
9656 | //////////////////////// | ||
9657 | |||
9658 | |||
9659 | class LLAdvancedToggleViewAdminOptions : public view_listener_t | ||
9660 | { | ||
9661 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9662 | { | ||
9663 | handle_admin_override_toggle(NULL); | ||
9664 | return true; | ||
9665 | } | ||
9666 | }; | ||
9667 | |||
9668 | class LLAdvancedCheckViewAdminOptions : public view_listener_t | ||
9669 | { | ||
9670 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9671 | { | ||
9672 | bool new_value = check_admin_override(NULL); | ||
9673 | std::string control_name = userdata["control"].asString(); | ||
9674 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
9675 | return true; | ||
9676 | } | ||
9677 | }; | ||
9678 | |||
9679 | |||
9680 | |||
9681 | ////////////////// | ||
9682 | // ADMIN STATUS // | ||
9683 | ////////////////// | ||
9684 | |||
9685 | |||
9686 | class LLAdvancedRequestAdminStatus : public view_listener_t | ||
9687 | { | ||
9688 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9689 | { | ||
9690 | handle_god_mode(NULL); | ||
9691 | return true; | ||
9692 | } | ||
9693 | }; | ||
9694 | |||
9695 | class LLAdvancedLeaveAdminStatus : public view_listener_t | ||
9696 | { | ||
9697 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
9698 | { | ||
9699 | handle_leave_god_mode(NULL); | ||
9700 | return true; | ||
9701 | } | ||
9702 | }; | ||
9703 | |||
9704 | |||
9705 | |||
9706 | static void addMenu(view_listener_t *menu, const char *name) | ||
7579 | { | 9707 | { |
7580 | sMenus.push_back(menu); | 9708 | sMenus.push_back(menu); |
7581 | menu->registerListener(gMenuHolder, name); | 9709 | menu->registerListener(gMenuHolder, name); |
@@ -7684,6 +9812,7 @@ void initialize_menus() | |||
7684 | addMenu(new LLToolsSaveToInventory(), "Tools.SaveToInventory"); | 9812 | addMenu(new LLToolsSaveToInventory(), "Tools.SaveToInventory"); |
7685 | addMenu(new LLToolsSaveToObjectInventory(), "Tools.SaveToObjectInventory"); | 9813 | addMenu(new LLToolsSaveToObjectInventory(), "Tools.SaveToObjectInventory"); |
7686 | addMenu(new LLToolsSelectedScriptAction(), "Tools.SelectedScriptAction"); | 9814 | addMenu(new LLToolsSelectedScriptAction(), "Tools.SelectedScriptAction"); |
9815 | addMenu(new LLToolsSetBulkPerms(), "Tools.SetBulkPerms"); | ||
7687 | 9816 | ||
7688 | addMenu(new LLToolsEnableToolNotPie(), "Tools.EnableToolNotPie"); | 9817 | addMenu(new LLToolsEnableToolNotPie(), "Tools.EnableToolNotPie"); |
7689 | addMenu(new LLToolsEnableLink(), "Tools.EnableLink"); | 9818 | addMenu(new LLToolsEnableLink(), "Tools.EnableLink"); |
@@ -7786,4 +9915,155 @@ void initialize_menus() | |||
7786 | addMenu(new LLSomethingSelectedNoHUD(), "SomethingSelectedNoHUD"); | 9915 | addMenu(new LLSomethingSelectedNoHUD(), "SomethingSelectedNoHUD"); |
7787 | addMenu(new LLEditableSelected(), "EditableSelected"); | 9916 | addMenu(new LLEditableSelected(), "EditableSelected"); |
7788 | addMenu(new LLEditableSelectedMono(), "EditableSelectedMono"); | 9917 | addMenu(new LLEditableSelectedMono(), "EditableSelectedMono"); |
9918 | |||
9919 | |||
9920 | // Advanced (top level menu) | ||
9921 | addMenu(new LLAdvancedToggleConsole(), "Advanced.ToggleConsole"); | ||
9922 | addMenu(new LLAdvancedCheckConsole(), "Advanced.CheckConsole"); | ||
9923 | addMenu(new LLAdvancedDumpInfoToConsole(), "Advanced.DumpInfoToConsole"); | ||
9924 | addMenu(new LLAdvancedReloadSettingsOverrides(), "Advanced.ReloadSettingsOverrides"); | ||
9925 | |||
9926 | // Advanced > HUD Info | ||
9927 | addMenu(new LLAdvancedToggleHUDInfo(), "Advanced.ToggleHUDInfo"); | ||
9928 | addMenu(new LLAdvancedCheckHUDInfo(), "Advanced.CheckHUDInfo"); | ||
9929 | |||
9930 | addMenu(new LLAdvancedClearGroupCache(), "Advanced.ClearGroupCache"); | ||
9931 | |||
9932 | // Advanced > Render > Types | ||
9933 | addMenu(new LLAdvancedToggleRenderType(), "Advanced.ToggleRenderType"); | ||
9934 | addMenu(new LLAdvancedCheckRenderType(), "Advanced.CheckRenderType"); | ||
9935 | |||
9936 | // Advanced > Render > Features | ||
9937 | addMenu(new LLAdvancedToggleFeature(), "Advanced.ToggleFeature"); | ||
9938 | addMenu(new LLAdvancedCheckFeature(), "Advanced.CheckFeature"); | ||
9939 | |||
9940 | // Advanced > Render > Info Displays | ||
9941 | addMenu(new LLAdvancedToggleInfoDisplay(), "Advanced.ToggleInfoDisplay"); | ||
9942 | addMenu(new LLAdvancedCheckInfoDisplay(), "Advanced.CheckInfoDisplay"); | ||
9943 | addMenu(new LLAdvancedToggleSelectBuffer(), "Advanced.ToggleSelectBuffer"); | ||
9944 | addMenu(new LLAdvancedCheckSelectBuffer(), "Advanced.CheckSelectBuffer"); | ||
9945 | addMenu(new LLAdvancedToggleRandomizeFramerate(), "Advanced.ToggleRandomizeFramerate"); | ||
9946 | addMenu(new LLAdvancedCheckRandomizeFramerate(), "Advanced.CheckRandomizeFramerate"); | ||
9947 | addMenu(new LLAdvancedTogglePeriodicSlowFrame(), "Advanced.TogglePeriodicSlowFrame"); | ||
9948 | addMenu(new LLAdvancedCheckPeriodicSlowFrame(), "Advanced.CheckPeriodicSlowFrame"); | ||
9949 | addMenu(new LLAdvancedToggleFrameTest(), "Advanced.ToggleFrameTest"); | ||
9950 | addMenu(new LLAdvancedCheckFrameTest(), "Advanced.CheckFrameTest"); | ||
9951 | addMenu(new LLAdvancedToggleHideSelectedObjects(), "Advanced.ToggleHideSelectedObjects"); | ||
9952 | addMenu(new LLAdvancedCheckHideSelectedObjects(), "Advanced.CheckHideSelectedObjects"); | ||
9953 | addMenu(new LLAdvancedSelectedTextureInfo(), "Advanced.SelectedTextureInfo"); | ||
9954 | addMenu(new LLAdvancedToggleWireframe(), "Advanced.ToggleWireframe"); | ||
9955 | addMenu(new LLAdvancedCheckWireframe(), "Advanced.CheckWireframe"); | ||
9956 | addMenu(new LLAdvancedToggleDisableTextures(), "Advanced.ToggleDisableTextures"); | ||
9957 | addMenu(new LLAdvancedCheckDisableTextures(), "Advanced.CheckDisableTextures"); | ||
9958 | |||
9959 | // Advanced > World | ||
9960 | addMenu(new LLAdvancedDumpScriptedCamera(), "Advanced.DumpScriptedCamera"); | ||
9961 | addMenu(new LLAdvancedDumpRegionObjectCache(), "Advanced.DumpRegionObjectCache"); | ||
9962 | |||
9963 | // Advanced > UI | ||
9964 | addMenu(new LLAdvancedSLURLTest(), "Advanced.SLURLTest"); | ||
9965 | addMenu(new LLAdvancedToggleEditableUI(), "Advanced.ToggleEditableUI"); | ||
9966 | //addMenu(new LLAdvancedCheckEditableUI(), "Advanced.CheckEditableUI"); | ||
9967 | addMenu(new LLAdvancedToggleAsyncKeystrokes(), "Advanced.ToggleAsyncKeystrokes"); | ||
9968 | addMenu(new LLAdvancedCheckAsyncKeystrokes(), "Advanced.CheckAsyncKeystrokes"); | ||
9969 | addMenu(new LLAdvancedDumpSelectMgr(), "Advanced.DumpSelectMgr"); | ||
9970 | addMenu(new LLAdvancedDumpInventory(), "Advanced.DumpInventory"); | ||
9971 | addMenu(new LLAdvancedDumpFocusHolder(), "Advanced.DumpFocusHolder"); | ||
9972 | addMenu(new LLAdvancedPrintSelectedObjectInfo(), "Advanced.PrintSelectedObjectInfo"); | ||
9973 | addMenu(new LLAdvancedPrintAgentInfo(), "Advanced.PrintAgentInfo"); | ||
9974 | addMenu(new LLAdvancedPrintTextureMemoryStats(), "Advanced.PrintTextureMemoryStats"); | ||
9975 | addMenu(new LLAdvancedToggleDebugSelectMgr(), "Advanced.ToggleDebugSelectMgr"); | ||
9976 | addMenu(new LLAdvancedCheckDebugSelectMgr(), "Advanced.CheckDebugSelectMgr"); | ||
9977 | addMenu(new LLAdvancedToggleDebugClicks(), "Advanced.ToggleDebugClicks"); | ||
9978 | addMenu(new LLAdvancedCheckDebugClicks(), "Advanced.CheckDebugClicks"); | ||
9979 | addMenu(new LLAdvancedCheckDebugViews(), "Advanced.CheckDebugViews"); | ||
9980 | addMenu(new LLAdvancedToggleDebugViews(), "Advanced.ToggleDebugViews"); | ||
9981 | addMenu(new LLAdvancedToggleXUINameTooltips(), "Advanced.ToggleXUINameTooltips"); | ||
9982 | addMenu(new LLAdvancedCheckXUINameTooltips(), "Advanced.CheckXUINameTooltips"); | ||
9983 | addMenu(new LLAdvancedToggleDebugMouseEvents(), "Advanced.ToggleDebugMouseEvents"); | ||
9984 | addMenu(new LLAdvancedCheckDebugMouseEvents(), "Advanced.CheckDebugMouseEvents"); | ||
9985 | addMenu(new LLAdvancedToggleDebugKeys(), "Advanced.ToggleDebugKeys"); | ||
9986 | addMenu(new LLAdvancedCheckDebugKeys(), "Advanced.CheckDebugKeys"); | ||
9987 | addMenu(new LLAdvancedToggleDebugWindowProc(), "Advanced.ToggleDebugWindowProc"); | ||
9988 | addMenu(new LLAdvancedCheckDebugWindowProc(), "Advanced.CheckDebugWindowProc"); | ||
9989 | addMenu(new LLAdvancedToggleDebugTextEditorTips(), "Advanced.ToggleDebugTextEditorTips"); | ||
9990 | addMenu(new LLAdvancedCheckDebugTextEditorTips(), "Advanced.CheckDebugTextEditorTips"); | ||
9991 | |||
9992 | // Advanced > XUI | ||
9993 | addMenu(new LLAdvancedShowFloaterTest(), "Advanced.ShowFloaterTest"); | ||
9994 | addMenu(new LLAdvancedExportMenusToXML(), "Advanced.ExportMenusToXML"); | ||
9995 | addMenu(new LLAdvancedEditUI(), "Advanced.EditUI"); | ||
9996 | addMenu(new LLAdvancedLoadUIFromXML(), "Advanced.LoadUIFromXML"); | ||
9997 | addMenu(new LLAdvancedSaveUIToXML(), "Advanced.SaveUIToXML"); | ||
9998 | addMenu(new LLAdvancedToggleXUINames(), "Advanced.ToggleXUINames"); | ||
9999 | addMenu(new LLAdvancedCheckXUINames(), "Advanced.CheckXUINames"); | ||
10000 | |||
10001 | // Advanced > Character > Grab Baked Texture | ||
10002 | addMenu(new LLAdvancedGrabBakedTexture(), "Advanced.GrabBakedTexture"); | ||
10003 | addMenu(new LLAdvancedEnableGrabBakedTexture(), "Advanced.EnableGrabBakedTexture"); | ||
10004 | |||
10005 | // Advanced > Character > Character Tests | ||
10006 | addMenu(new LLAdvancedToggleAllowIdleAFK(), "Advanced.ToggleAllowIdleAFK"); | ||
10007 | addMenu(new LLAdvancedCheckAllowIdleAFK(), "Advanced.CheckAllowIdleAFK"); | ||
10008 | addMenu(new LLAdvancedAppearanceToXML(), "Advanced.AppearanceToXML"); | ||
10009 | addMenu(new LLAdvancedToggleCharacterGeometry(), "Advanced.ToggleCharacterGeometry"); | ||
10010 | addMenu(new LLAdvancedTestMale(), "Advanced.TestMale"); | ||
10011 | addMenu(new LLAdvancedTestFemale(), "Advanced.TestFemale"); | ||
10012 | addMenu(new LLAdvancedTogglePG(), "Advanced.TogglePG"); | ||
10013 | addMenu(new LLAdvancedToggleAllowSelectAvatar(), "Advanced.ToggleAllowSelectAvatar"); | ||
10014 | addMenu(new LLAdvancedCheckAllowSelectAvatar(), "Advanced.CheckAllowSelectAvatar"); | ||
10015 | |||
10016 | // Advanced > Character (toplevel) | ||
10017 | addMenu(new LLAdvancedToggleAllowTapTapHoldRun(), "Advanced.ToggleAllowTapTapHoldRun"); | ||
10018 | addMenu(new LLAdvancedCheckAllowTapTapHoldRun(), "Advanced.CheckAllowTapTapHoldRun"); | ||
10019 | addMenu(new LLAdvancedForceParamsToDefault(), "Advanced.ForceParamsToDefault"); | ||
10020 | addMenu(new LLAdvancedReloadVertexShader(), "Advanced.ReloadVertexShader"); | ||
10021 | addMenu(new LLAdvancedToggleAnimationInfo(), "Advanced.ToggleAnimationInfo"); | ||
10022 | addMenu(new LLAdvancedCheckAnimationInfo(), "Advanced.CheckAnimationInfo"); | ||
10023 | addMenu(new LLAdvancedToggleSlowMotionAnimations(), "Advanced.ToggleSlowMotionAnimations"); | ||
10024 | //addMenu(new LLAdvancedCheckSlowMotionAnimations(), "Advanced.CheckSlowMotionAnimations"); | ||
10025 | addMenu(new LLAdvancedToggleShowLookAt(), "Advanced.ToggleShowLookAt"); | ||
10026 | addMenu(new LLAdvancedCheckShowLookAt(), "Advanced.CheckShowLookAt"); | ||
10027 | addMenu(new LLAdvancedToggleShowPointAt(), "Advanced.ToggleShowPointAt"); | ||
10028 | addMenu(new LLAdvancedCheckShowPointAt(), "Advanced.CheckShowPointAt"); | ||
10029 | addMenu(new LLAdvancedToggleDebugJointUpdates(), "Advanced.ToggleDebugJointUpdates"); | ||
10030 | addMenu(new LLAdvancedCheckDebugJointUpdates(), "Advanced.CheckDebugJointUpdates"); | ||
10031 | addMenu(new LLAdvancedToggleDisableLOD(), "Advanced.ToggleDisableLOD"); | ||
10032 | addMenu(new LLAdvancedCheckDisableLOD(), "Advanced.CheckDisableLOD"); | ||
10033 | addMenu(new LLAdvancedToggleDebugCharacterVis(), "Advanced.ToggleDebugCharacterVis"); | ||
10034 | addMenu(new LLAdvancedCheckDebugCharacterVis(), "Advanced.CheckDebugCharacterVis"); | ||
10035 | // addMenu(new LLAdvancedToggleShowCollisionPlane(), "Advanced.ToggleShowCollisionPlane"); | ||
10036 | // addMenu(new LLAdvancedCheckShowCollisionPlane(), "Advanced.CheckShowCollisionPlane"); | ||
10037 | addMenu(new LLAdvancedToggleShowCollisionSkeleton(), "Advanced.ToggleShowCollisionSkeleton"); | ||
10038 | addMenu(new LLAdvancedCheckShowCollisionSkeleton(), "Advanced.CheckShowCollisionSkeleton"); | ||
10039 | addMenu(new LLAdvancedToggleDisplayAgentTarget(), "Advanced.ToggleDisplayAgentTarget"); | ||
10040 | addMenu(new LLAdvancedCheckDisplayAgentTarget(), "Advanced.CheckDisplayAgentTarget"); | ||
10041 | addMenu(new LLAdvancedToggleDebugAvatarRotation(), "Advanced.ToggleDebugAvatarRotation"); | ||
10042 | addMenu(new LLAdvancedCheckDebugAvatarRotation(), "Advanced.CheckDebugAvatarRotation"); | ||
10043 | addMenu(new LLAdvancedDumpAttachments(), "Advanced.DumpAttachments"); | ||
10044 | addMenu(new LLAdvancedRebakeTextures(), "Advanced.RebakeTextures"); | ||
10045 | addMenu(new LLAdvancedDebugAvatarTextures(), "Advanced.DebugAvatarTextures"); | ||
10046 | addMenu(new LLAdvancedDumpAvatarLocalTextures(), "Advanced.DumpAvatarLocalTextures"); | ||
10047 | |||
10048 | // Advanced > Network | ||
10049 | addMenu(new LLAdvancedEnableMessageLog(), "Advanced.EnableMessageLog"); | ||
10050 | addMenu(new LLAdvancedDisableMessageLog(), "Advanced.DisableMessageLog"); | ||
10051 | addMenu(new LLAdvancedDropPacket(), "Advanced.DropPacket"); | ||
10052 | |||
10053 | // Advanced > Recorder | ||
10054 | addMenu(new LLAdvancedFrameStatsLogging(), "Advanced.FrameStatsLogging"); | ||
10055 | addMenu(new LLAdvancedAgentPilot(), "Advanced.AgentPilot"); | ||
10056 | addMenu(new LLAdvancedToggleAgentPilotLoop(), "Advanced.ToggleAgentPilotLoop"); | ||
10057 | addMenu(new LLAdvancedCheckAgentPilotLoop(), "Advanced.CheckAgentPilotLoop"); | ||
10058 | |||
10059 | // Advanced (toplevel) | ||
10060 | addMenu(new LLAdvancedToggleShowObjectUpdates(), "Advanced.ToggleShowObjectUpdates"); | ||
10061 | addMenu(new LLAdvancedCheckShowObjectUpdates(), "Advanced.CheckShowObjectUpdates"); | ||
10062 | addMenu(new LLAdvancedCompressImage(), "Advanced.CompressImage"); | ||
10063 | addMenu(new LLAdvancedToggleClothingFloater(), "Advanced.ToggleClothingFloater"); | ||
10064 | addMenu(new LLAdvancedShowDebugSettings(), "Advanced.ShowDebugSettings"); | ||
10065 | addMenu(new LLAdvancedToggleViewAdminOptions(), "Advanced.ToggleViewAdminOptions"); | ||
10066 | addMenu(new LLAdvancedCheckViewAdminOptions(), "Advanced.CheckViewAdminOptions"); | ||
10067 | addMenu(new LLAdvancedRequestAdminStatus(), "Advanced.RequestAdminStatus"); | ||
10068 | addMenu(new LLAdvancedLeaveAdminStatus(), "Advanced.LeaveAdminStatus"); | ||
7789 | } | 10069 | } |