UC File: Difference between revisions
m moved Legacy:UC File to UC File: Removed Legacy |
m Cleanup |
||
Line 1: | Line 1: | ||
This is just a text file containing [[ | {{Expand}} | ||
This is just a text file containing [[UnrealScript]] source code. You can edit this with any [[Legacy:Text Editor|text editor]], though we recommend you use something that supports syntax highlighting. | |||
==Shell Integration == | ==Shell Integration == | ||
You can add UnrealScript files to the Windows Explorer context menu's New list. This conveniently makes a file with the correct extension, and you can also use the template below to set up the basics of the class. | You can add [[UnrealScript]] files to the Windows Explorer context menu's New list. This conveniently makes a file with the correct extension, and you can also use the template below to set up the basics of the class. | ||
<uscript> | <uscript> | ||
Line 31: | Line 33: | ||
FileName UnrealClass.uc | FileName UnrealClass.uc | ||
{{navbox unrealscript}} | |||
Revision as of 21:31, 21 April 2010
Please help improve this article or section by expanding it. |
This is just a text file containing UnrealScript source code. You can edit this with any text editor, though we recommend you use something that supports syntax highlighting.
Shell Integration
You can add UnrealScript files to the Windows Explorer context menu's New list. This conveniently makes a file with the correct extension, and you can also use the template below to set up the basics of the class.
<uscript> //============================================================================= // //============================================================================= class extends ;
defaultproperties { } </uscript>
With TweakUI
If you have TweakUI installed, save the above script and a UC file anywhere, and drag the file onto TweakUI's New tab.
Via the registry
Otherwise, save the script in C:\WINDOWS\ShellNew\UnrealClass.uc
Then in the Windows Registry, create a key:
HKEY_CLASSES_ROOT\.uc\ShellNew
Add the value:
FileName UnrealClass.uc
Declarations | Preprocessor • Classes • Interfaces • Cpptext • Constants • Enums • Structs • Variables (Metadata) • Replication block • Operators • Delegates • Functions • States • Defaultproperties (Subobjects) |
---|---|
Types | bool • byte • float • int • name • string • Object • Class • Enums • Structs (Vector ⋅ Rotator ⋅ Quat ⋅ Color) • Static arrays • Dynamic arrays • Delegates • Typecasting |
Literals | Boolean • Float • Integer • Names • Objects (None ⋅ Self) • Vectors • Rotators • Strings |
Flow | GoTo • If • Assert • Return • Stop • Switch • While • Do...Until • For • ForEach • Break • Continue |
Specifiers | Super • Global • Static • Default • Const |
UnrealScript | Syntax • .UC • .UCI • .UPKG • Comments • #directives • Native |