| 928 | } |
| 929 | |
| 930 | void registerCommands() |
| 931 | { |
| 932 | GlobalCommandSystem().addCommand("CloneSelection", cloneSelected); |
| 933 | GlobalCommandSystem().addCommand("DeleteSelection", deleteSelectionCmd); |
| 934 | GlobalCommandSystem().addCommand("ParentSelection", parentSelection); |
| 935 | GlobalCommandSystem().addCommand("ParentSelectionToWorldspawn", parentSelectionToWorldspawn); |
| 936 | |
| 937 | GlobalCommandSystem().addCommand("InvertSelection", invertSelection); |
| 938 | GlobalCommandSystem().addCommand("SelectInside", selectInside, |
| 939 | { cmd::ARGTYPE_VECTOR3 | cmd::ARGTYPE_OPTIONAL, cmd::ARGTYPE_VECTOR3 | cmd::ARGTYPE_OPTIONAL }); |
| 940 | GlobalCommandSystem().addCommand("SelectFullyInside", selectFullyInside, |
| 941 | { cmd::ARGTYPE_VECTOR3 | cmd::ARGTYPE_OPTIONAL, cmd::ARGTYPE_VECTOR3 | cmd::ARGTYPE_OPTIONAL }); |
| 942 | GlobalCommandSystem().addCommand("SelectTouching", selectTouching, |
| 943 | { cmd::ARGTYPE_VECTOR3 | cmd::ARGTYPE_OPTIONAL, cmd::ARGTYPE_VECTOR3 | cmd::ARGTYPE_OPTIONAL }); |
| 944 | GlobalCommandSystem().addCommand("SelectCompleteTall", selectCompleteTall, |
| 945 | { cmd::ARGTYPE_VECTOR3 | cmd::ARGTYPE_OPTIONAL, cmd::ARGTYPE_VECTOR3 | cmd::ARGTYPE_OPTIONAL }); |
| 946 | GlobalCommandSystem().addCommand("ExpandSelectionToSiblings", expandSelectionToSiblings); |
| 947 | GlobalCommandSystem().addCommand("SelectParentEntities", selectParentEntitiesOfSelected); |
| 948 | GlobalCommandSystem().addCommand("MergeSelectedEntities", mergeSelectedEntities); |
| 949 | GlobalCommandSystem().addCommand("SelectChildren", selectChildren); |
| 950 | |
| 951 | GlobalCommandSystem().addCommand("ShowHidden", showAllHidden); |
| 952 | GlobalCommandSystem().addCommand("HideSelected", hideSelected); |
| 953 | GlobalCommandSystem().addCommand("HideDeselected", hideDeselected); |
| 954 | |
| 955 | GlobalCommandSystem().addCommand("MirrorSelectionX", mirrorSelectionX); |
| 956 | GlobalCommandSystem().addCommand("RotateSelectionX", rotateSelectionX); |
| 957 | GlobalCommandSystem().addCommand("MirrorSelectionY", mirrorSelectionY); |
| 958 | GlobalCommandSystem().addCommand("RotateSelectionY", rotateSelectionY); |
| 959 | GlobalCommandSystem().addCommand("MirrorSelectionZ", mirrorSelectionZ); |
| 960 | GlobalCommandSystem().addCommand("RotateSelectionZ", rotateSelectionZ); |
| 961 | |
| 962 | GlobalCommandSystem().addCommand("ConvertSelectedToFuncStatic", convertSelectedToFuncStatic); |
| 963 | GlobalCommandSystem().addCommand("RevertToWorldspawn", revertGroupToWorldSpawn); |
| 964 | |
| 965 | GlobalCommandSystem().addCommand("SnapToGrid", snapSelectionToGrid); |
| 966 | |
| 967 | GlobalCommandSystem().addCommand("SelectAllOfType", selectAllOfType); |
| 968 | GlobalCommandSystem().addCommand("GroupCycleForward", selection::GroupCycle::cycleForward); |
| 969 | GlobalCommandSystem().addCommand("GroupCycleBackward", selection::GroupCycle::cycleBackward); |
| 970 | |
| 971 | GlobalCommandSystem().addCommand("TexRotate", rotateTexture, { cmd::ARGTYPE_INT | cmd::ARGTYPE_STRING }); |
| 972 | GlobalCommandSystem().addCommand("TexScale", scaleTexture, { cmd::ARGTYPE_VECTOR2 | cmd::ARGTYPE_STRING }); |
| 973 | GlobalCommandSystem().addCommand("TexShift", shiftTextureCmd, { cmd::ARGTYPE_VECTOR2 | cmd::ARGTYPE_STRING }); |
| 974 | |
| 975 | GlobalCommandSystem().addCommand("TexAlign", alignTextureCmd, { cmd::ARGTYPE_STRING }); |
| 976 | GlobalCommandSystem().addCommand("FitTexture", fitTextureCmd, { cmd::ARGTYPE_DOUBLE, cmd::ARGTYPE_DOUBLE }); |
| 977 | |
| 978 | // Add the nudge commands (one general, four specialised ones) |
| 979 | GlobalCommandSystem().addCommand("NudgeSelected", nudgeSelectedCmd, { cmd::ARGTYPE_STRING }); |
| 980 | |
| 981 | GlobalCommandSystem().addCommand("NormaliseTexture", normaliseTexture); |
| 982 | |
| 983 | GlobalCommandSystem().addCommand("CopyShader", pickShaderFromSelection); |
| 984 | GlobalCommandSystem().addCommand("PasteShader", pasteShaderToSelection); |
| 985 | GlobalCommandSystem().addCommand("PasteShaderNatural", pasteShaderNaturalToSelection); |
| 986 | GlobalCommandSystem().addCommand("SetShaderOnSelection", applyShaderToSelectionCmd, { cmd::ARGTYPE_STRING }); |
| 987 |
no test coverage detected