diff options
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/llgesturemgr.cpp | 241 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/textures/cakeisalie.png | bin | 124929 -> 0 bytes | |||
-rw-r--r-- | linden/indra/newview/skins/default/textures/ceilingcat.png | bin | 139515 -> 0 bytes | |||
-rw-r--r-- | linden/indra/newview/skins/default/textures/easteregg.png | bin | 395345 -> 0 bytes | |||
-rw-r--r-- | linden/indra/newview/skins/default/textures/hugs.png | bin | 204219 -> 0 bytes | |||
-rw-r--r-- | linden/indra/newview/skins/default/textures/nomnom.png | bin | 380325 -> 0 bytes | |||
-rw-r--r-- | linden/indra/newview/skins/default/textures/octopus.png | bin | 442610 -> 0 bytes | |||
-rw-r--r-- | linden/indra/newview/skins/default/textures/zombiecat.png | bin | 334660 -> 0 bytes |
8 files changed, 1 insertions, 240 deletions
diff --git a/linden/indra/newview/llgesturemgr.cpp b/linden/indra/newview/llgesturemgr.cpp index bd05cb3..f806ccc 100644 --- a/linden/indra/newview/llgesturemgr.cpp +++ b/linden/indra/newview/llgesturemgr.cpp | |||
@@ -531,7 +531,6 @@ BOOL LLGestureManager::triggerAndReviseString(const std::string &utf8str, std::s | |||
531 | gesture = NULL; | 531 | gesture = NULL; |
532 | } | 532 | } |
533 | 533 | ||
534 | |||
535 | if (matching.size() > 0) | 534 | if (matching.size() > 0) |
536 | { | 535 | { |
537 | // choose one at random | 536 | // choose one at random |
@@ -565,246 +564,8 @@ BOOL LLGestureManager::triggerAndReviseString(const std::string &utf8str, std::s | |||
565 | found_gestures = TRUE; | 564 | found_gestures = TRUE; |
566 | } | 565 | } |
567 | } | 566 | } |
568 | else if (LLStringUtil::compareInsensitive("/icanhaseasteregg", cur_token) == 0 || | ||
569 | LLStringUtil::compareInsensitive("/icanhaseastereggs", cur_token) == 0) | ||
570 | { | ||
571 | LLViewerImage* kitteh = gImageList.getImageFromFile("easteregg.png", TRUE, TRUE); | ||
572 | if (kitteh) | ||
573 | { | ||
574 | S32 left, top; | ||
575 | gFloaterView->getNewFloaterPosition(&left, &top); | ||
576 | LLRect rect = gSavedSettings.getRect("PreviewTextureRect"); | ||
577 | rect.translate(left - rect.mLeft, top - rect.mTop); | ||
578 | |||
579 | LLPreviewTexture* preview; | ||
580 | preview = new LLPreviewTexture(rect, "Easter Egg!", kitteh); | ||
581 | preview->setSourceID(LLUUID::generateNewID()); | ||
582 | preview->setFocus(TRUE); | ||
583 | preview->center(); | ||
584 | gFloaterView->adjustToFitScreen(preview, FALSE); | ||
585 | } | ||
586 | return TRUE; | ||
587 | } | ||
588 | else if (LLStringUtil::compareInsensitive("/icanhascookie", cur_token) == 0 || | ||
589 | LLStringUtil::compareInsensitive("/icanhascookies", cur_token) == 0) | ||
590 | { | ||
591 | LLChat chat; | ||
592 | chat.mText = "I made you a cookie but I eated it :("; | ||
593 | chat.mSourceType = CHAT_SOURCE_SYSTEM; | ||
594 | LLFloaterChat::addChat(chat); | ||
595 | if (revised_string) | ||
596 | { | ||
597 | revised_string->assign(LLStringUtil::null); | ||
598 | } | ||
599 | return TRUE; | ||
600 | } | ||
601 | else if (LLStringUtil::compareInsensitive("/icanhasfailbook", cur_token) == 0) | ||
602 | { | ||
603 | LLWeb::loadURLInternal("http://failbook.failblog.org/"); | ||
604 | return TRUE; | ||
605 | } | ||
606 | else if (LLStringUtil::compareInsensitive("/icanhaszombie", cur_token) == 0 || | ||
607 | LLStringUtil::compareInsensitive("/icanhaszombies", cur_token) == 0) | ||
608 | { | ||
609 | LLViewerImage* kitteh = gImageList.getImageFromFile("zombiecat.png", TRUE, TRUE); | ||
610 | if (kitteh) | ||
611 | { | ||
612 | S32 left, top; | ||
613 | gFloaterView->getNewFloaterPosition(&left, &top); | ||
614 | LLRect rect = gSavedSettings.getRect("PreviewTextureRect"); | ||
615 | rect.translate(left - rect.mLeft, top - rect.mTop); | ||
616 | |||
617 | LLPreviewTexture* preview; | ||
618 | preview = new LLPreviewTexture(rect, "Zombiecat!", kitteh); | ||
619 | preview->setSourceID(LLUUID::generateNewID()); | ||
620 | preview->setFocus(TRUE); | ||
621 | preview->center(); | ||
622 | gFloaterView->adjustToFitScreen(preview, FALSE); | ||
623 | } | ||
624 | return TRUE; | ||
625 | } | ||
626 | else if (LLStringUtil::compareInsensitive("/icanhassupport", cur_token) == 0 || | ||
627 | LLStringUtil::compareInsensitive("/icanhashelp", cur_token) == 0 || | ||
628 | LLStringUtil::compareInsensitive("/icanhashalp", cur_token) == 0) | ||
629 | { | ||
630 | LLWeb::loadURLInternal("http://support.kokuaviewer.org/"); | ||
631 | return TRUE; | ||
632 | } | ||
633 | else if (LLStringUtil::compareInsensitive("/icanhasblog", cur_token) == 0) | ||
634 | { | ||
635 | LLWeb::loadURLInternal("http://kokuaviewer.org/"); | ||
636 | return TRUE; | ||
637 | } | ||
638 | else if (LLStringUtil::compareInsensitive("/icanhascodie", cur_token) == 0) | ||
639 | { | ||
640 | LLChat chat; | ||
641 | chat.mText = "All work and no play makes Codie a dull girl. All work and no play..."; | ||
642 | chat.mSourceType = CHAT_SOURCE_SYSTEM; | ||
643 | LLFloaterChat::addChat(chat); | ||
644 | if (revised_string) | ||
645 | { | ||
646 | revised_string->assign(LLStringUtil::null); | ||
647 | } | ||
648 | return TRUE; | ||
649 | } | ||
650 | else if (LLStringUtil::compareInsensitive("/icanhasfail", cur_token) == 0) | ||
651 | { | ||
652 | LLWeb::loadURLInternal("http://www.failblog.org/"); | ||
653 | return TRUE; | ||
654 | } | ||
655 | else if (LLStringUtil::compareInsensitive("/icanhasdownload", cur_token) == 0 || | ||
656 | LLStringUtil::compareInsensitive("/icanhasdownloads", cur_token) == 0 || | ||
657 | LLStringUtil::compareInsensitive("/icanhasupdate", cur_token) == 0 || | ||
658 | LLStringUtil::compareInsensitive("/icanhasupdates", cur_token) == 0 ) | ||
659 | { | ||
660 | LLWeb::loadURLInternal("http://wiki.kokuaviewer.org/wiki/Imprudence:Downloads"); | ||
661 | return TRUE; | ||
662 | } | ||
663 | else if (LLStringUtil::compareInsensitive("/icanhasfeatures", cur_token) == 0) | ||
664 | { | ||
665 | LLWeb::loadURLInternal("http://wiki.kokuaviewer.org/wiki/Imprudence:Features"); | ||
666 | return TRUE; | ||
667 | } | ||
668 | else if (LLStringUtil::compareInsensitive("/icanhaswiki", cur_token) == 0) | ||
669 | { | ||
670 | LLWeb::loadURLInternal("http://wiki.kokuaviewer.org/wiki/"); | ||
671 | return TRUE; | ||
672 | } | ||
673 | else if (LLStringUtil::compareInsensitive("/icanhasbugs", cur_token) == 0 || | ||
674 | LLStringUtil::compareInsensitive("/icanhasbug", cur_token) == 0 ) | ||
675 | { | ||
676 | LLWeb::loadURLInternal("http://redmine.kokuaviewer.org/"); | ||
677 | return TRUE; | ||
678 | } | ||
679 | else if (LLStringUtil::compareInsensitive("/icanhasgit", cur_token) == 0) | ||
680 | { | ||
681 | LLWeb::loadURLInternal("http://github.com/imprudence/imprudence/"); | ||
682 | return TRUE; | ||
683 | } | ||
684 | else if (LLStringUtil::compareInsensitive("/icanhasplurk", cur_token) == 0) | ||
685 | { | ||
686 | LLWeb::loadURLInternal("http://plurk.com/imprudence"); | ||
687 | return TRUE; | ||
688 | } | ||
689 | else if (LLStringUtil::compareInsensitive("/icanhastwitter", cur_token) == 0) | ||
690 | { | ||
691 | LLWeb::loadURLInternal("http://twitter.com/ImpViewer"); | ||
692 | return TRUE; | ||
693 | } | ||
694 | |||
695 | else if (LLStringUtil::compareInsensitive("/icanhasimprudence", cur_token) == 0) | ||
696 | { | ||
697 | LLChat chat; | ||
698 | chat.mText = "You are using it right now, silly!..."; | ||
699 | chat.mSourceType = CHAT_SOURCE_SYSTEM; | ||
700 | LLFloaterChat::addChat(chat); | ||
701 | if (revised_string) | ||
702 | { | ||
703 | revised_string->assign(LLStringUtil::null); | ||
704 | } | ||
705 | return TRUE; | ||
706 | } | ||
707 | else if (LLStringUtil::compareInsensitive("/icanhasnoms", cur_token) == 0 || | ||
708 | LLStringUtil::compareInsensitive("/icanhasnom", cur_token) == 0) | ||
709 | { | ||
710 | LLViewerImage* kitteh = gImageList.getImageFromFile("nomnom.png", TRUE, TRUE); | ||
711 | if (kitteh) | ||
712 | { | ||
713 | S32 left, top; | ||
714 | gFloaterView->getNewFloaterPosition(&left, &top); | ||
715 | LLRect rect = gSavedSettings.getRect("PreviewTextureRect"); | ||
716 | rect.translate(left - rect.mLeft, top - rect.mTop); | ||
717 | |||
718 | LLPreviewTexture* preview; | ||
719 | preview = new LLPreviewTexture(rect, "Om nom nom!", kitteh); | ||
720 | preview->setSourceID(LLUUID::generateNewID()); | ||
721 | preview->setFocus(TRUE); | ||
722 | preview->center(); | ||
723 | gFloaterView->adjustToFitScreen(preview, FALSE); | ||
724 | } | ||
725 | return TRUE; | ||
726 | } | ||
727 | else if (LLStringUtil::compareInsensitive("/icanhasceilingcat", cur_token) == 0 || | ||
728 | LLStringUtil::compareInsensitive("/icanhascielingcat", cur_token) == 0) | ||
729 | { | ||
730 | LLViewerImage* kitteh = gImageList.getImageFromFile("ceilingcat.png", TRUE, TRUE); | ||
731 | if (kitteh) | ||
732 | { | ||
733 | S32 left, top; | ||
734 | gFloaterView->getNewFloaterPosition(&left, &top); | ||
735 | LLRect rect = gSavedSettings.getRect("PreviewTextureRect"); | ||
736 | rect.translate(left - rect.mLeft, top - rect.mTop); | ||
737 | |||
738 | LLPreviewTexture* preview; | ||
739 | preview = new LLPreviewTexture(rect, "Ceiling Cat is watching you!", kitteh); | ||
740 | preview->setSourceID(LLUUID::generateNewID()); | ||
741 | preview->setFocus(TRUE); | ||
742 | preview->center(); | ||
743 | gFloaterView->adjustToFitScreen(preview, FALSE); | ||
744 | } | ||
745 | return TRUE; | ||
746 | } | ||
747 | else if (LLStringUtil::compareInsensitive("/icanhascake", cur_token) == 0 ) | ||
748 | { | ||
749 | LLViewerImage* kitteh = gImageList.getImageFromFile("cakeisalie.png", TRUE, TRUE); | ||
750 | if (kitteh) | ||
751 | { | ||
752 | S32 left, top; | ||
753 | gFloaterView->getNewFloaterPosition(&left, &top); | ||
754 | LLRect rect = gSavedSettings.getRect("PreviewTextureRect"); | ||
755 | rect.translate(left - rect.mLeft, top - rect.mTop); | ||
756 | |||
757 | LLPreviewTexture* preview; | ||
758 | preview = new LLPreviewTexture(rect, "THE CAKE IS A LIE!", kitteh); | ||
759 | preview->setSourceID(LLUUID::generateNewID()); | ||
760 | preview->setFocus(TRUE); | ||
761 | preview->center(); | ||
762 | gFloaterView->adjustToFitScreen(preview, FALSE); | ||
763 | } | ||
764 | return TRUE; | ||
765 | } | ||
766 | else if (LLStringUtil::compareInsensitive("/icanhastentacles", cur_token) == 0 ) | ||
767 | { | ||
768 | LLViewerImage* kitteh = gImageList.getImageFromFile("octopus.png", TRUE, TRUE); | ||
769 | if (kitteh) | ||
770 | { | ||
771 | S32 left, top; | ||
772 | gFloaterView->getNewFloaterPosition(&left, &top); | ||
773 | LLRect rect = gSavedSettings.getRect("PreviewTextureRect"); | ||
774 | rect.translate(left - rect.mLeft, top - rect.mTop); | ||
775 | |||
776 | LLPreviewTexture* preview; | ||
777 | preview = new LLPreviewTexture(rect, "All hail the mighty octopus!", kitteh); | ||
778 | preview->setSourceID(LLUUID::generateNewID()); | ||
779 | preview->setFocus(TRUE); | ||
780 | preview->center(); | ||
781 | gFloaterView->adjustToFitScreen(preview, FALSE); | ||
782 | } | ||
783 | return TRUE; | ||
784 | } | ||
785 | else if (LLStringUtil::compareInsensitive("/icanhashugs", cur_token) == 0 || | ||
786 | LLStringUtil::compareInsensitive("/icanhashug", cur_token) == 0) | ||
787 | { | ||
788 | LLViewerImage* kitteh = gImageList.getImageFromFile("hugs.png", TRUE, TRUE); | ||
789 | if (kitteh) | ||
790 | { | ||
791 | S32 left, top; | ||
792 | gFloaterView->getNewFloaterPosition(&left, &top); | ||
793 | LLRect rect = gSavedSettings.getRect("PreviewTextureRect"); | ||
794 | rect.translate(left - rect.mLeft, top - rect.mTop); | ||
795 | |||
796 | LLPreviewTexture* preview; | ||
797 | preview = new LLPreviewTexture(rect, "Yes, you can has hugs!", kitteh); | ||
798 | preview->setSourceID(LLUUID::generateNewID()); | ||
799 | preview->setFocus(TRUE); | ||
800 | preview->center(); | ||
801 | gFloaterView->adjustToFitScreen(preview, FALSE); | ||
802 | } | ||
803 | return TRUE; | ||
804 | } | ||
805 | |||
806 | } | 567 | } |
807 | 568 | ||
808 | if(!gesture) | 569 | if(!gesture) |
809 | { | 570 | { |
810 | // This token doesn't match a gesture. Pass it through to the output. | 571 | // This token doesn't match a gesture. Pass it through to the output. |
diff --git a/linden/indra/newview/skins/default/textures/cakeisalie.png b/linden/indra/newview/skins/default/textures/cakeisalie.png deleted file mode 100644 index bc8af84..0000000 --- a/linden/indra/newview/skins/default/textures/cakeisalie.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/linden/indra/newview/skins/default/textures/ceilingcat.png b/linden/indra/newview/skins/default/textures/ceilingcat.png deleted file mode 100644 index 5cf5285..0000000 --- a/linden/indra/newview/skins/default/textures/ceilingcat.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/linden/indra/newview/skins/default/textures/easteregg.png b/linden/indra/newview/skins/default/textures/easteregg.png deleted file mode 100644 index 75eaef7..0000000 --- a/linden/indra/newview/skins/default/textures/easteregg.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/linden/indra/newview/skins/default/textures/hugs.png b/linden/indra/newview/skins/default/textures/hugs.png deleted file mode 100644 index d612793..0000000 --- a/linden/indra/newview/skins/default/textures/hugs.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/linden/indra/newview/skins/default/textures/nomnom.png b/linden/indra/newview/skins/default/textures/nomnom.png deleted file mode 100644 index ffc70ef..0000000 --- a/linden/indra/newview/skins/default/textures/nomnom.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/linden/indra/newview/skins/default/textures/octopus.png b/linden/indra/newview/skins/default/textures/octopus.png deleted file mode 100644 index 91765f9..0000000 --- a/linden/indra/newview/skins/default/textures/octopus.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/linden/indra/newview/skins/default/textures/zombiecat.png b/linden/indra/newview/skins/default/textures/zombiecat.png deleted file mode 100644 index 93392c0..0000000 --- a/linden/indra/newview/skins/default/textures/zombiecat.png +++ /dev/null | |||
Binary files differ | |||