share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
changeset 13468 4c47a480009b
parent 13354 f9a15dcd857c
child 13512 36f3f77e9b1b
equal deleted inserted replaced
13467:854caa3c9212 13468:4c47a480009b
  2533 				" " .. "|" ..
  2533 				" " .. "|" ..
  2534 				loc("Deletion Mode: [5]") .. "|" ..
  2534 				loc("Deletion Mode: [5]") .. "|" ..
  2535 				" " .. "|" ..
  2535 				" " .. "|" ..
  2536 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2536 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2537 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2537 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2538 				"", -amGirder, 60000
  2538 				"", -amGirder, 60000, not helpDisabled
  2539 				)
  2539 				)
  2540 		hedgeEditorMissionPanelShown = false
  2540 		hedgeEditorMissionPanelShown = false
  2541 
  2541 
  2542 	elseif cat[cIndex] == loc("Rubber Placement Mode") then
  2542 	elseif cat[cIndex] == loc("Rubber Placement Mode") then
  2543 
  2543 
  2551 				" " .. "|" ..
  2551 				" " .. "|" ..
  2552 				loc("Deletion Mode: [5]") .. "|" ..
  2552 				loc("Deletion Mode: [5]") .. "|" ..
  2553 				" " .. "|" ..
  2553 				" " .. "|" ..
  2554 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2554 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2555 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2555 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2556 				"", -amRubber, 60000
  2556 				"", -amRubber, 60000, not helpDisabled
  2557 				)
  2557 				)
  2558 		hedgeEditorMissionPanelShown = false
  2558 		hedgeEditorMissionPanelShown = false
  2559 
  2559 
  2560 	elseif cat[cIndex] == loc("Barrel Placement Mode") then
  2560 	elseif cat[cIndex] == loc("Barrel Placement Mode") then
  2561 
  2561 
  2566 				loc("Change Health: [Left], [Right]") .. "|" ..
  2566 				loc("Change Health: [Left], [Right]") .. "|" ..
  2567 				" " .. "|" ..
  2567 				" " .. "|" ..
  2568 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2568 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2569 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2569 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2570 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2570 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2571 				"", 8, 60000
  2571 				"", 8, 60000, not helpDisabled
  2572 				)
  2572 				)
  2573 		hedgeEditorMissionPanelShown = false
  2573 		hedgeEditorMissionPanelShown = false
  2574 
  2574 
  2575 	elseif cat[cIndex] == loc("Cleaver Placement Mode") then
  2575 	elseif cat[cIndex] == loc("Cleaver Placement Mode") then
  2576 
  2576 
  2580 				loc("Place Object: [Left Click]") .. "|" ..
  2580 				loc("Place Object: [Left Click]") .. "|" ..
  2581 				" " .. "|" ..
  2581 				" " .. "|" ..
  2582 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2582 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2583 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2583 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2584 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2584 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2585 				"", -amKnife, 60000
  2585 				"", -amKnife, 60000, not helpDisabled
  2586 				)
  2586 				)
  2587 		hedgeEditorMissionPanelShown = false
  2587 		hedgeEditorMissionPanelShown = false
  2588 
  2588 
  2589 	elseif cat[cIndex] == loc("Target Placement Mode") then
  2589 	elseif cat[cIndex] == loc("Target Placement Mode") then
  2590 
  2590 
  2594 				loc("Place Object: [Left Click]") .. "|" ..
  2594 				loc("Place Object: [Left Click]") .. "|" ..
  2595 				" " .. "|" ..
  2595 				" " .. "|" ..
  2596 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2596 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2597 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2597 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2598 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2598 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2599 				"", 1, 60000
  2599 				"", 1, 60000, not helpDisabled
  2600 				)
  2600 				)
  2601 		hedgeEditorMissionPanelShown = false
  2601 		hedgeEditorMissionPanelShown = false
  2602 
  2602 
  2603 	elseif cat[cIndex] == loc("Waypoint Editing Mode") then
  2603 	elseif cat[cIndex] == loc("Waypoint Editing Mode") then
  2604 
  2604 
  2609 				loc("Toggle Placement/Deletion: [Left], [Right]") .. "|" ..
  2609 				loc("Toggle Placement/Deletion: [Left], [Right]") .. "|" ..
  2610 				" " .. "|" ..
  2610 				" " .. "|" ..
  2611 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2611 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2612 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2612 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2613 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2613 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2614 				"", -amCMGearPlacementTool, 60000
  2614 				"", -amCMGearPlacementTool, 60000, not helpDisabled
  2615 				)
  2615 				)
  2616 		hedgeEditorMissionPanelShown = false
  2616 		hedgeEditorMissionPanelShown = false
  2617 
  2617 
  2618 	elseif cat[cIndex] == loc("Mine Placement Mode") then
  2618 	elseif cat[cIndex] == loc("Mine Placement Mode") then
  2619 
  2619 
  2624 				loc("Change Timer: [Left], [Right]") .. "|" ..
  2624 				loc("Change Timer: [Left], [Right]") .. "|" ..
  2625 				" " .. "|" ..
  2625 				" " .. "|" ..
  2626 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2626 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2627 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2627 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2628 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2628 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2629 				"", -amMine, 60000
  2629 				"", -amMine, 60000, not helpDisabled
  2630 				)
  2630 				)
  2631 		hedgeEditorMissionPanelShown = false
  2631 		hedgeEditorMissionPanelShown = false
  2632 
  2632 
  2633 	elseif cat[cIndex] == loc("Dud Mine Placement Mode") then
  2633 	elseif cat[cIndex] == loc("Dud Mine Placement Mode") then
  2634 
  2634 
  2639 				loc("Change Health: [Left], [Right]") .. "|" ..
  2639 				loc("Change Health: [Left], [Right]") .. "|" ..
  2640 				" " .. "|" ..
  2640 				" " .. "|" ..
  2641 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2641 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2642 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2642 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2643 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2643 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2644 				"", 9, 60000
  2644 				"", 9, 60000, not helpDisabled
  2645 				)
  2645 				)
  2646 		hedgeEditorMissionPanelShown = false
  2646 		hedgeEditorMissionPanelShown = false
  2647 
  2647 
  2648 	elseif cat[cIndex] == loc("Sticky Mine Placement Mode") then
  2648 	elseif cat[cIndex] == loc("Sticky Mine Placement Mode") then
  2649 
  2649 
  2654 				loc("Change Timer: [Left], [Right]") .. "|" ..
  2654 				loc("Change Timer: [Left], [Right]") .. "|" ..
  2655 				" " .. "|" ..
  2655 				" " .. "|" ..
  2656 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2656 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2657 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2657 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2658 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2658 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2659 				"", -amSMine, 60000
  2659 				"", -amSMine, 60000, not helpDisabled
  2660 				)
  2660 				)
  2661 		hedgeEditorMissionPanelShown = false
  2661 		hedgeEditorMissionPanelShown = false
  2662 
  2662 
  2663 	elseif cat[cIndex] == loc("Air Mine Placement Mode") then
  2663 	elseif cat[cIndex] == loc("Air Mine Placement Mode") then
  2664 
  2664 
  2669 				loc("Change Timer: [Left], [Right]") .. "|" ..
  2669 				loc("Change Timer: [Left], [Right]") .. "|" ..
  2670 				" " .. "|" ..
  2670 				" " .. "|" ..
  2671 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2671 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2672 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2672 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2673 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2673 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2674 				"", -amAirMine, 60000
  2674 				"", -amAirMine, 60000, not helpDisabled
  2675 				)
  2675 				)
  2676 		hedgeEditorMissionPanelShown = false
  2676 		hedgeEditorMissionPanelShown = false
  2677 
  2677 
  2678 	elseif cat[cIndex] == loc("Weapon Crate Placement Mode") then
  2678 	elseif cat[cIndex] == loc("Weapon Crate Placement Mode") then
  2679 
  2679 
  2684 				loc("Change Content: [Left], [Right]") .. "|" ..
  2684 				loc("Change Content: [Left], [Right]") .. "|" ..
  2685 				" " .. "|" ..
  2685 				" " .. "|" ..
  2686 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2686 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2687 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2687 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2688 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2688 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2689 				"", 7, 60000
  2689 				"", 7, 60000, not helpDisabled
  2690 				)
  2690 				)
  2691 		hedgeEditorMissionPanelShown = false
  2691 		hedgeEditorMissionPanelShown = false
  2692 
  2692 
  2693 	elseif cat[cIndex] == loc("Utility Crate Placement Mode") then
  2693 	elseif cat[cIndex] == loc("Utility Crate Placement Mode") then
  2694 
  2694 
  2699 				loc("Change Content: [Left], [Right]") .. "|" ..
  2699 				loc("Change Content: [Left], [Right]") .. "|" ..
  2700 				" " .. "|" ..
  2700 				" " .. "|" ..
  2701 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2701 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2702 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2702 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2703 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2703 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2704 				"", 5, 60000
  2704 				"", 5, 60000, not helpDisabled
  2705 				)
  2705 				)
  2706 		hedgeEditorMissionPanelShown = false
  2706 		hedgeEditorMissionPanelShown = false
  2707 
  2707 
  2708 	elseif cat[cIndex] == loc("Health Crate Placement Mode") then
  2708 	elseif cat[cIndex] == loc("Health Crate Placement Mode") then
  2709 
  2709 
  2714 				loc("Change Health Boost: [Left], [Right]") .. "|" ..
  2714 				loc("Change Health Boost: [Left], [Right]") .. "|" ..
  2715 				" " .. "|" ..
  2715 				" " .. "|" ..
  2716 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2716 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2717 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2717 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2718 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2718 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2719 				"", 6, 60000
  2719 				"", 6, 60000, not helpDisabled
  2720 				)
  2720 				)
  2721 		hedgeEditorMissionPanelShown = false
  2721 		hedgeEditorMissionPanelShown = false
  2722 
  2722 
  2723 	elseif cat[cIndex] == loc("Repositioning Mode") then
  2723 	elseif cat[cIndex] == loc("Repositioning Mode") then
  2724 
  2724 
  2729 				loc("Choose Selection/Placement/Deletion: [Left], [Right]") .. "|" ..
  2729 				loc("Choose Selection/Placement/Deletion: [Left], [Right]") .. "|" ..
  2730 				" " .. "|" ..
  2730 				" " .. "|" ..
  2731 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2731 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2732 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2732 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2733 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2733 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2734 				"", -amCMGearPlacementTool, 60000
  2734 				"", -amCMGearPlacementTool, 60000, not helpDisabled
  2735 				)
  2735 				)
  2736 		hedgeEditorMissionPanelShown = false
  2736 		hedgeEditorMissionPanelShown = false
  2737 
  2737 
  2738 	elseif cat[cIndex] == loc("Sprite Modification Mode") then
  2738 	elseif cat[cIndex] == loc("Sprite Modification Mode") then
  2739 
  2739 
  2750 				loc("Bouncy Land: [4]") .. "|" ..
  2750 				loc("Bouncy Land: [4]") .. "|" ..
  2751 				" " .. "|" ..
  2751 				" " .. "|" ..
  2752 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2752 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2753 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2753 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2754 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2754 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2755 				"", 2, 60000
  2755 				"", 2, 60000, not helpDisabled
  2756 				)
  2756 				)
  2757 		hedgeEditorMissionPanelShown = false
  2757 		hedgeEditorMissionPanelShown = false
  2758 
  2758 
  2759 	elseif cat[cIndex] == loc("Sprite Placement Mode") then
  2759 	elseif cat[cIndex] == loc("Sprite Placement Mode") then
  2760 
  2760 
  2771 				loc("Bouncy Land: [4]") .. "|" ..
  2771 				loc("Bouncy Land: [4]") .. "|" ..
  2772 				" " .. "|" ..
  2772 				" " .. "|" ..
  2773 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2773 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2774 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2774 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2775 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2775 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2776 				"", -amCMGearPlacementTool, 60000
  2776 				"", -amCMGearPlacementTool, 60000, not helpDisabled
  2777 				)
  2777 				)
  2778 		hedgeEditorMissionPanelShown = false
  2778 		hedgeEditorMissionPanelShown = false
  2779 
  2779 
  2780 	elseif cat[cIndex] == loc("Goal Definition Mode") then
  2780 	elseif cat[cIndex] == loc("Goal Definition Mode") then
  2781 
  2781 
  2786 				loc("Select win/lose condition: [Left], [Right]") .. "|" ..
  2786 				loc("Select win/lose condition: [Left], [Right]") .. "|" ..
  2787 				" " .. "|" ..
  2787 				" " .. "|" ..
  2788 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2788 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2789 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2789 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2790 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2790 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2791 				"", 0, 60000
  2791 				"", 0, 60000, not helpDisabled
  2792 				)
  2792 				)
  2793 		hedgeEditorMissionPanelShown = false
  2793 		hedgeEditorMissionPanelShown = false
  2794 	elseif cat[cIndex] == loc("Hog Identity Mode") then
  2794 	elseif cat[cIndex] == loc("Hog Identity Mode") then
  2795 
  2795 
  2796 		ShowMission	(
  2796 		ShowMission	(
  2800 				loc("[Left], [Right]: Change between identities.") .. "|" ..
  2800 				loc("[Left], [Right]: Change between identities.") .. "|" ..
  2801 				" " .. "|" ..
  2801 				" " .. "|" ..
  2802 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2802 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2803 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2803 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2804 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2804 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2805 				"", 3, 60000
  2805 				"", 3, 60000, not helpDisabled
  2806 				)
  2806 				)
  2807 		hedgeEditorMissionPanelShown = false
  2807 		hedgeEditorMissionPanelShown = false
  2808 
  2808 
  2809 	elseif cat[cIndex] == loc("Team Identity Mode") then
  2809 	elseif cat[cIndex] == loc("Team Identity Mode") then
  2810 
  2810 
  2815 				loc("[Left], [Right]: Change between identities.") .. "|" ..
  2815 				loc("[Left], [Right]: Change between identities.") .. "|" ..
  2816 				" " .. "|" ..
  2816 				" " .. "|" ..
  2817 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2817 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2818 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2818 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2819 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2819 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2820 				"", 3, 60000
  2820 				"", 3, 60000, not helpDisabled
  2821 				)
  2821 				)
  2822 		hedgeEditorMissionPanelShown = false
  2822 		hedgeEditorMissionPanelShown = false
  2823 
  2823 
  2824 	elseif cat[cIndex] == loc("Health Modification Mode") then
  2824 	elseif cat[cIndex] == loc("Health Modification Mode") then
  2825 
  2825 
  2830 				loc("[Left], [Right]: Change health value.") .. "|" ..
  2830 				loc("[Left], [Right]: Change health value.") .. "|" ..
  2831 				" " .. "|" ..
  2831 				" " .. "|" ..
  2832 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2832 				loc("Change Placement Mode: [Up], [Down]") .. "|" ..
  2833 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2833 				loc("Toggle Help: [Precise]+[1]") .. "|" ..
  2834 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2834 				loc("Toggle Gear Information: [Precise]+[3]") .. "|" ..
  2835 				"", 2, 60000
  2835 				"", 2, 60000, not helpDisabled
  2836 				)
  2836 				)
  2837 		hedgeEditorMissionPanelShown = false
  2837 		hedgeEditorMissionPanelShown = false
  2838 
  2838 
  2839 	end
  2839 	end
  2840 
  2840