My program doesn't have bugs. It just develops random features.

Difference between revisions of "Unreal Wiki:Sandbox"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
(testing DPL with many categories)
Line 1: Line 1:
 
Do not edit the area above the separator line, please.
 
Do not edit the area above the separator line, please.
 
----
 
----
−
[[Legacy:Actor]]
+
UIComp_DrawImage custom subclasses:
−
[[Actor]]
+
{{#dpl:
−
[[UE3:Actor (UT3)]]
+
|category=Subclasses of UIComp_DrawImage{{#if:UE3|{{!}}Subclasses of UIComp_DrawImage (UE3)}}{{#if:UT3|{{!}}Subclasses of UIComp_DrawImage (UT3)}}
−
[[Project:Sandbox]]
+
|category=Custom classes{{#if:UE3|{{!}}Custom UE3-specific classes}}{{#if:UT3|{{!}}Custom UT3-specific classes}}
−
 
+
|namespace={{#if:UE3|{{!}}UE3}}{{!}}User
−
Bar
+
|format=,[[%PAGE%|%TITLE%]],,
−
 
+
|inlinetext=, 
−
Testing UScript highlighter...
+
|shownamespace=false
−
<uscript>
+
|replaceintitle=/ (?!\()/,_
−
class X extends Y within Z
+
|resultsheader=\n;Known custom subclasses&#58;:
−
    implements(I)
+
|oneresultheader=\n;Known custom subclass&#58;:
−
    nottransient;
+
|noresultsheader=<nowiki></nowiki>
−
 
+
|allowcachedresults=true
−
`include(SomeFile.uci)
+
}}
−
 
+
−
 
+
−
var(Group) interp struct Type {
+
−
  var() bool bCorrect;
+
−
  var array<class<Actor> > ActorClasses;
+
−
} VarName;
+
−
 
+
−
reliable client function CheckType(optional class<Actor> ActorClass)
+
−
{
+
−
  local int i;
+
−
 
+
−
  for (i = 0; i < VarName.ActorClasses.Length; ++i) {
+
−
    if (ActorClass == None || ClassIsChildOf(VarName.ActorClasses[i], ActorClass)) {
+
−
      VarName.ActorClasses[i].static.StaticSaveConfig();
+
−
      continue;
+
−
    }
+
−
    VarName.ActorClasses.Remove(i--, 1);
+
−
  }
+
−
  VarName.bCorrect = True;
+
−
}
+
−
 
+
−
static function byte GetHash(int Value)
+
−
{
+
−
  switch (Value) {
+
−
    case -1:
+
−
      return 0;
+
−
    case 0xCAFE:
+
−
      return 1
+
−
    default:
+
−
      return (Value >= 0 && Value < 10) ? class'Hasher'.default.Hash[Value] : (Value & 0xff);
+
−
  }
+
−
}
+
−
 
+
−
defaultproperties
+
−
{
+
−
  VarName.Empty
+
−
  VarName[0] = {(
+
−
    bCorrect = True,
+
−
    ActorClasses.Add(class'ReplicationInfo')
+
−
  )}
+
−
}
+
−
</uscript>
+

Revision as of 03:54, 9 August 2015

Do not edit the area above the separator line, please.


UIComp_DrawImage custom subclasses: